equal
deleted
inserted
replaced
26 |
26 |
27 // forward declaation |
27 // forward declaation |
28 class SmfRelationMgrPrivate; |
28 class SmfRelationMgrPrivate; |
29 |
29 |
30 // implementaion constants |
30 // implementaion constants |
31 const int maxSmfRelationIdSize = 500; |
31 const int maxSmfRelationIdSize = 1000; |
32 const int maxSmfRelationItemSize = 1000; |
32 const int maxSmfRelationItemSize = 1000; |
33 const int maxRelationItems = 1000; |
33 const int maxRelationItems = 1000; |
34 |
34 |
35 |
35 |
36 // persistent Id of a relation. |
36 // persistent Id of a relation. |
37 typedef QString SmfRelationId; |
37 typedef QString SmfRelationId; |
38 |
38 |
39 /** |
39 /** |
|
40 * @ingroup smf_client_group |
40 * One record of a contact in a relation. Index specifies their position in the relationship. |
41 * One record of a contact in a relation. Index specifies their position in the relationship. |
41 */ |
42 */ |
42 class SMFCLIENT_EXPORT SmfRelationItem : public SmfContact |
43 class SMFCLIENT_EXPORT SmfRelationItem : public SmfContact |
43 { |
44 { |
44 public: |
45 public: |
45 SmfRelationItem(SmfProvider* provider=0); |
46 SmfRelationItem(); |
46 |
47 |
47 public: |
48 public: |
48 SmfProvider getProvider() const; |
49 SmfProvider getProvider() const; |
49 void setProvider(SmfProvider& provider); |
50 void setProvider(SmfProvider& provider); |
50 |
51 |
132 * be added to this relation using this RelationId |
133 * be added to this relation using this RelationId |
133 */ |
134 */ |
134 SmfRelationId create(SmfProvider *provider=NULL, SmfContact *contact=NULL); |
135 SmfRelationId create(SmfProvider *provider=NULL, SmfContact *contact=NULL); |
135 |
136 |
136 /** assign contact to a relation */ |
137 /** assign contact to a relation */ |
137 SmfError associate( SmfRelationId& relation, |
138 SmfError associate( SmfRelationId& phoneId, |
138 const SmfContact* contact, |
139 const SmfContact* contact, |
139 SmfProvider* provider); |
140 SmfProvider* provider); |
140 |
141 |
141 /** remove contact from a relation */ |
142 /** remove contact from a relation */ |
142 SmfError remove(SmfRelationId& relation, |
143 SmfError remove(SmfRelationId& relation, |