25
|
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 |
* Nalina Hariharan
|
|
14 |
*
|
|
15 |
* Description:
|
|
16 |
* Events related services
|
|
17 |
*
|
|
18 |
*/
|
|
19 |
|
|
20 |
#include "smfeventsfetcher.h"
|
|
21 |
#include "smfeventsfetcher_p.h"
|
|
22 |
|
|
23 |
SmfEventsFetcher::SmfEventsFetcher(SmfProvider *baseProvider)
|
|
24 |
:m_baseProvider(baseProvider)
|
|
25 |
{
|
|
26 |
m_private = new SmfEventsFetcherPrivate(this);
|
|
27 |
}
|
|
28 |
|
|
29 |
SmfEventsFetcher::~SmfEventsFetcher()
|
|
30 |
{
|
|
31 |
if(m_private)
|
|
32 |
{
|
|
33 |
delete m_private;
|
|
34 |
m_private = NULL;
|
|
35 |
}
|
|
36 |
}
|
|
37 |
|
|
38 |
SmfError SmfEventsFetcher::events(SmfLocation venue, int pageNum, int perPage)
|
|
39 |
{
|
|
40 |
return m_private->events(venue,pageNum,perPage);
|
|
41 |
}
|
|
42 |
|
|
43 |
SmfError SmfEventsFetcher::venues(SmfLocation location, int pageNum, int perPage)
|
|
44 |
{
|
|
45 |
return m_private->venues(location,pageNum,perPage);
|
|
46 |
}
|
|
47 |
|
|
48 |
SmfError SmfEventsFetcher::attendees(SmfEvent event, int pageNum, int perPage )
|
|
49 |
{
|
|
50 |
return m_private->attendees(event,pageNum,perPage);
|
|
51 |
}
|
|
52 |
|
|
53 |
SmfError SmfEventsFetcher::postEvents(SmfEventList events)
|
|
54 |
{
|
|
55 |
return m_private->postEvents(events);
|
|
56 |
}
|
|
57 |
|
|
58 |
SmfError SmfEventsFetcher::customRequest(const int& operationId,QByteArray* customData)
|
|
59 |
{
|
|
60 |
return m_private->customRequest(operationId, customData);
|
|
61 |
}
|
|
62 |
|
|
63 |
SmfProvider* SmfEventsFetcher::getProvider() const
|
|
64 |
{
|
|
65 |
return m_baseProvider;
|
|
66 |
}
|
|
67 |
|
|
68 |
SmfError SmfEventsFetcher::cancelRequest()
|
|
69 |
{
|
|
70 |
return m_private->cancelRequest();
|
|
71 |
}
|