commonuisupport/uikon/test/teiksrv/tnotdial/tpluginV2.h
changeset 0 2f259fa3e83a
equal deleted inserted replaced
-1:000000000000 0:2f259fa3e83a
       
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalComponent - Internal Symbian test code 
       
    19 */
       
    20 
       
    21 #if !defined(__TPLUGINV2_H__)
       
    22 #define __TPLUGINV2_H__
       
    23 
       
    24 #include <e32std.h>
       
    25 #include <e32base.h>
       
    26 #include <eiknotapi.h>
       
    27 #include <techview/eikdialg.h>
       
    28 #include <eikmsg.h>			
       
    29 
       
    30 // Used by ecom based Version2 notifiers
       
    31 const TUid KMyNewPhoneNotifierUid={0x10021241};
       
    32 const TUid KMyNewLowBatteryNotifierUid={0x10021242};
       
    33 const TUid KMyNewAgendaAlarmUid={0x10021243};
       
    34 
       
    35 // Used by non ecom based Version2 notifiers
       
    36 const TUid KMyPhoneNotifierUid={0x10021234};
       
    37 const TUid KMyLowBatteryNotifierUid={0x10021235};
       
    38 const TUid KMyAgendaAlarmUid={0x10021236};
       
    39 
       
    40 
       
    41 IMPORT_C CArrayPtr<MEikSrvNotifierBase2>* NotifierArray();
       
    42 
       
    43 class CMyPhoneNotifierSubject:  public CEikDialog, public MEikSrvNotifierBase2
       
    44 	{
       
    45 public:
       
    46 	static CMyPhoneNotifierSubject* NewLC();
       
    47 	~CMyPhoneNotifierSubject();
       
    48 
       
    49 private:
       
    50 	CMyPhoneNotifierSubject();
       
    51 	void ConstructL();
       
    52 	TInt DisplayNotifier();
       
    53 //from CEikDialog
       
    54 	void PreLayoutDynInitL();
       
    55 	TBool OkToExitL(TInt aButtonId);
       
    56 //from MEikSrvNotifierBase2
       
    57 	void Release();
       
    58 	TNotifierInfo RegisterL();
       
    59 	TNotifierInfo Info() const;
       
    60 	TPtrC8 StartL(const TDesC8& aBuffer);
       
    61 	void StartL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage);
       
    62 	void Cancel();
       
    63 	TPtrC8 UpdateL(const TDesC8& aBuffer);
       
    64 	void UpdateL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage);
       
    65 
       
    66 private:
       
    67 
       
    68 	TNotifierInfo iInfo;
       
    69 
       
    70 	};
       
    71 
       
    72 
       
    73 class CMyLEDPhoneNotifierSubject: public CEikDialog, public MEikSrvNotifierBase2
       
    74 	{
       
    75 public:
       
    76 	static CMyLEDPhoneNotifierSubject* NewLC();
       
    77 	~CMyLEDPhoneNotifierSubject();
       
    78 
       
    79 private:
       
    80 	CMyLEDPhoneNotifierSubject();
       
    81 	void ConstructL();
       
    82 	TInt DisplayNotifier();
       
    83 
       
    84 //from MEikSrvNotifierBase2
       
    85 	void Release();
       
    86 	TNotifierInfo RegisterL();
       
    87 	TNotifierInfo Info() const;
       
    88 	TPtrC8 StartL(const TDesC8& aBuffer);
       
    89 	void StartL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage);
       
    90 	void Cancel();
       
    91 	TPtrC8 UpdateL(const TDesC8& aBuffer);
       
    92 	void UpdateL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage);
       
    93 
       
    94 private:
       
    95 
       
    96 	TNotifierInfo iInfo;
       
    97 	CEikBusyMsgWin* iBusyMsgWin;
       
    98 	};
       
    99 
       
   100 class CMyLowBatteryNotifierSubject: public CEikDialog, public MEikSrvNotifierBase2
       
   101 	{
       
   102 public:
       
   103 	static CMyLowBatteryNotifierSubject* NewLC();
       
   104 	~CMyLowBatteryNotifierSubject();
       
   105 
       
   106 private:
       
   107 	CMyLowBatteryNotifierSubject();
       
   108 	void ConstructL();
       
   109 	TInt DisplayNotifier();
       
   110 //from CEikDialog
       
   111 	void PreLayoutDynInitL();
       
   112 	TBool OkToExitL(TInt aButtonId);
       
   113 //from MEikSrvNotifierBase2
       
   114 	void Release();
       
   115 	TNotifierInfo RegisterL();
       
   116 	TNotifierInfo Info() const;
       
   117 	TPtrC8 StartL(const TDesC8& aBuffer);
       
   118 	void StartL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage);
       
   119 	void Cancel();
       
   120 	TPtrC8 UpdateL(const TDesC8& aBuffer);
       
   121 	void UpdateL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage);
       
   122 	//Added for flip support GPO 18.05.2001
       
   123 	void HandleSystemEventL(TUid aEvent);
       
   124 	//Added for flip support GPO 18.05.2001
       
   125 	virtual TInt NotifierCapabilites();
       
   126 
       
   127 private:
       
   128 
       
   129 	TNotifierInfo iInfo;
       
   130 
       
   131 	};
       
   132 
       
   133 class CMyLEDLowBatteryNotifierSubject: public CEikDialog, public MEikSrvNotifierBase2
       
   134 	{
       
   135 	public:
       
   136 	static CMyLEDLowBatteryNotifierSubject* NewLC();
       
   137 	~CMyLEDLowBatteryNotifierSubject();
       
   138 
       
   139 
       
   140 private:
       
   141 	CMyLEDLowBatteryNotifierSubject();
       
   142 	void ConstructL();
       
   143 	TInt DisplayNotifier();
       
   144 
       
   145 //from MEikSrvNotifierBase
       
   146 	void Release();
       
   147 	TNotifierInfo RegisterL();
       
   148 	TNotifierInfo Info() const;
       
   149 	TPtrC8 StartL(const TDesC8& aBuffer);
       
   150 	void StartL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage);
       
   151 	void Cancel();
       
   152 	TPtrC8 UpdateL(const TDesC8& aBuffer);
       
   153 	void UpdateL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage);
       
   154 	//Added for flip support GPO 18.05.2001
       
   155 	void HandleSystemEventL(TUid aEvent);
       
   156 	//Added for flip support GPO 18.05.2001
       
   157 	virtual TInt NotifierCapabilites();
       
   158 private:
       
   159 
       
   160 	TNotifierInfo iInfo;
       
   161 	CEikBusyMsgWin* iBusyMsgWin;
       
   162 
       
   163 	};
       
   164 
       
   165 
       
   166 class CMyAgendaNotifierSubject: public CEikDialog, public MEikSrvNotifierBase2
       
   167 	{
       
   168 public:
       
   169 	static CMyAgendaNotifierSubject* NewLC();
       
   170 	~CMyAgendaNotifierSubject();
       
   171 
       
   172 
       
   173 private:
       
   174 	CMyAgendaNotifierSubject();
       
   175 	void ConstructL();
       
   176 	TInt DisplayNotifier();
       
   177 //from CEikDialog
       
   178 	void PreLayoutDynInitL();
       
   179 	TBool OkToExitL(TInt aButtonId);
       
   180 
       
   181 //from MEikSrvNotifierBase2
       
   182 	void Release();
       
   183 	TNotifierInfo RegisterL();
       
   184 	TNotifierInfo Info() const;
       
   185 	TPtrC8 StartL(const TDesC8& aBuffer);
       
   186 	void StartL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage);
       
   187 	void Cancel();
       
   188 	TPtrC8 UpdateL(const TDesC8& aBuffer);
       
   189 	void UpdateL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage);
       
   190 
       
   191 private:
       
   192 
       
   193 	TNotifierInfo iInfo;
       
   194 
       
   195 
       
   196 	};
       
   197 
       
   198 
       
   199 class CMyLEDAgendaNotifierSubject: public CEikDialog, public MEikSrvNotifierBase2
       
   200 	{
       
   201 public:
       
   202 	static CMyLEDAgendaNotifierSubject* NewLC();
       
   203 	~CMyLEDAgendaNotifierSubject();
       
   204 
       
   205 private:
       
   206 	CMyLEDAgendaNotifierSubject();
       
   207 	void ConstructL();
       
   208 	TInt DisplayNotifier();
       
   209 
       
   210 //from MEikSrvNotifierBase2
       
   211 	void Release();
       
   212 	TNotifierInfo RegisterL();
       
   213 	TNotifierInfo Info() const;
       
   214 	TPtrC8 StartL(const TDesC8& aBuffer);
       
   215 	void StartL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage);
       
   216 	void Cancel();
       
   217 	TPtrC8 UpdateL(const TDesC8& aBuffer);
       
   218 	void UpdateL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage);
       
   219 
       
   220 private:
       
   221 
       
   222 	TNotifierInfo iInfo;
       
   223 	CEikBusyMsgWin* iBusyMsgWin;
       
   224 
       
   225 
       
   226 	};
       
   227 
       
   228 
       
   229 #endif