summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/lib/services.h41
1 files changed, 39 insertions, 2 deletions
diff --git a/noncore/net/opietooth/lib/services.h b/noncore/net/opietooth/lib/services.h
index 52d4893..7701f12 100644
--- a/noncore/net/opietooth/lib/services.h
+++ b/noncore/net/opietooth/lib/services.h
@@ -1,37 +1,74 @@
1 1
2#ifndef OpieToothServices_H 2#ifndef OpieToothServices_H
3#define OpieToothServices_H 3#define OpieToothServices_H
4 4
5#include <qvaluelist.h> 5#include <qvaluelist.h>
6 6
7namespace OpieTooth { 7namespace OpieTooth {
8 class Services { 8 class Services {
9 class ProfileDesriptor{
10 public:
11 typedef QValueList<ProfileDescriptor> ValueList;
12 ProfileDescriptor();
13 ProfileDescriptor(const QString &id, uint, uint version );
14 ProfileDescriptor(const ProfileDescriptor& );
15 QString id()const;
16 void setId(const QString& id);
17 void setId(uint );
18 uint idInt()const;
19 uint version()const;
20 void setVersion(uint version );
21 ProfileDescriptor &operator=( const ProfileDescriptor );
22 friend bool operator==(const ProfileDescriptor&, const ProfileDescriptor& );
23 };
9 class ProtocolDescriptor { 24 class ProtocolDescriptor {
10 public: 25 public:
11 typedef QValueList<ProtocolDescriptor> ValueList; 26 typedef QValueList<ProtocolDescriptor> ValueList;
12 ProtocolDescriptor(const QString& ); 27 ProtocolDescriptor();
13 28 ProtocolDescriptor(const QString&, uint, uint channel ); // Q_UINT8 ?
29 ProtocolDescriptot(const ProtocolDescriptor& );
30 ~ProtocolDescriptor();
31 QString name()const;
32 void setName(const QString& );
33 uint id()const;
34 void setId(uint );
35 uint port()const;
36 void setPort(uint );
37 ProtocolDescriptor &operator=( const ProtocolDescriptor& );
38 friend bool operator==( const ProtocolDescription&,
39 const ProtocolDescription& );
14 }; 40 };
15 public: 41 public:
16 typedef QValueList<Services> ValueList; 42 typedef QValueList<Services> ValueList;
17 Services(); 43 Services();
18 Services(const Services& service ); 44 Services(const Services& service );
19 ~Services(); 45 ~Services();
20 46
47 Services &operator=( const Services& );
48 friend bool operator==(const Services&, const Services& );
21 QString serviceName()const; 49 QString serviceName()const;
22 void setServiceName( const QString& service ); 50 void setServiceName( const QString& service );
23 51
24 int recHandle()const; 52 int recHandle()const;
25 void setRecHandle( int ); 53 void setRecHandle( int );
26 54
27 QString classIdList()const; 55 QString classIdList()const;
28 void setClassIdList( const QString& ); 56 void setClassIdList( const QString& );
29 int classIdListInt()const; 57 int classIdListInt()const;
30 void setClassIdList(int ); 58 void setClassIdList(int );
31 59
60 void insertProtocolDescriptor(const ProtocolDescriptor& );
61 void clearProtocolDescriptorList();
62 void removeProtocolDescriptor( const ProtocolDescriptor& );
63 ProtocolDescriptor::ValueList protocolDescriptorList()const;
64
65 void insertProfileDescriptor( const ProfileDescriptor& );
66 void clearProfileDescriptorList();
67 void removeProfileDescriptor(const ProfileDescriptor& );
68 ProfileDescriptor::ValueList profileDescriptor()const;
32 69
33 70
34 71
35 }; 72 };
36}; 73};
37#endif 74#endif