diff -r 000000000000 -r 4e1aa6a622a0 sysstatemgmt/systemstatereferenceplugins/test/tunitcustcmd/inc/testpinnotifierplugin.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sysstatemgmt/systemstatereferenceplugins/test/tunitcustcmd/inc/testpinnotifierplugin.h Tue Feb 02 00:53:00 2010 +0200 @@ -0,0 +1,68 @@ +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +/** + @file + @test + @internalComponent - Internal Symbian test code +*/ + +#if !defined(__TESTPINNOTIFIERPLUGIN_H__) +#define __TESTPINNOTIFIERPLUGIN_H__ + +#include "securitynotification.h" +#include +#include +#include +#include +#include + + +IMPORT_C CArrayPtr* NotifierArray(); + +_LIT8(KHiddenKeyRequired, "HIDDENKEY"); + +NONSHARABLE_CLASS (CSecurityPinNotifier) : public CEikDialog, public MEikSrvNotifierBase2 + { +public: + static CSecurityPinNotifier* NewLC(); + ~CSecurityPinNotifier(); + +private: + CSecurityPinNotifier(); + void ConstructL(); + TInt DisplayNotifier(); + + //CEikDialog + void PreLayoutDynInitL(); + TBool OkToExitL(TInt aButtonId); + + //MEikSrvNotifierBase2 + void Release(); + TNotifierInfo RegisterL(); + TNotifierInfo Info() const; + TPtrC8 StartL(const TDesC8& aBuffer); + void StartL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage); + void Cancel(); + TPtrC8 UpdateL(const TDesC8& aBuffer); + void UpdateL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage); + +private: + RMessagePtr2 iMessage; + TNotifierInfo iInfo; + TInt iReplySlot; + }; + +#endif //__TESTPINNOTIFIERPLUGIN_H__