-rw-r--r-- | core/obex/receiver.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/obex/receiver.h b/core/obex/receiver.h index 5b20146..e1d54df 100644 --- a/core/obex/receiver.h +++ b/core/obex/receiver.h | |||
@@ -1,55 +1,58 @@ | |||
1 | #ifndef OPIE_OBEX_RECEIVER_H | 1 | #ifndef OPIE_OBEX_RECEIVER_H |
2 | #define OPIE_OBEX_RECEIVER_H | 2 | #define OPIE_OBEX_RECEIVER_H |
3 | 3 | ||
4 | #include <qobject.h> | 4 | #include <qobject.h> |
5 | #include <qvbox.h> | 5 | #include <qvbox.h> |
6 | #include <qstring.h> | 6 | #include <qstring.h> |
7 | 7 | ||
8 | class QLabel; | 8 | class QLabel; |
9 | class QTextView; | 9 | class QTextView; |
10 | namespace OpieObex { | 10 | namespace OpieObex { |
11 | class Obex; | 11 | class Obex; |
12 | class OtherHandler; | 12 | class OtherHandler; |
13 | class Receiver : public QObject { | 13 | class Receiver : public QObject { |
14 | Q_OBJECT | 14 | Q_OBJECT |
15 | public: | 15 | public: |
16 | enum { Datebook , AddressBook, Other }; | 16 | enum { Datebook , AddressBook, Other }; |
17 | Receiver(); | 17 | Receiver(); |
18 | ~Receiver(); | 18 | ~Receiver(); |
19 | 19 | ||
20 | private: | 20 | private: |
21 | void handleAddr(const QString& ); | 21 | void handleAddr(const QString& ); |
22 | void handleDateTodo(const QString& ); | 22 | void handleDateTodo(const QString& ); |
23 | void handleOther(const QString& ); | 23 | void handleOther(const QString& ); |
24 | int checkFile( const QString& file ); | 24 | /* will alter the file name */ |
25 | int checkFile( QString& file ); | ||
25 | bool testDateTodo(const QString& file); | 26 | bool testDateTodo(const QString& file); |
26 | bool testAddressbook(const QString& file); | 27 | bool testAddressbook(const QString& file); |
28 | /* called by checkFile */ | ||
29 | void tidyUp( QString& file, const QString& ending ); | ||
27 | 30 | ||
28 | private slots: | 31 | private slots: |
29 | void slotReceived( const QString& ); | 32 | void slotReceived( const QString& ); |
30 | 33 | ||
31 | private: | 34 | private: |
32 | Obex* m_obex; | 35 | Obex* m_obex; |
33 | }; | 36 | }; |
34 | 37 | ||
35 | class OtherHandler : public QVBox { | 38 | class OtherHandler : public QVBox { |
36 | Q_OBJECT | 39 | Q_OBJECT |
37 | public: | 40 | public: |
38 | OtherHandler(); | 41 | OtherHandler(); |
39 | ~OtherHandler(); | 42 | ~OtherHandler(); |
40 | 43 | ||
41 | void handle( const QString& file ); | 44 | void handle( const QString& file ); |
42 | private slots: | 45 | private slots: |
43 | void accept(); | 46 | void accept(); |
44 | void deny(); | 47 | void deny(); |
45 | private: | 48 | private: |
46 | QString targetName( const QString& file ); | 49 | QString targetName( const QString& file ); |
47 | void copy( const QString& src, const QString& dest ); | 50 | void copy( const QString& src, const QString& dest ); |
48 | QLabel* m_na; | 51 | QLabel* m_na; |
49 | QTextView* m_view; | 52 | QTextView* m_view; |
50 | QString m_file; | 53 | QString m_file; |
51 | }; | 54 | }; |
52 | } | 55 | } |
53 | 56 | ||
54 | 57 | ||
55 | #endif | 58 | #endif |