examples/Messaging/SendAs2Example/SendAs2Example.h

00001 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
00002 // All rights reserved.
00003 // This component and the accompanying materials are made available
00004 // under the terms of "Eclipse Public License v1.0"
00005 // which accompanies this distribution, and is available
00006 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
00007 //
00008 // Initial Contributors:
00009 // Nokia Corporation - initial contribution.
00010 //
00011 // Contributors:
00012 //
00013 // Description:
00014 // @file
00015 // This contains Class CSendAs2Example.
00016 //
00017 
00018 #ifndef __SENDAS2EXAMPLE_H__
00019 #define __SENDAS2EXAMPLE_H__
00020 
00021 // epoc include
00022 #include <sendas2.h>
00023 #include <csendasaccounts.h>
00024 #include <csendasmessagetypes.h>
00025 #include <mtmuids.h>
00026 #include <e32cons.h>
00027 #include <msvids.h>
00028 
00029 class CDummyObserver;
00030 
00038 class CSendAs2Example : public CBase
00039 {
00040 public:
00041         static CSendAs2Example* NewL();
00042         ~CSendAs2Example();
00043         void StartL();
00044         void Connect();
00045         void CreateL(RSendAsMessage& aMessage);
00046         void DisplayAccountL();
00047         void CapabilityFilterL();
00048         void SendL(RSendAsMessage& aMessage);
00049         
00050 private:
00051         CSendAs2Example();
00052         void ConstructL();
00053         void CleanMessageFolderL();
00054 
00055 private:
00057         CConsoleBase*                   iConsole;
00058         RSendAs                                 iSendAs;
00060         CDummyObserver*                 iObserver;
00062         CMsvSession*                    iSession;
00064         CMsvEntry*                              iEntry;
00066         CMsvEntrySelection*     iSelection;
00067 };
00068 
00076 class CDummyObserver : public CBase, public MMsvSessionObserver
00077 {
00078 public:
00079         void HandleSessionEventL(TMsvSessionEvent, TAny*, TAny*, TAny*) {};
00080 };
00081 
00082 #endif /*__SENDASEXAMPLE_H__*/
00083 
00084 

Generated by  doxygen 1.6.2