45
|
1 |
/*
|
|
2 |
* calenservices.h
|
|
3 |
*
|
|
4 |
* Created on: Jun 21, 2010
|
|
5 |
* Author: zabinpio
|
|
6 |
*/
|
|
7 |
|
|
8 |
#ifndef CALENSERVICES_H_
|
|
9 |
#define CALENSERVICES_H_
|
|
10 |
|
|
11 |
#include "calencontext.h"
|
75
|
12 |
#include "calennotificationhandler.h"
|
|
13 |
#include "hb_calencommands.hrh"
|
45
|
14 |
|
|
15 |
/*!
|
|
16 |
Mocked class MCalenServices
|
|
17 |
*/
|
|
18 |
class AgendaUtil;
|
|
19 |
|
|
20 |
class MCalenServices
|
|
21 |
{
|
|
22 |
public:
|
|
23 |
MCalenServices() {
|
|
24 |
|
|
25 |
}
|
|
26 |
|
|
27 |
MCalenContext& Context(){
|
|
28 |
return mContext;
|
|
29 |
}
|
|
30 |
|
|
31 |
int getFirstView(){ return 0;}
|
75
|
32 |
bool IssueCommandL( quint32 aCommand ){ mLastCommand = aCommand; return true;}
|
45
|
33 |
AgendaUtil* agendaInterface() {return 0;}
|
|
34 |
|
75
|
35 |
void RegisterForNotificationsL( MCalenNotificationHandler* aHandler,
|
|
36 |
TCalenNotification aNotification ) {}
|
|
37 |
|
|
38 |
virtual void RegisterForNotificationsL( MCalenNotificationHandler* aHandler,
|
|
39 |
RArray<TCalenNotification>& aNotifications )
|
|
40 |
{}
|
|
41 |
|
|
42 |
void IssueNotificationL( quint32 aNotification ) { mLastCommand = aNotification; }
|
|
43 |
|
|
44 |
QString* InfobarTextL() {return 0;}
|
|
45 |
|
|
46 |
quint32 lastCommand() {return mLastCommand;}
|
|
47 |
|
|
48 |
quint32 mLastCommand;
|
|
49 |
MCalenContext mContext;
|
|
50 |
|
45
|
51 |
~MCalenServices() {
|
|
52 |
|
|
53 |
}
|
|
54 |
};
|
|
55 |
#endif /* CALENSERVICES_H_ */
|