Diffstat (limited to 'noncore/unsupported/mailit/addatt.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/mailit/addatt.h | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/noncore/unsupported/mailit/addatt.h b/noncore/unsupported/mailit/addatt.h index 867c905..73062e2 100644 --- a/noncore/unsupported/mailit/addatt.h +++ b/noncore/unsupported/mailit/addatt.h | |||
@@ -27,17 +27,20 @@ | |||
27 | #include <qstring.h> | 27 | #include <qstring.h> |
28 | #include <qfileinfo.h> | 28 | #include <qfileinfo.h> |
29 | #include <qstringlist.h> | 29 | #include <qstringlist.h> |
30 | #include <opie/ofileselector.h> | ||
31 | #include <qpe/applnk.h> | ||
30 | 32 | ||
31 | class FileItem : public QListViewItem | 33 | class FileItem : public QListViewItem |
32 | { | 34 | { |
33 | public: | 35 | public: |
34 | FileItem(QListView *parent, QFileInfo fileInfo, QString fileType); | 36 | //FileItem(QListView *parent, QFileInfo fileInfo, QString fileType); |
35 | QFileInfo getFileInfo(); | 37 | FileItem(QListView*, DocLnk*); |
36 | QString getFileType(); | 38 | ~FileItem(); |
37 | 39 | DocLnk* getDocLnk() {return doclnk;} | |
40 | |||
41 | |||
38 | private: | 42 | private: |
39 | QFileInfo file; | 43 | DocLnk* doclnk; |
40 | QString type; | ||
41 | }; | 44 | }; |
42 | 45 | ||
43 | class AddAtt : public QDialog | 46 | class AddAtt : public QDialog |
@@ -51,20 +54,23 @@ public: | |||
51 | void getFiles(); | 54 | void getFiles(); |
52 | void clear(); | 55 | void clear(); |
53 | 56 | ||
57 | |||
54 | public slots: | 58 | public slots: |
55 | void fileCategorySelected(int); | 59 | //void fileCategorySelected(int); |
56 | void addAttatchment(); | 60 | void addAttatchment(); |
57 | void removeAttatchment(); | 61 | void removeAttatchment(); |
58 | void reject(); | 62 | void reject(); |
59 | void accept(); | 63 | void accept(); |
60 | 64 | ||
61 | private: | 65 | private: |
62 | FileItem *item; | 66 | FileItem* item; |
63 | QListView *listView, *attView; | 67 | QListView *attView; |
64 | QPushButton *fileCategoryButton, *attatchButton, *removeButton; | 68 | QPushButton *fileCategoryButton, *attatchButton, *removeButton; |
65 | QPopupMenu *fileCategories; | 69 | QPopupMenu *fileCategories; |
66 | bool modified; | 70 | bool modified; |
67 | QFileInfo *fi; | 71 | QFileInfo *fi; |
72 | |||
73 | OFileSelector* ofs; | ||
68 | }; | 74 | }; |
69 | 75 | ||
70 | #endif | 76 | #endif |