summaryrefslogtreecommitdiff
path: root/noncore
authorzecke <zecke>2002-06-19 20:17:39 (UTC)
committer zecke <zecke>2002-06-19 20:17:39 (UTC)
commit5c56a4cb4bd0aaf3fb2145feb018f8d074a58da2 (patch) (unidiff)
tree39df033332c4d8f35f8542a731697cf564a04535 /noncore
parent4c943ea6682e53c2039881aab72f6e003b78880d (diff)
downloadopie-5c56a4cb4bd0aaf3fb2145feb018f8d074a58da2.zip
opie-5c56a4cb4bd0aaf3fb2145feb018f8d074a58da2.tar.gz
opie-5c56a4cb4bd0aaf3fb2145feb018f8d074a58da2.tar.bz2
sdptool parser
Diffstat (limited to 'noncore') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/opietooth/lib/lib.pro6
-rw-r--r--noncore/net/opietooth/lib/services.cc22
-rw-r--r--noncore/net/opietooth/lib/services.h30
3 files changed, 29 insertions, 29 deletions
diff --git a/noncore/net/opietooth/lib/lib.pro b/noncore/net/opietooth/lib/lib.pro
index ce36d66..72cb456 100644
--- a/noncore/net/opietooth/lib/lib.pro
+++ b/noncore/net/opietooth/lib/lib.pro
@@ -2,6 +2,6 @@ TEMPLATE = lib
2CONFIG += qte warn_on release 2CONFIG += qte warn_on release
3 HEADERS = device.h manager.h remotedevice.h services.h 3 HEADERS = parser.h device.h manager.h remotedevice.h services.h
4 SOURCES = device.cc manager.cc remotedevice.cc services.cc 4 SOURCES = parser.cc device.cc manager.cc remotedevice.cc services.cc
5 TARGET = opietooth 5 TARGET = opietooth
6INCLUDEPATH += $(OPIEDIR)/include 6INCLUDEPATH += $(OPIEDIR)/include .
7DESTDIR = $(QTDIR)/lib$(PROJMAK) 7DESTDIR = $(QTDIR)/lib$(PROJMAK)
diff --git a/noncore/net/opietooth/lib/services.cc b/noncore/net/opietooth/lib/services.cc
index 75c1bd6..d91e4a1 100644
--- a/noncore/net/opietooth/lib/services.cc
+++ b/noncore/net/opietooth/lib/services.cc
@@ -9,3 +9,3 @@ Services::ProfileDescriptor::ProfileDescriptor(){
9} 9}
10Services::ProfileDescriptor::ProfileDescriptor(const QString &id, uint idInt, uint version ){ 10Services::ProfileDescriptor::ProfileDescriptor(const QString &id, int idInt, int version ){
11 m_id = id; 11 m_id = id;
@@ -23,12 +23,12 @@ void Services::ProfileDescriptor::setId( const QString& id ){
23} 23}
24void Services::ProfileDescriptor::setId(uint id ){ 24void Services::ProfileDescriptor::setId(int id ){
25 m_idInt = id; 25 m_idInt = id;
26} 26}
27uint Services::ProfileDescriptor::idInt()const{ 27int Services::ProfileDescriptor::idInt()const{
28 return m_idInt; 28 return m_idInt;
29} 29}
30uint Services::ProfileDescriptor::version() const{ 30int Services::ProfileDescriptor::version() const{
31 return m_version; 31 return m_version;
32} 32}
33void Services::ProfileDescriptor::setVersion(uint version){ 33void Services::ProfileDescriptor::setVersion(int version){
34 m_version = version; 34 m_version = version;
@@ -56,4 +56,4 @@ Services::ProtocolDescriptor::ProtocolDescriptor(){
56Services::ProtocolDescriptor::ProtocolDescriptor(const QString& name, 56Services::ProtocolDescriptor::ProtocolDescriptor(const QString& name,
57 uint number, 57 int number,
58 uint channel){ 58 int channel){
59 m_name = name; 59 m_name = name;
@@ -74,12 +74,12 @@ void Services::ProtocolDescriptor::setName(const QString& name ){
74} 74}
75uint Services::ProtocolDescriptor::id()const { 75int Services::ProtocolDescriptor::id()const {
76 return m_number; 76 return m_number;
77} 77}
78void Services::ProtocolDescriptor::setId( uint id ){ 78void Services::ProtocolDescriptor::setId( int id ){
79 m_number = id; 79 m_number = id;
80} 80}
81uint Services::ProtocolDescriptor::port()const { 81int Services::ProtocolDescriptor::port()const {
82 return m_channel; 82 return m_channel;
83} 83}
84void Services::ProtocolDescriptor::setPort( uint port ){ 84void Services::ProtocolDescriptor::setPort( int port ){
85 m_channel = port; 85 m_channel = port;
diff --git a/noncore/net/opietooth/lib/services.h b/noncore/net/opietooth/lib/services.h
index 8e9378a..65de049 100644
--- a/noncore/net/opietooth/lib/services.h
+++ b/noncore/net/opietooth/lib/services.h
@@ -28,3 +28,3 @@ namespace OpieTooth {
28 */ 28 */
29 ProfileDescriptor(const QString &id, uint idInt, uint version ); 29 ProfileDescriptor(const QString &id, int idInt, int version );
30 /** 30 /**
@@ -43,5 +43,5 @@ namespace OpieTooth {
43 /** 43 /**
44 * sets the uint id 44 * sets the int id
45 */ 45 */
46 void setId(uint ); 46 void setId(int );
47 /** 47 /**
@@ -49,3 +49,3 @@ namespace OpieTooth {
49 */ 49 */
50 uint idInt()const; 50 int idInt()const;
51 /** 51 /**
@@ -53,3 +53,3 @@ namespace OpieTooth {
53 */ 53 */
54 uint version()const; 54 int version()const;
55 /** 55 /**
@@ -57,3 +57,3 @@ namespace OpieTooth {
57 */ 57 */
58 void setVersion(uint version ); 58 void setVersion(int version );
59 /** 59 /**
@@ -68,4 +68,4 @@ namespace OpieTooth {
68 QString m_id; 68 QString m_id;
69 uint m_idInt; 69 int m_idInt;
70 uint m_version; 70 int m_version;
71 }; 71 };
@@ -86,3 +86,3 @@ namespace OpieTooth {
86 */ 86 */
87 ProtocolDescriptor(const QString&, uint, uint channel ); // Q_UINT8 ? 87 ProtocolDescriptor(const QString&, int, int port = -1 ); // Q_UINT8 ?
88 ProtocolDescriptor(const ProtocolDescriptor& ); 88 ProtocolDescriptor(const ProtocolDescriptor& );
@@ -91,6 +91,6 @@ namespace OpieTooth {
91 void setName(const QString& ); 91 void setName(const QString& );
92 uint id()const; 92 int id()const;
93 void setId(uint ); 93 void setId(int );
94 uint port()const; 94 int port()const;
95 void setPort(uint ); 95 void setPort(int );
96 ProtocolDescriptor &operator=( const ProtocolDescriptor& ); 96 ProtocolDescriptor &operator=( const ProtocolDescriptor& );
@@ -100,4 +100,4 @@ namespace OpieTooth {
100 QString m_name; 100 QString m_name;
101 uint m_number; 101 int m_number;
102 uint m_channel; 102 int m_channel;
103 }; 103 };