|         |      1 /* | 
|         |      2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). | 
|         |      3 * All rights reserved. | 
|         |      4 * This component and the accompanying materials are made available | 
|         |      5 * under the terms of "Eclipse Public License v1.0" | 
|         |      6 * which accompanies this distribution, and is available | 
|         |      7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". | 
|         |      8 * | 
|         |      9 * Initial Contributors: | 
|         |     10 * Nokia Corporation - initial contribution. | 
|         |     11 * | 
|         |     12 * Contributors: | 
|         |     13 * | 
|         |     14 * Description:   | 
|         |     15 *     CMsgConfirmSendNotifier declaration file | 
|         |     16 * | 
|         |     17 */ | 
|         |     18  | 
|         |     19  | 
|         |     20  | 
|         |     21 #ifndef __MSGCONFIRMSENDNOTIFIER_H__ | 
|         |     22 #define __MSGCONFIRMSENDNOTIFIER_H__ | 
|         |     23  | 
|         |     24 #include <eiksrv.h> | 
|         |     25 #include <eiknotapi.h> | 
|         |     26 #include <msvapi.h> | 
|         |     27  | 
|         |     28 class CMsvEntrySelection; | 
|         |     29 class CMsgConfirmSendQuery; | 
|         |     30  | 
|         |     31 NONSHARABLE_CLASS( CMsgConfirmSendNotifier ) : public CBase, | 
|         |     32                                                public MEikSrvNotifierBase2 | 
|         |     33 	{ | 
|         |     34     public: | 
|         |     35      | 
|         |     36     	//	Construction | 
|         |     37     	static CMsgConfirmSendNotifier* NewL( TBool aSendAs ); | 
|         |     38     	~CMsgConfirmSendNotifier(); | 
|         |     39  | 
|         |     40     void HandleActiveEvent( const TInt aStatus ); | 
|         |     41     	 | 
|         |     42     private: | 
|         |     43      | 
|         |     44     	CMsgConfirmSendNotifier( TBool aSendAs ); | 
|         |     45     	void ConstructL(); | 
|         |     46  | 
|         |     47     	//	From MNotifierBase2 | 
|         |     48     	virtual void Release(); | 
|         |     49     	virtual TNotifierInfo RegisterL(); | 
|         |     50     	virtual TNotifierInfo Info() const; | 
|         |     51     	virtual TPtrC8 StartL( const TDesC8& aBuffer ); | 
|         |     52     	virtual void StartL( const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage ); | 
|         |     53     	virtual void Cancel(); | 
|         |     54     	virtual TPtrC8 UpdateL( const TDesC8& aBuffer ); | 
|         |     55  | 
|         |     56     private: | 
|         |     57      | 
|         |     58     	TNotifierInfo   iInfo; | 
|         |     59     	RMessagePtr2    iMessage; | 
|         |     60     	TInt		    iReplySlot; | 
|         |     61     	 | 
|         |     62     	CMsgConfirmSendQuery* iQuery; | 
|         |     63  | 
|         |     64 	}; | 
|         |     65 	 | 
|         |     66 //********************************** | 
|         |     67 // CDummyObserver | 
|         |     68 //********************************** | 
|         |     69  | 
|         |     70 NONSHARABLE_CLASS( CDummyObserver ) : public CBase, public MMsvSessionObserver | 
|         |     71 	{ | 
|         |     72 public: | 
|         |     73 	void HandleSessionEventL( TMsvSessionEvent, TAny*, TAny*, TAny* ) {}; | 
|         |     74 	}; | 
|         |     75  | 
|         |     76 #endif	// __MSGCONFIRMSENDNOTIFIER_H__ | 
|         |     77  | 
|         |     78  |