commonuisupport/uikon/test/teiksrv/tnotdial/tnotify2v2.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(__TNOTIFY2V2_H__)
       
    22 #define __TNOTIFY2V2_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 KMyNewSmsNotifierUid={0x10021238};
       
    32 const TUid KMyNewEmailNotifierUid={0x10021237};
       
    33 
       
    34 // Used by non ecom based Version2 notifiers
       
    35 const TUid KMySmsNotifierUid={0x10021231};
       
    36 const TUid KMyEmailNotifierUid={0x10021230};
       
    37 
       
    38 
       
    39 IMPORT_C CArrayPtr<MEikSrvNotifierBase2>* NotifierArray();
       
    40 
       
    41 class CMySmsNotifierSubject:  public CEikDialog, public MEikSrvNotifierBase2
       
    42 	{
       
    43 public:
       
    44 	static CMySmsNotifierSubject* NewLC();
       
    45 	~CMySmsNotifierSubject();
       
    46 
       
    47 private:
       
    48 	CMySmsNotifierSubject();
       
    49 	void ConstructL();
       
    50 	TInt DisplayNotifier();
       
    51 //from CEikDialog
       
    52 	void PreLayoutDynInitL();
       
    53 	TBool OkToExitL(TInt aButtonId);
       
    54 //from MEikSrvNotifierBase
       
    55 	void Release();
       
    56 	TNotifierInfo RegisterL();
       
    57 	TNotifierInfo Info() const;
       
    58 	TPtrC8 StartL(const TDesC8& aBuffer);
       
    59 	void StartL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage);
       
    60 	void Cancel();
       
    61 	TPtrC8 UpdateL(const TDesC8& aBuffer);
       
    62 	void UpdateL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage);
       
    63 
       
    64 private:
       
    65 
       
    66 	TNotifierInfo iInfo;
       
    67 
       
    68 	};
       
    69 
       
    70 
       
    71 class CMyLEDSmsNotifierSubject: public CEikDialog, public MEikSrvNotifierBase2
       
    72 	{
       
    73 public:
       
    74 	static CMyLEDSmsNotifierSubject* NewLC();
       
    75 	~CMyLEDSmsNotifierSubject();
       
    76 
       
    77 private:
       
    78 	CMyLEDSmsNotifierSubject();
       
    79 	void ConstructL();
       
    80 	TInt DisplayNotifier();
       
    81 
       
    82 //from MEikSrvNotifierBase2
       
    83 	void Release();
       
    84 	TNotifierInfo RegisterL();
       
    85 	TNotifierInfo Info() const;
       
    86 	TPtrC8 StartL(const TDesC8& aBuffer);
       
    87 	void StartL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage);
       
    88 	void Cancel();
       
    89 	TPtrC8 UpdateL(const TDesC8& aBuffer);
       
    90 	void UpdateL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage);
       
    91 
       
    92 private:
       
    93 
       
    94 	TNotifierInfo iInfo;
       
    95 	CEikBusyMsgWin* iBusyMsgWin;
       
    96 	};
       
    97 
       
    98 
       
    99 
       
   100 class CMyEmailNotifierSubject: public CEikDialog, public MEikSrvNotifierBase2
       
   101 	{
       
   102 public:
       
   103 	static CMyEmailNotifierSubject* NewLC();
       
   104 	~CMyEmailNotifierSubject();
       
   105 
       
   106 
       
   107 private:
       
   108 	CMyEmailNotifierSubject();
       
   109 	void ConstructL();
       
   110 	TInt DisplayNotifier();
       
   111 //from CEikDialog
       
   112 	void PreLayoutDynInitL();
       
   113 	TBool OkToExitL(TInt aButtonId);
       
   114 
       
   115 //from MEikSrvNotifierBase2
       
   116 	void Release();
       
   117 	TNotifierInfo RegisterL();
       
   118 	TNotifierInfo Info() const;
       
   119 	TPtrC8 StartL(const TDesC8& aBuffer);
       
   120 	void StartL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage);
       
   121 	void Cancel();
       
   122 	TPtrC8 UpdateL(const TDesC8& aBuffer);
       
   123 	void UpdateL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage);
       
   124 private:
       
   125 	TNotifierInfo iInfo;
       
   126 	};
       
   127 
       
   128 
       
   129 class CMyLEDEmailNotifierSubject: public CEikDialog, public MEikSrvNotifierBase2
       
   130 	{
       
   131 public:
       
   132 	static CMyLEDEmailNotifierSubject* NewLC();
       
   133 	~CMyLEDEmailNotifierSubject();
       
   134 
       
   135 private:
       
   136 	CMyLEDEmailNotifierSubject();
       
   137 	void ConstructL();
       
   138 	TInt DisplayNotifier();
       
   139 
       
   140 //from MEikSrvNotifierBase2
       
   141 	void Release();
       
   142 	TNotifierInfo RegisterL();
       
   143 	TNotifierInfo Info() const;
       
   144 	TPtrC8 StartL(const TDesC8& aBuffer);
       
   145 	void StartL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage);
       
   146 	void Cancel();
       
   147 	TPtrC8 UpdateL(const TDesC8& aBuffer);
       
   148 	void UpdateL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage);
       
   149 private:
       
   150 	TNotifierInfo iInfo;
       
   151 	CEikBusyMsgWin* iBusyMsgWin;
       
   152 	};
       
   153 
       
   154 
       
   155 #endif