summaryrefslogtreecommitdiff
authorzecke <zecke>2002-05-30 20:36:32 (UTC)
committer zecke <zecke>2002-05-30 20:36:32 (UTC)
commit5ccef6fc78375e668af32138b244ec476418de1f (patch) (unidiff)
tree49246fa2de64fe5afd9d19b959085a9b8630ab23
parent82f086d29f36ca631d26f8a4a70fd1e809c58364 (diff)
downloadopie-5ccef6fc78375e668af32138b244ec476418de1f.zip
opie-5ccef6fc78375e668af32138b244ec476418de1f.tar.gz
opie-5ccef6fc78375e668af32138b244ec476418de1f.tar.bz2
Docu updates
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/lib/services.h58
1 files changed, 57 insertions, 1 deletions
diff --git a/noncore/net/opietooth/lib/services.h b/noncore/net/opietooth/lib/services.h
index 7701f12..4a4dea8 100644
--- a/noncore/net/opietooth/lib/services.h
+++ b/noncore/net/opietooth/lib/services.h
@@ -1,64 +1,120 @@
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 /**
9 * Services lets shows you all available services
10 * on a remote device
11 */
8 class Services { 12 class Services {
13
14 /** The profile descriptor
15 *
16 */
9 class ProfileDesriptor{ 17 class ProfileDesriptor{
10 public: 18 public:
19 /** typedef */
11 typedef QValueList<ProfileDescriptor> ValueList; 20 typedef QValueList<ProfileDescriptor> ValueList;
21 /** c'tor for QValueList */
12 ProfileDescriptor(); 22 ProfileDescriptor();
13 ProfileDescriptor(const QString &id, uint, uint version ); 23 /**
24 * c'tor
25 * @param id The id or name ("Lan Access Using PPP")
26 * @param idInt The id as uint ( 0x1102 )
27 * @param version Version of the Profile ( 1 )
28 */
29 ProfileDescriptor(const QString &id, uint idInt, uint version );
30 /**
31 * copy c'tor
32 */
14 ProfileDescriptor(const ProfileDescriptor& ); 33 ProfileDescriptor(const ProfileDescriptor& );
34 /**
35 * returns the id
36 */
15 QString id()const; 37 QString id()const;
38 /**
39 * sets the id
40 */
16 void setId(const QString& id); 41 void setId(const QString& id);
42
43 /**
44 * sets the uint id
45 */
17 void setId(uint ); 46 void setId(uint );
47 /**
48 * reutns the id as int
49 */
18 uint idInt()const; 50 uint idInt()const;
51 /**
52 * returns the version
53 */
19 uint version()const; 54 uint version()const;
55 /**
56 * sets the Version
57 */
20 void setVersion(uint version ); 58 void setVersion(uint version );
59 /**
60 * copy operator
61 */
21 ProfileDescriptor &operator=( const ProfileDescriptor ); 62 ProfileDescriptor &operator=( const ProfileDescriptor );
63 /**
64 * operator==
65 */
22 friend bool operator==(const ProfileDescriptor&, const ProfileDescriptor& ); 66 friend bool operator==(const ProfileDescriptor&, const ProfileDescriptor& );
23 }; 67 };
68 /**
69 * Protocol Descriptor
70 */
24 class ProtocolDescriptor { 71 class ProtocolDescriptor {
25 public: 72 public:
26 typedef QValueList<ProtocolDescriptor> ValueList; 73 typedef QValueList<ProtocolDescriptor> ValueList;
74 /**
75 * c'tor
76 */
27 ProtocolDescriptor(); 77 ProtocolDescriptor();
78 /**
79 * name
80 * number
81 * channel/port
82 */
28 ProtocolDescriptor(const QString&, uint, uint channel ); // Q_UINT8 ? 83 ProtocolDescriptor(const QString&, uint, uint channel ); // Q_UINT8 ?
29 ProtocolDescriptot(const ProtocolDescriptor& ); 84 ProtocolDescriptot(const ProtocolDescriptor& );
30 ~ProtocolDescriptor(); 85 ~ProtocolDescriptor();
31 QString name()const; 86 QString name()const;
32 void setName(const QString& ); 87 void setName(const QString& );
33 uint id()const; 88 uint id()const;
34 void setId(uint ); 89 void setId(uint );
35 uint port()const; 90 uint port()const;
36 void setPort(uint ); 91 void setPort(uint );
37 ProtocolDescriptor &operator=( const ProtocolDescriptor& ); 92 ProtocolDescriptor &operator=( const ProtocolDescriptor& );
38 friend bool operator==( const ProtocolDescription&, 93 friend bool operator==( const ProtocolDescription&,
39 const ProtocolDescription& ); 94 const ProtocolDescription& );
40 }; 95 };
96
41 public: 97 public:
42 typedef QValueList<Services> ValueList; 98 typedef QValueList<Services> ValueList;
43 Services(); 99 Services();
44 Services(const Services& service ); 100 Services(const Services& service );
45 ~Services(); 101 ~Services();
46 102
47 Services &operator=( const Services& ); 103 Services &operator=( const Services& );
48 friend bool operator==(const Services&, const Services& ); 104 friend bool operator==(const Services&, const Services& );
49 QString serviceName()const; 105 QString serviceName()const;
50 void setServiceName( const QString& service ); 106 void setServiceName( const QString& service );
51 107
52 int recHandle()const; 108 int recHandle()const;
53 void setRecHandle( int ); 109 void setRecHandle( int );
54 110
55 QString classIdList()const; 111 QString classIdList()const;
56 void setClassIdList( const QString& ); 112 void setClassIdList( const QString& );
57 int classIdListInt()const; 113 int classIdListInt()const;
58 void setClassIdList(int ); 114 void setClassIdList(int );
59 115
60 void insertProtocolDescriptor(const ProtocolDescriptor& ); 116 void insertProtocolDescriptor(const ProtocolDescriptor& );
61 void clearProtocolDescriptorList(); 117 void clearProtocolDescriptorList();
62 void removeProtocolDescriptor( const ProtocolDescriptor& ); 118 void removeProtocolDescriptor( const ProtocolDescriptor& );
63 ProtocolDescriptor::ValueList protocolDescriptorList()const; 119 ProtocolDescriptor::ValueList protocolDescriptorList()const;
64 120