equal
deleted
inserted
replaced
22 * QDbus for linux |
22 * QDbus for linux |
23 * QLocalserver for rest of the platforms |
23 * QLocalserver for rest of the platforms |
24 * Note:- only symbian client-server impl is provided at the moment |
24 * Note:- only symbian client-server impl is provided at the moment |
25 **/ |
25 **/ |
26 #include "smfprovider.h" |
26 #include "smfprovider.h" |
27 #include "smfclientglobal.h" |
27 #include "SmfClientGlobal.h" |
28 #include "smfglobal.h" |
28 #include "smfGlobal.h" |
29 #include "smfobserver.h" |
29 #include "SmfObserver.h" |
30 |
30 |
31 class SmfProvider; |
31 class SmfProvider; |
32 |
32 |
33 |
33 |
34 #include <QObject> |
34 #include <QObject> |
35 #include <QDateTime> |
35 #include <QDateTime> |
36 #include <QStringList> |
36 #include <QStringList> |
37 |
37 |
38 #include "smfobserver.h" |
38 #include "SmfObserver.h" |
39 #include "smfcontactfetcher.h" |
39 #include "smfcontactfetcher.h" |
40 #include "smfpostprovider.h" |
40 #include "smfpostprovider.h" |
41 |
41 #include "smflocation.h" |
42 #ifdef Q_OS_SYMBIAN |
42 #ifdef Q_OS_SYMBIAN |
43 class CSmfClientSymbian; |
43 class CSmfClientSymbian; |
44 #else |
44 #else |
45 class SmfClientQt; |
45 class SmfClientQt; |
46 #endif |
46 #endif |
95 * When the list is big user can specify the page number and per page item data. |
95 * When the list is big user can specify the page number and per page item data. |
96 * If not supplied by the user default values are used. |
96 * If not supplied by the user default values are used. |
97 * @param pageNum Page number to download, SMF_FIRST_PAGE denotes fresh query. |
97 * @param pageNum Page number to download, SMF_FIRST_PAGE denotes fresh query. |
98 * @param perPage Item per page, default is SMF_ITEMS_PER_PAGE |
98 * @param perPage Item per page, default is SMF_ITEMS_PER_PAGE |
99 */ |
99 */ |
100 //TODO:-implement |
100 bool searchNear(SmfLocation* location,SmfLocationSearchBoundary proximity,int pageNum=SMF_FIRST_PAGE,int perPage=SMF_ITEMS_PER_PAGE) ; |
101 //bool searchNear(SmfPlace* location,SmfLocationSearchBoundary proximity,int pageNum=SMF_FIRST_PAGE,int perPage=SMF_ITEMS_PER_PAGE) ; |
|
102 |
101 |
103 |
102 |
104 /** |
103 /** |
105 * Get the list of groups. The groupListAvailable() signal |
104 * Get the list of groups. The groupListAvailable() signal |
106 * is emitted with SmfGroupList once data is arrived. False might be returned |
105 * is emitted with SmfGroupList once data is arrived. False might be returned |
126 void resultsAvailable(QByteArray result,SmfRequestTypeID opcode,SmfError error); |
125 void resultsAvailable(QByteArray result,SmfRequestTypeID opcode,SmfError error); |
127 private: |
126 private: |
128 SmfProvider* m_baseProvider; |
127 SmfProvider* m_baseProvider; |
129 //serialized byte array of provider |
128 //serialized byte array of provider |
130 QByteArray m_providerSerialized; |
129 QByteArray m_providerSerialized; |
|
130 //serialized xtra info, order of serialization follows order of param |
|
131 QByteArray m_xtraInfoSerialized; |
131 #ifdef Q_OS_SYMBIAN |
132 #ifdef Q_OS_SYMBIAN |
132 CSmfClientSymbian* m_SmfClientPrivate; |
133 CSmfClientSymbian* m_SmfClientPrivate; |
133 friend class CSmfClientSymbian; |
134 friend class CSmfClientSymbian; |
134 #else |
135 int m_xtraInfoFlag; |
|
136 int m_pageInfoFlag; |
|
137 #else |
135 SmfClientQt* m_SmfClientPrivate; |
138 SmfClientQt* m_SmfClientPrivate; |
136 friend class SmfClientQt; |
139 friend class SmfClientQt; |
137 #endif |
140 #endif |
138 bool m_connected; |
141 bool m_connected; |
139 SmfContactFetcher* m_contactFetcher; |
142 SmfContactFetcher* m_contactFetcher; |