Debian Codegraph @

src/gui/exportdialog.cpp

raw symbols SCIP
1 /*
2 *
3 * Ophcrack is a Lanmanager/NTLM hash cracker based on the faster time-memory
4 * trade-off using rainbow tables.
5 *
6 * Created with the help of: Maxime Mueller, Luca Wullschleger, Claude
7 * Hochreutiner, Andreas Huber and Etienne Dysli.
8 *
9 * Copyright (c) 2009 Philippe Oechslin, Cedric Tissieres, Bertrand Mesot
10 *
11 * Ophcrack is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
15 *
16 * Ophcrack is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with Ophcrack; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 *
25 * This program is released under the GPL with the additional exemption
26 * that compiling, linking, and/or using OpenSSL is allowed.
27 *
28 *
29 *
30 *
31 */
32 #include "exportdialog.h"
33 //---------------------------------------------------------------------------
34 ExportDialog::ExportDialog(QWidget *parent) : QDialog(parent) {
35 setupUi(this);
36 }
37 //---------------------------------------------------------------------------
38 void ExportDialog::getFields(int *fields) {
39
40 fields[0] = idCheckBox->isChecked();
41 fields[1] = uidCheckBox->isChecked();
42 fields[2] = userCheckBox->isChecked();
43 fields[3] = lmhashCheckBox->isChecked();
44 fields[4] = nthashCheckBox->isChecked();
45 fields[5] = lmpwd1CheckBox->isChecked();
46 fields[6] = lmpwd2CheckBox->isChecked();
47 fields[7] = ntpwdCheckBox->isChecked();
48 fields[8] = crackedCheckBox->isChecked();
49 fields[9] = timeCheckBox->isChecked();
50 fields[10] = lengthCheckBox->isChecked();
51 fields[11] = categoryCheckBox->isChecked();
52 fields[12] = tableCheckBox->isChecked();
53
54 }
55 //---------------------------------------------------------------------------
56 char ExportDialog::getSeparator(void) {
57 switch(separatorComboBox->currentIndex()) {
58 case 0: return ';';
59 case 1: return ',';
60 case 2: return '\t';
61 case 3: return ' ';
62 }
63 return ';';
64 }
65 //---------------------------------------------------------------------------
66 char ExportDialog::getQuotes(void) {
67 switch(quotesComboBox->currentIndex()) {
68 case 0: return 0;
69 case 1: return '"';
70 case 2: return '\'';
71 }
72 return 0;
73 }
74
75