|
1 /* |
|
2 * Copyright (c) 2005-2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "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 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Declaration of CStartupMediatorObserver class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef STARTUPMEDIATOROBSERVER_H |
|
20 #define STARTUPMEDIATOROBSERVER_H |
|
21 |
|
22 #include <MediatorCommandInitiator.h> |
|
23 #include <MediatorEventProvider.h> |
|
24 |
|
25 class CStartupAppUi; |
|
26 |
|
27 class CStartupMediatorObserver : public CBase, |
|
28 public MMediatorCommandResponseObserver |
|
29 { |
|
30 public: // Constructors and destructor |
|
31 |
|
32 /** |
|
33 * C++ constructor. |
|
34 */ |
|
35 CStartupMediatorObserver( CStartupAppUi* aStartupAppUi ); |
|
36 |
|
37 /** |
|
38 * Two-phased constructor. |
|
39 */ |
|
40 static CStartupMediatorObserver* NewL( CStartupAppUi* aStartupAppUi ); |
|
41 |
|
42 /** |
|
43 * Destructor. |
|
44 */ |
|
45 ~CStartupMediatorObserver(); |
|
46 |
|
47 void IssueCommand(TInt aCommandId, TInt aData); |
|
48 |
|
49 void RaiseEvent( TUid aCategory, |
|
50 TInt aEventId, |
|
51 const TDesC8& aData ); |
|
52 |
|
53 public: // MMediatorCommandResponseObserver |
|
54 |
|
55 void CommandResponseL( TUid aDomain, |
|
56 TUid aCategory, |
|
57 TInt aCommandId, |
|
58 TInt aStatus, |
|
59 const TDesC8& aData ); |
|
60 |
|
61 private: |
|
62 |
|
63 /** |
|
64 * By default EPOC constructor is private. |
|
65 */ |
|
66 void ConstructL(); |
|
67 |
|
68 private: //data |
|
69 |
|
70 CStartupAppUi* iStartupAppUi; //uses |
|
71 CMediatorCommandInitiator* iCommandInitiator; |
|
72 CMediatorEventProvider* iEventProvider; |
|
73 TInt iSyncData; |
|
74 }; |
|
75 |
|
76 #endif // STARTUPMEDIATOROBSERVER_H |
|
77 |
|
78 // End of File |