sysstatemgmt/systemstatereferenceplugins/test/tunitcustcmd/inc/testpinnotifierplugin.h
changeset 0 4e1aa6a622a0
child 41 c87e5f80c17d
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 // Copyright (c) 2007-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  @test
       
    19  @internalComponent - Internal Symbian test code 
       
    20 */
       
    21 
       
    22 #if !defined(__TESTPINNOTIFIERPLUGIN_H__)
       
    23 #define __TESTPINNOTIFIERPLUGIN_H__
       
    24 
       
    25 #include "securitynotification.h"
       
    26 #include <e32std.h>
       
    27 #include <e32base.h>
       
    28 #include <eiknotapi.h>
       
    29 #include <techview/eikdialg.h>
       
    30 #include <e32cmn.h>
       
    31 
       
    32 
       
    33 IMPORT_C CArrayPtr<MEikSrvNotifierBase2>* NotifierArray();
       
    34 
       
    35 _LIT8(KHiddenKeyRequired, "HIDDENKEY");
       
    36 
       
    37 NONSHARABLE_CLASS (CSecurityPinNotifier) :  public CEikDialog, public MEikSrvNotifierBase2
       
    38 	{
       
    39 public:
       
    40 	static CSecurityPinNotifier* NewLC();
       
    41 	~CSecurityPinNotifier();
       
    42 
       
    43 private:
       
    44 	CSecurityPinNotifier();
       
    45 	void ConstructL();
       
    46 	TInt DisplayNotifier();
       
    47 
       
    48 	//CEikDialog
       
    49 	void PreLayoutDynInitL();
       
    50 	TBool OkToExitL(TInt aButtonId);
       
    51 
       
    52 	//MEikSrvNotifierBase2
       
    53 	void Release();
       
    54 	TNotifierInfo RegisterL();
       
    55 	TNotifierInfo Info() const;
       
    56 	TPtrC8 StartL(const TDesC8& aBuffer);
       
    57 	void StartL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage);
       
    58 	void Cancel();
       
    59 	TPtrC8 UpdateL(const TDesC8& aBuffer);
       
    60 	void UpdateL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage);
       
    61 
       
    62 private:
       
    63 	RMessagePtr2 iMessage;
       
    64 	TNotifierInfo iInfo;
       
    65 	TInt iReplySlot;
       
    66 	};
       
    67 
       
    68 #endif //__TESTPINNOTIFIERPLUGIN_H__