author | korovkin <korovkin> | 2006-12-03 14:09:33 (UTC) |
---|---|---|
committer | korovkin <korovkin> | 2006-12-03 14:09:33 (UTC) |
commit | a691909050b60b94f5525093062c23d0fab11d1b (patch) (unidiff) | |
tree | 1e1d82e76d85cd75c094ae36441ec852bb5ac456 /core/obex/obexsend.h | |
parent | 9813113f0024205e09af9e54328287dd859fa2e8 (diff) | |
download | opie-a691909050b60b94f5525093062c23d0fab11d1b.zip opie-a691909050b60b94f5525093062c23d0fab11d1b.tar.gz opie-a691909050b60b94f5525093062c23d0fab11d1b.tar.bz2 |
Made OBEX library buildable if bluetooth support is disabled.
-rw-r--r-- | core/obex/obexsend.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/obex/obexsend.h b/core/obex/obexsend.h index f9ba340..cc27354 100644 --- a/core/obex/obexsend.h +++ b/core/obex/obexsend.h | |||
@@ -21,7 +21,9 @@ class QVBoxLayout; | |||
21 | */ | 21 | */ |
22 | namespace OpieObex { | 22 | namespace OpieObex { |
23 | class Obex; | 23 | class Obex; |
24 | #ifdef BLUETOOTH | ||
24 | class BtObex; | 25 | class BtObex; |
26 | #endif | ||
25 | 27 | ||
26 | struct Pair { | 28 | struct Pair { |
27 | Pair(const QString& first = QString::null, | 29 | Pair(const QString& first = QString::null, |
@@ -44,7 +46,9 @@ namespace OpieObex { | |||
44 | 46 | ||
45 | protected: | 47 | protected: |
46 | void closeEvent( QCloseEvent* ); | 48 | void closeEvent( QCloseEvent* ); |
49 | #ifdef BLUETOOTH | ||
47 | void read_receivers(); | 50 | void read_receivers(); |
51 | #endif | ||
48 | 52 | ||
49 | public slots: | 53 | public slots: |
50 | void send( const QString& file, const QString& desc ); | 54 | void send( const QString& file, const QString& desc ); |
@@ -63,6 +67,7 @@ namespace OpieObex { | |||
63 | void slotIrDaDevices( const QStringList& ); | 67 | void slotIrDaDevices( const QStringList& ); |
64 | /* Bt Names + BD-Addr */ | 68 | /* Bt Names + BD-Addr */ |
65 | void slotBTDevices( const QMap<QString, QString>& ); | 69 | void slotBTDevices( const QMap<QString, QString>& ); |
70 | |||
66 | void slotSelectedDevice( int id, int dev ); | 71 | void slotSelectedDevice( int id, int dev ); |
67 | 72 | ||
68 | void dispatchIrda( const QCString& str, const QByteArray& ar ); | 73 | void dispatchIrda( const QCString& str, const QByteArray& ar ); |
@@ -87,12 +92,16 @@ namespace OpieObex { | |||
87 | int m_start; | 92 | int m_start; |
88 | QMap<int, QString> m_irDa; | 93 | QMap<int, QString> m_irDa; |
89 | QMap<int, QString>::Iterator m_irDaIt; | 94 | QMap<int, QString>::Iterator m_irDaIt; |
95 | #ifdef BLUETOOTH | ||
90 | QMap<int, Pair > m_bt; | 96 | QMap<int, Pair > m_bt; |
91 | QMap<int, Pair>::Iterator m_btIt; | 97 | QMap<int, Pair>::Iterator m_btIt; |
98 | #endif | ||
92 | QMap<int, QListViewItem *> receivers; | 99 | QMap<int, QListViewItem *> receivers; |
93 | QString m_file; | 100 | QString m_file; |
94 | Obex* m_obex; | 101 | Obex* m_obex; |
102 | #ifdef BLUETOOTH | ||
95 | BtObex* m_btobex; | 103 | BtObex* m_btobex; |
104 | #endif | ||
96 | }; | 105 | }; |
97 | } | 106 | } |
98 | 107 | ||