summaryrefslogtreecommitdiff
authorzecke <zecke>2002-05-30 19:07:10 (UTC)
committer zecke <zecke>2002-05-30 19:07:10 (UTC)
commitde93428a4984c5cae7c1cc1e6cbf84139cb9a09d (patch) (unidiff)
tree63f6dbd8b2488c329a2df7fd4e62c8861e38a8a4
parent961cc05f4469d1df004010903110d0d936400c17 (diff)
downloadopie-de93428a4984c5cae7c1cc1e6cbf84139cb9a09d.zip
opie-de93428a4984c5cae7c1cc1e6cbf84139cb9a09d.tar.gz
opie-de93428a4984c5cae7c1cc1e6cbf84139cb9a09d.tar.bz2
interface updates
Diffstat (more/less context) (show 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
@@ -6,11 +6,37 @@
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;
@@ -18,6 +44,8 @@ namespace OpieTooth {
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
@@ -29,6 +57,15 @@ namespace OpieTooth {
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