author | zecke <zecke> | 2002-05-30 20:36:32 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-05-30 20:36:32 (UTC) |
commit | 5ccef6fc78375e668af32138b244ec476418de1f (patch) (unidiff) | |
tree | 49246fa2de64fe5afd9d19b959085a9b8630ab23 | |
parent | 82f086d29f36ca631d26f8a4a70fd1e809c58364 (diff) | |
download | opie-5ccef6fc78375e668af32138b244ec476418de1f.zip opie-5ccef6fc78375e668af32138b244ec476418de1f.tar.gz opie-5ccef6fc78375e668af32138b244ec476418de1f.tar.bz2 |
Docu updates
-rw-r--r-- | noncore/net/opietooth/lib/services.h | 58 |
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 | |||
@@ -5,26 +5,81 @@ | |||
5 | #include <qvaluelist.h> | 5 | #include <qvaluelist.h> |
6 | 6 | ||
7 | namespace OpieTooth { | 7 | namespace 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(); |
@@ -38,6 +93,7 @@ namespace OpieTooth { | |||
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(); |