author | alwin <alwin> | 2004-02-17 23:47:39 (UTC) |
---|---|---|
committer | alwin <alwin> | 2004-02-17 23:47:39 (UTC) |
commit | 0c5ed2b6ef3c8b3321e6fd1889a09e402b7fc2e8 (patch) (unidiff) | |
tree | d6cfdc2be603da8b6a4b87a3ba6b57952bbf1333 | |
parent | e4f501b5e7006c54f1447c830eaeee6a0f26cc1a (diff) | |
download | opie-0c5ed2b6ef3c8b3321e6fd1889a09e402b7fc2e8.zip opie-0c5ed2b6ef3c8b3321e6fd1889a09e402b7fc2e8.tar.gz opie-0c5ed2b6ef3c8b3321e6fd1889a09e402b7fc2e8.tar.bz2 |
removed stdc++ dependies
-rw-r--r-- | noncore/apps/zsafe/zsafe.h | 13 | ||||
-rw-r--r-- | noncore/apps/zsafe/zsafe.pro | 2 |
2 files changed, 6 insertions, 9 deletions
diff --git a/noncore/apps/zsafe/zsafe.h b/noncore/apps/zsafe/zsafe.h index b5019a9..eef5cdc 100644 --- a/noncore/apps/zsafe/zsafe.h +++ b/noncore/apps/zsafe/zsafe.h | |||
@@ -1,57 +1,54 @@ | |||
1 | /**************************************************************************** | 1 | /**************************************************************************** |
2 | ** Form interface generated from reading ui file 'zsafe.ui' | 2 | ** Form interface generated from reading ui file 'zsafe.ui' |
3 | ** | 3 | ** |
4 | ** Created: Sat Apr 6 17:57:42 2002 | 4 | ** Created: Sat Apr 6 17:57:42 2002 |
5 | ** | 5 | ** |
6 | ** Author: Carsten Schneider <CarstenSchneider@t-online.de> | 6 | ** Author: Carsten Schneider <CarstenSchneider@t-online.de> |
7 | ** | 7 | ** |
8 | ** $Id$ | 8 | ** $Id$ |
9 | ** | 9 | ** |
10 | ** Homepage: http://home.t-online.de/home/CarstenSchneider/zsafe/index.html | 10 | ** Homepage: http://home.t-online.de/home/CarstenSchneider/zsafe/index.html |
11 | ** | 11 | ** |
12 | ** WARNING! All changes made in this file will be lost! | 12 | ** WARNING! All changes made in this file will be lost! |
13 | ****************************************************************************/ | 13 | ****************************************************************************/ |
14 | #ifndef ZSAFE_H | 14 | #ifndef ZSAFE_H |
15 | #define ZSAFE_H | 15 | #define ZSAFE_H |
16 | 16 | ||
17 | #ifndef WIN32 | ||
18 | #include <stream.h> | ||
19 | #endif | ||
20 | #include <stdio.h> | 17 | #include <stdio.h> |
21 | 18 | ||
22 | #include "infoform.h" | 19 | #include "infoform.h" |
23 | #include "categorylist.h" | 20 | #include "categorylist.h" |
24 | #include "shadedlistitem.h" | 21 | #include "shadedlistitem.h" |
25 | 22 | ||
26 | #include <qvariant.h> | 23 | #include <qvariant.h> |
27 | #include <qdialog.h> | 24 | #include <qdialog.h> |
28 | #include <qwidgetstack.h> | 25 | #include <qwidgetstack.h> |
29 | #include <qtimer.h> | 26 | #include <qtimer.h> |
30 | 27 | ||
31 | class QVBoxLayout; | 28 | class QVBoxLayout; |
32 | class QHBoxLayout; | 29 | class QHBoxLayout; |
33 | class QGridLayout; | 30 | class QGridLayout; |
34 | class ZListView; | 31 | class ZListView; |
35 | class QListViewItem; | 32 | class QListViewItem; |
36 | class QToolButton; | 33 | class QToolButton; |
37 | class QTextBrowser; | 34 | class QTextBrowser; |
38 | class QPopupMenu; | 35 | class QPopupMenu; |
39 | #ifdef DESKTOP | 36 | #ifdef DESKTOP |
40 | // #ifndef WIN32 | 37 | // #ifndef WIN32 |
41 | class QSettings; | 38 | class QSettings; |
42 | // #endif | 39 | // #endif |
43 | #else | 40 | #else |
44 | class Config; | 41 | class Config; |
45 | #endif | 42 | #endif |
46 | class CategoryDialog; | 43 | class CategoryDialog; |
47 | class QPixmap; | 44 | class QPixmap; |
48 | 45 | ||
49 | // number of fields for one entry | 46 | // number of fields for one entry |
50 | #define FIELD_SIZE 7 | 47 | #define FIELD_SIZE 7 |
51 | 48 | ||
52 | class ZSafe : public QDialog | 49 | class ZSafe : public QDialog |
53 | { | 50 | { |
54 | Q_OBJECT | 51 | Q_OBJECT |
55 | 52 | ||
56 | protected: | 53 | protected: |
57 | void paintEvent( QPaintEvent * e ); | 54 | void paintEvent( QPaintEvent * e ); |
@@ -109,35 +106,35 @@ public: | |||
109 | 106 | ||
110 | long load_buffer_length; | 107 | long load_buffer_length; |
111 | long save_buffer_length; | 108 | long save_buffer_length; |
112 | 109 | ||
113 | /** password for the file */ | 110 | /** password for the file */ |
114 | QString m_password; | 111 | QString m_password; |
115 | /** globals needed for file loading */ | 112 | /** globals needed for file loading */ |
116 | int lastcount, size; | 113 | int lastcount, size; |
117 | /** these three are needed in all save functions and initialized in save _init() */ | 114 | /** these three are needed in all save functions and initialized in save _init() */ |
118 | FILE *fd; | 115 | FILE *fd; |
119 | unsigned short iv[4]; | 116 | unsigned short iv[4]; |
120 | char *buffer; | 117 | char *buffer; |
121 | /** these two are global because save_entry() and save_finalize() both n eed them */ | 118 | /** these two are global because save_entry() and save_finalize() both n eed them */ |
122 | int bufferIndex; | 119 | int bufferIndex; |
123 | unsigned short plaintext[4]; | 120 | unsigned short plaintext[4]; |
124 | 121 | ||
125 | #ifdef DESKTOP | 122 | #ifdef DESKTOP |
126 | // #ifndef WIN32 | 123 | // #ifndef WIN32 |
127 | QSettings *conf; | 124 | QSettings *conf; |
128 | // #endif | 125 | // #endif |
129 | #else | 126 | #else |
130 | Config *conf; | 127 | Config *conf; |
131 | #endif | 128 | #endif |
132 | bool expandTree; | 129 | bool expandTree; |
133 | QPopupMenu *file; | 130 | QPopupMenu *file; |
134 | 131 | ||
135 | QTimer docuTimer; | 132 | QTimer docuTimer; |
136 | 133 | ||
137 | 134 | ||
138 | bool openDocument(const char* filename, const char* format=0); | 135 | bool openDocument(const char* filename, const char* format=0); |
139 | int loadInit(const char* filename, const char *password); | 136 | int loadInit(const char* filename, const char *password); |
140 | int loadEntry(char *entry[4]); | 137 | int loadEntry(char *entry[4]); |
141 | int loadFinalize(void); | 138 | int loadFinalize(void); |
142 | bool saveDocument(const char* filename, bool withPwd, const char* format=0); | 139 | bool saveDocument(const char* filename, bool withPwd, const char* format=0); |
143 | int saveInit(const char *filename, const char *password); | 140 | int saveInit(const char *filename, const char *password); |
diff --git a/noncore/apps/zsafe/zsafe.pro b/noncore/apps/zsafe/zsafe.pro index a1f9e9f..65bcb79 100644 --- a/noncore/apps/zsafe/zsafe.pro +++ b/noncore/apps/zsafe/zsafe.pro | |||
@@ -1,17 +1,17 @@ | |||
1 | TEMPLATE = app | 1 | TEMPLATE = app |
2 | CONFIG = qt warn_on release | 2 | CONFIG = qt warn_on release |
3 | DESTDIR = $(OPIEDIR)/bin | 3 | DESTDIR = $(OPIEDIR)/bin |
4 | HEADERS = zsafe.h krc2.h category.h categorylist.h zlistview.h \ | 4 | HEADERS = zsafe.h krc2.h category.h categorylist.h zlistview.h \ |
5 | scqtfiledlg.h | 5 | scqtfiledlg.h |
6 | SOURCES = main.cpp zsafe.cpp krc2.cpp category.cpp \ | 6 | SOURCES = main.cpp zsafe.cpp krc2.cpp category.cpp \ |
7 | categorylist.cpp zlistview.cpp shadedlistitem.cpp\ | 7 | categorylist.cpp zlistview.cpp shadedlistitem.cpp\ |
8 | scqtfileedit.cpp scqtfileedit.moc.cpp \ | 8 | scqtfileedit.cpp scqtfileedit.moc.cpp \ |
9 | scqtfiledlg.cpp | 9 | scqtfiledlg.cpp |
10 | INTERFACES = newdialog.ui searchdialog.ui passworddialog.ui categorydialog.ui infoform.ui wait.ui | 10 | INTERFACES = newdialog.ui searchdialog.ui passworddialog.ui categorydialog.ui infoform.ui wait.ui |
11 | INCLUDEPATH+= $(OPIEDIR)/include | 11 | INCLUDEPATH+= $(OPIEDIR)/include |
12 | DEPENDPATH+= $(OPIEDIR)/include | 12 | DEPENDPATH+= $(OPIEDIR)/include |
13 | LIBS += -Wl,-rpath,$(OPIEDIR)/lib -L$(OPIEDIR)/lib -lqpe -lopie -lstdc++ | 13 | LIBS += -Wl,-rpath,$(OPIEDIR)/lib -L$(OPIEDIR)/lib -lqpe -lopie |
14 | TARGET = zsafe | 14 | TARGET = zsafe |
15 | 15 | ||
16 | include ( $(OPIEDIR)/include.pro ) | 16 | include ( $(OPIEDIR)/include.pro ) |
17 | 17 | ||