smf/smfservermodule/smfserver/smfplugins/smfeventsfetcherplugin.h
author cgandhi
Tue, 12 Oct 2010 15:23:52 +0530
changeset 27 b3e1347ac96a
parent 25 a180113055cb
permissions -rw-r--r--
Updating the information for test applications and results.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
25
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
     1
/**
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
     2
 * Copyright (c) 2010 Sasken Communication Technologies Ltd.
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
     3
 * All rights reserved.
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
     4
 * This component and the accompanying materials are made available
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
     5
 * under the terms of the "Eclipse Public License v1.0" 
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
     6
 * which accompanies  this distribution, and is available
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
     7
 * at the URL "http://www.eclipse.org/legal/epl-v10.html"
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
     8
 *
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
     9
 * Initial Contributors:
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    10
 * Chandradeep Gandhi, Sasken Communication Technologies Ltd - Initial contribution
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    11
 *
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    12
 * Contributors:
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    13
 * Manasij Roy, Nalina Hariharan
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    14
 * 
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    15
 * Description:
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    16
 * Interface specification for events
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    17
 * Note: This class has dependencies on QtMobility project
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    18
 *
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    19
 */
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    20
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    21
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    22
#ifndef SMFEVENTSFETCHERPLUGIN_H_
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    23
#define SMFEVENTSFETCHERPLUGIN_H_
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    24
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    25
#include <smfpluginbase.h>
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    26
#include <smfevent.h>
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    27
#include <smflocation.h>
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    28
#include <smfcontact.h>
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    29
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    30
using namespace QtMobility;
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    31
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    32
/**
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    33
 * @ingroup smf_plugin_group
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    34
 * Interface specification for events
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    35
 *
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    36
 * All of the functionality described here should be implemented by a service
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    37
 * specific plug-in.
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    38
 * 
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    39
 * Note: This class has dependencies on QtMobility project
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    40
 */
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    41
class SmfEventsFetcherPlugin : public SmfPluginBase
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    42
	{
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    43
public:
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    44
	
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    45
	/**
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    46
	 * Destructor
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    47
	 */
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    48
	virtual ~SmfEventsFetcherPlugin( ) {}
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    49
	
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    50
	/**
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    51
	 * Method to get the events on the specified location
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    52
	 * @param aRequest [out] The request data to be sent to network
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    53
	 * @param aLocation [in] Location of the event
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    54
	 * @param aPageNum [in] The page to be extracted
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    55
	 * @param aItemsPerPage [in] Number of items per page
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    56
	 * @return Appropriate value of the enum SmfPluginError.
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    57
	 * Plugin error if any, else SmfPluginErrNone for success
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    58
	 */
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    59
	virtual SmfPluginError events( SmfPluginRequestData &aRequest,
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    60
			const SmfLocation &aLocation,
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    61
			const int aPageNum = SMF_FIRST_PAGE, 
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    62
			const int aItemsPerPage = SMF_ITEMS_PER_PAGE ) = 0;
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    63
	
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    64
	/**
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    65
	 * Method to get the venues on the specified location
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    66
	 * @param aRequest [out] The request data to be sent to network
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    67
	 * @param aLocation [in] Location of the venue
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    68
	 * @param aPageNum [in] The page to be extracted
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    69
	 * @param aItemsPerPage [in] Number of items per page
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    70
	 * @return Appropriate value of the enum SmfPluginError.
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    71
	 * Plugin error if any, else SmfPluginErrNone for success
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    72
	 */
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    73
	virtual SmfPluginError venues( SmfPluginRequestData &aRequest,
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    74
			const SmfLocation &aLocation,
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    75
			const int aPageNum = SMF_FIRST_PAGE, 
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    76
			const int aItemsPerPage = SMF_ITEMS_PER_PAGE ) = 0;
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    77
	
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    78
	/**
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    79
	 * Method to get the list of attendees for an event
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    80
	 * @param aRequest [out] The request data to be sent to network
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    81
	 * @param aEvent [in] The event for which attendees should be fetched
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    82
	 * @param aPageNum [in] The page to be extracted
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    83
	 * @param aItemsPerPage [in] Number of items per page
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    84
	 * @return Appropriate value of the enum SmfPluginError.
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    85
	 * Plugin error if any, else SmfPluginErrNone for success
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    86
	 */
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    87
	virtual SmfPluginError attendees( SmfPluginRequestData &aRequest,
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    88
			const SmfEvent &aEvent, 
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    89
			const int aPageNum = SMF_FIRST_PAGE,
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    90
			const int aItemsPerPage = SMF_ITEMS_PER_PAGE ) = 0;
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    91
	/**
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    92
	 * Method to post event(s)
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    93
	 * @param aRequest [out] The request data to be sent to network
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    94
	 * @param aEventList [in] The list of events to be posted
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    95
	 * @return Appropriate value of the enum SmfPluginError.
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    96
	 * Plugin error if any, else SmfPluginErrNone for success
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    97
	 */
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    98
	virtual SmfPluginError postEvents( SmfPluginRequestData &aRequest,
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
    99
			const QList<SmfEvent> &aEventList ) = 0;
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
   100
	
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
   101
	/**
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
   102
	 * Customised method for SmfEventsFetcherPlugin interface
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
   103
	 * @param aRequest [out] The request data to be sent to network
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
   104
	 * @param aOperation [in] The operation type (should be known between 
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
   105
	 * the client interface and the plugin)
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
   106
	 * @param aData [in] The data required to form the request (The type 
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
   107
	 * of data should be known between client and the plugin)
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
   108
	 * @return Appropriate value of the enum SmfPluginError.
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
   109
	 * Plugin error if any, else SmfPluginErrNone for success
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
   110
	 */
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
   111
	virtual SmfPluginError customRequest( SmfPluginRequestData &aRequest, 
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
   112
			const int &aOperation, QByteArray *aData ) = 0;
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
   113
	
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
   114
	};
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
   115
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
   116
Q_DECLARE_INTERFACE( SmfEventsFetcherPlugin, "org.symbian.smf.plugin.events.fetcher/v0.2" );
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
   117
a180113055cb Music Events are now normal Fetcher APIs added
cgandhi
parents:
diff changeset
   118
#endif /* SMFEVENTSFETCHERPLUGIN_H_ */