summaryrefslogtreecommitdiff
Unidiff
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
@@ -6,24 +6,79 @@
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& );
@@ -39,4 +94,5 @@ namespace OpieTooth {
39 const ProtocolDescription& ); 94 const ProtocolDescription& );
40 }; 95 };
96
41 public: 97 public:
42 typedef QValueList<Services> ValueList; 98 typedef QValueList<Services> ValueList;