diff -r 000000000000 -r 8e480a14352b messagingfw/sendas/test/sendastextnotifier/inc/csendasUInotifier.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/messagingfw/sendas/test/sendastextnotifier/inc/csendasUInotifier.h Mon Jan 18 20:36:02 2010 +0200 @@ -0,0 +1,80 @@ +// Copyright (c) 2005-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: +// + +#ifndef __CSENDASEUINOTIFIER_H__ +#define __CSENDASEUINOTIFIER_H__ + +#include +#include +#include +class CMsvEntrySelection; + +const TUint KCountServMajorVersionNumber=0; +const TUint KCountServMinorVersionNumber=1; +const TUint KCountServBuildVersionNumber=1; + +_LIT(KDummyServerName, "DummyServer"); +_LIT(KDummyServerExe, "Dummyserver.exe"); + + + +// Function codes (opcodes) used in message passing between client and server +enum TServReqst + { + EServGetTMsvEntry = 1, + }; + +class CSendAsUINotifier : public CBase, public MEikSrvNotifierBase2 + { +public: + // Construction + static CSendAsUINotifier* NewL(); + ~CSendAsUINotifier(); +private: + CSendAsUINotifier(); + void ConstructL(); + + // From MEikSrvNotifierBase2 + virtual void Release(); + virtual TNotifierInfo RegisterL(); + virtual TNotifierInfo Info() const; + virtual TPtrC8 StartL(const TDesC8& aBuffer); + virtual void StartL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage); + virtual void Cancel(); + virtual TPtrC8 UpdateL(const TDesC8& aBuffer); + +private: + TNotifierInfo iInfo; + RMessagePtr2 iMessage; + TInt iReplySlot; + TSecurityInfo iSecurityInfo; + CMsvEntrySelection* iSelection; + }; + + +class RDummyServSession : public RSessionBase + { +public: + RDummyServSession(); + TInt Connect(); + TVersion Version() const; + TMsvEntry GetTMsvEntry(CMsvEntrySelection* iSelection); + }; + +#endif // __CSENDASEUINOTIFIER_H__ + + + +