-rw-r--r-- | core/obex/receiver.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/core/obex/receiver.h b/core/obex/receiver.h index e1d54df..a10ea13 100644 --- a/core/obex/receiver.h +++ b/core/obex/receiver.h | |||
@@ -1,25 +1,31 @@ | |||
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 | //Receiver type | ||
9 | typedef enum _RecType { | ||
10 | REC_IRDA = 0, | ||
11 | REC_BLUETOOTH = 1 | ||
12 | } RecType; | ||
13 | |||
8 | class QLabel; | 14 | class QLabel; |
9 | class QTextView; | 15 | class QTextView; |
10 | namespace OpieObex { | 16 | namespace OpieObex { |
11 | class Obex; | 17 | class ObexBase; |
12 | class OtherHandler; | 18 | class OtherHandler; |
13 | class Receiver : public QObject { | 19 | class Receiver : public QObject { |
14 | Q_OBJECT | 20 | Q_OBJECT |
15 | public: | 21 | public: |
16 | enum { Datebook , AddressBook, Other }; | 22 | enum { Datebook , AddressBook, Other }; |
17 | Receiver(); | 23 | Receiver(RecType type); |
18 | ~Receiver(); | 24 | ~Receiver(); |
19 | 25 | ||
20 | private: | 26 | private: |
21 | void handleAddr(const QString& ); | 27 | void handleAddr(const QString& ); |
22 | void handleDateTodo(const QString& ); | 28 | void handleDateTodo(const QString& ); |
23 | void handleOther(const QString& ); | 29 | void handleOther(const QString& ); |
24 | /* will alter the file name */ | 30 | /* will alter the file name */ |
25 | int checkFile( QString& file ); | 31 | int checkFile( QString& file ); |
@@ -27,17 +33,17 @@ namespace OpieObex { | |||
27 | bool testAddressbook(const QString& file); | 33 | bool testAddressbook(const QString& file); |
28 | /* called by checkFile */ | 34 | /* called by checkFile */ |
29 | void tidyUp( QString& file, const QString& ending ); | 35 | void tidyUp( QString& file, const QString& ending ); |
30 | 36 | ||
31 | private slots: | 37 | private slots: |
32 | void slotReceived( const QString& ); | 38 | void slotReceived( const QString& ); |
33 | 39 | ||
34 | private: | 40 | private: |
35 | Obex* m_obex; | 41 | ObexBase* m_obex; //IR obex |
36 | }; | 42 | }; |
37 | 43 | ||
38 | class OtherHandler : public QVBox { | 44 | class OtherHandler : public QVBox { |
39 | Q_OBJECT | 45 | Q_OBJECT |
40 | public: | 46 | public: |
41 | OtherHandler(); | 47 | OtherHandler(); |
42 | ~OtherHandler(); | 48 | ~OtherHandler(); |
43 | 49 | ||