-rw-r--r-- | core/obex/obexsend.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/obex/obexsend.h b/core/obex/obexsend.h index 030e180..f9ba340 100644 --- a/core/obex/obexsend.h +++ b/core/obex/obexsend.h | |||
@@ -35,24 +35,25 @@ namespace OpieObex { | |||
35 | QString m_second; | 35 | QString m_second; |
36 | }; | 36 | }; |
37 | class SendWidget : public obexSendBase { | 37 | class SendWidget : public obexSendBase { |
38 | Q_OBJECT | 38 | Q_OBJECT |
39 | public: | 39 | public: |
40 | SendWidget( QWidget* parent = 0, const char* name = 0); | 40 | SendWidget( QWidget* parent = 0, const char* name = 0); |
41 | ~SendWidget(); | 41 | ~SendWidget(); |
42 | 42 | ||
43 | QString file()const; | 43 | QString file()const; |
44 | 44 | ||
45 | protected: | 45 | protected: |
46 | void closeEvent( QCloseEvent* ); | 46 | void closeEvent( QCloseEvent* ); |
47 | void read_receivers(); | ||
47 | 48 | ||
48 | public slots: | 49 | public slots: |
49 | void send( const QString& file, const QString& desc ); | 50 | void send( const QString& file, const QString& desc ); |
50 | 51 | ||
51 | signals: | 52 | signals: |
52 | void done(); | 53 | void done(); |
53 | 54 | ||
54 | protected slots: | 55 | protected slots: |
55 | virtual void userDone(); | 56 | virtual void userDone(); |
56 | virtual void send_to_receivers(); | 57 | virtual void send_to_receivers(); |
57 | virtual void scan_for_receivers(); | 58 | virtual void scan_for_receivers(); |
58 | virtual void toggle_receiver(QListViewItem* item); | 59 | virtual void toggle_receiver(QListViewItem* item); |
@@ -70,25 +71,25 @@ namespace OpieObex { | |||
70 | void slotIrSent(bool); | 71 | void slotIrSent(bool); |
71 | void slotIrTry(unsigned int ); | 72 | void slotIrTry(unsigned int ); |
72 | void slotStartIrda(); | 73 | void slotStartIrda(); |
73 | 74 | ||
74 | void dispatchBt( const QCString& str, const QByteArray& ar ); | 75 | void dispatchBt( const QCString& str, const QByteArray& ar ); |
75 | void slotBtError( int ); | 76 | void slotBtError( int ); |
76 | void slotBtSent(bool); | 77 | void slotBtSent(bool); |
77 | void slotBtTry(unsigned int ); | 78 | void slotBtTry(unsigned int ); |
78 | void slotStartBt(); | 79 | void slotStartBt(); |
79 | 80 | ||
80 | private: | 81 | private: |
81 | void initUI(); | 82 | void initUI(); |
82 | int addReceiver(const char *r, const char *icon); | 83 | int addReceiver(const QString& str, const char *icon); |
83 | void setReceiverStatus( int id, const QString& status ); | 84 | void setReceiverStatus( int id, const QString& status ); |
84 | bool receiverSelected(int id); | 85 | bool receiverSelected(int id); |
85 | 86 | ||
86 | int m_start; | 87 | int m_start; |
87 | QMap<int, QString> m_irDa; | 88 | QMap<int, QString> m_irDa; |
88 | QMap<int, QString>::Iterator m_irDaIt; | 89 | QMap<int, QString>::Iterator m_irDaIt; |
89 | QMap<int, Pair > m_bt; | 90 | QMap<int, Pair > m_bt; |
90 | QMap<int, Pair>::Iterator m_btIt; | 91 | QMap<int, Pair>::Iterator m_btIt; |
91 | QMap<int, QListViewItem *> receivers; | 92 | QMap<int, QListViewItem *> receivers; |
92 | QString m_file; | 93 | QString m_file; |
93 | Obex* m_obex; | 94 | Obex* m_obex; |
94 | BtObex* m_btobex; | 95 | BtObex* m_btobex; |