18
|
1 |
/**
|
|
2 |
* Copyright (c) 2010 Sasken Communication Technologies Ltd.
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of the "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html"
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Chandradeep Gandhi, Sasken Communication Technologies Ltd - Initial contribution
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
* Manasij Roy, Nalina Hariharan
|
|
14 |
*
|
|
15 |
* Description:
|
|
16 |
* Represents activity in terms similar to standard activity stream http://activitystrea.ms/
|
|
17 |
*
|
|
18 |
*/
|
|
19 |
|
|
20 |
#include <smfprovider.h>
|
|
21 |
#include <smfcontact.h>
|
|
22 |
|
|
23 |
#include "smfactivityfetcher.h"
|
|
24 |
#include "smfactivityfetcher_p.h"
|
|
25 |
|
|
26 |
|
|
27 |
SmfActivityFetcher::SmfActivityFetcher(SmfProvider *baseprovider)
|
|
28 |
:m_baseProvider(baseprovider)
|
|
29 |
{
|
|
30 |
//creating private impl wrapper
|
|
31 |
m_private = new SmfActivityFetcherPrivate(this);
|
|
32 |
}
|
|
33 |
|
|
34 |
SmfActivityFetcher::~SmfActivityFetcher()
|
|
35 |
{
|
|
36 |
}
|
|
37 |
|
|
38 |
void SmfActivityFetcher::selfActivities(int pageNum, int perPage)
|
|
39 |
{
|
|
40 |
m_private->selfActivities(pageNum,perPage);
|
|
41 |
}
|
|
42 |
|
|
43 |
void SmfActivityFetcher::friendsActivities(const SmfContact & aFriend, int pageNum, int perPage)
|
|
44 |
{
|
|
45 |
m_private->friendsActivities(aFriend,pageNum,perPage);
|
|
46 |
}
|
|
47 |
|
|
48 |
void SmfActivityFetcher::filtered(QList<SmfActivityObjectType> filters, int pageNum, int perPage)
|
|
49 |
{
|
|
50 |
m_private->filtered(filters,pageNum,perPage);
|
|
51 |
}
|
|
52 |
|
|
53 |
void SmfActivityFetcher::customRequest(const int& operationId,QByteArray* customData)
|
|
54 |
{
|
|
55 |
m_private->customRequest(operationId, customData);
|
|
56 |
}
|
|
57 |
|
|
58 |
SmfProvider* SmfActivityFetcher::getProvider() const
|
|
59 |
{
|
|
60 |
return m_baseProvider;
|
|
61 |
}
|