-rw-r--r-- | core/obex/obexserver.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/obex/obexserver.h b/core/obex/obexserver.h index 8567105..28577e2 100644 --- a/core/obex/obexserver.h +++ b/core/obex/obexserver.h | |||
@@ -32,52 +32,54 @@ | |||
32 | #ifndef ObexServer_H | 32 | #ifndef ObexServer_H |
33 | #define ObexServer_H | 33 | #define ObexServer_H |
34 | 34 | ||
35 | #include <qobject.h> | 35 | #include <qobject.h> |
36 | #include <opie2/oprocess.h> | 36 | #include <opie2/oprocess.h> |
37 | 37 | ||
38 | #include <bluetooth/sdp.h> | 38 | #include <bluetooth/sdp.h> |
39 | #include <bluetooth/sdp_lib.h> | 39 | #include <bluetooth/sdp_lib.h> |
40 | 40 | ||
41 | #include <openobex/obex.h> | 41 | #include <openobex/obex.h> |
42 | 42 | ||
43 | namespace Opie { | 43 | namespace Opie { |
44 | namespace Core { | 44 | namespace Core { |
45 | class OProcess; | 45 | class OProcess; |
46 | namespace Internal { | 46 | namespace Internal { |
47 | class OProcessController; | 47 | class OProcessController; |
48 | } | 48 | } |
49 | } | 49 | } |
50 | }; | 50 | }; |
51 | 51 | ||
52 | namespace Opie {namespace Core {class OProcess;}} | 52 | namespace Opie {namespace Core {class OProcess;}} |
53 | namespace OpieObex { | 53 | namespace OpieObex { |
54 | class ObexServer : public Opie::Core::OProcess { | 54 | class ObexServer : public Opie::Core::OProcess { |
55 | Q_OBJECT | 55 | Q_OBJECT |
56 | private: | ||
57 | int transport; //The OBEX transport type | ||
56 | public: | 58 | public: |
57 | /** | 59 | /** |
58 | * ObexServer constructor | 60 | * ObexServer constructor |
59 | */ | 61 | */ |
60 | ObexServer(); | 62 | ObexServer(int trans); |
61 | /** | 63 | /** |
62 | * | 64 | * |
63 | */ | 65 | */ |
64 | ~ObexServer(); | 66 | ~ObexServer(); |
65 | //Function starts the server process | 67 | //Function starts the server process |
66 | virtual bool start( RunMode runmode = NotifyOnExit, | 68 | virtual bool start( RunMode runmode = NotifyOnExit, |
67 | Communication comm = NoCommunication ); | 69 | Communication comm = NoCommunication ); |
68 | //Stop the server process | 70 | //Stop the server process |
69 | int stop(); | 71 | int stop(); |
70 | protected: //variables | 72 | protected: //variables |
71 | obex_t* m_obex; //Obex server handler | 73 | obex_t* m_obex; //Obex server handler |
72 | sdp_session_t* m_session; //SDP session handler; | 74 | sdp_session_t* m_session; //SDP session handler; |
73 | protected: //functions | 75 | protected: //functions |
74 | //Funtion initializes obex server return 0 on success and -1 on error | 76 | //Funtion initializes obex server return 0 on success and -1 on error |
75 | int initObex(void); | 77 | int initObex(void); |
76 | //Function registers an OBEX push service | 78 | //Function registers an OBEX push service |
77 | sdp_session_t* addOpushSvc(uint8_t chan, const char* name); | 79 | sdp_session_t* addOpushSvc(uint8_t chan, const char* name); |
78 | signals: | 80 | signals: |
79 | protected slots: | 81 | protected slots: |
80 | }; | 82 | }; |
81 | }; | 83 | }; |
82 | 84 | ||
83 | #endif | 85 | #endif |