# examples/Messaging/BIOMessageMgr/Inc/BIOMessage.h

    00001 // Copyright (c) 2005-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 //
    00015
    00016 #ifndef __BIOMESSAGE_H__
    00017 #define __BIOMESSAGE_H__
    00018
    00019
    00020 #include "BIOParser.h"
    00021
    00022 #include <sendas2.h>
    00023 #include <csendasaccounts.h>
    00024 #include <csendasmessagetypes.h>
    00025
    00026 // System Includes
    00027 #include <e32cons.h>
    00028
    00029 _LIT(KTestTitle, "BIO Parser Example" );
    00030
    00031 _LIT(KBodyText, "Every man passes his life in the search after friendship.");
    00032 _LIT(KAddress1, "9980501111");
    00033 _LIT(KAddress3, "9980502222");
    00034 _LIT(KAddress4, "9980503333");
    00035 _LIT(KAlias1, "alias1");
    00036 _LIT(KAlias2, "alias2");
    00037 _LIT(KSubject, "HELLO");
    00038
    00039 class CDummyObserver;
    00040 class CBioMessage : public CBase
    00041 {
    00042 public:
    00043         static CBioMessage* NewL();
    00044         ~CBioMessage();
    00045         void StartL();
    00046
    00047         void Connect();
    00048         void CreateL(RSendAsMessage& aMessage);
    00049         void SendL(RSendAsMessage& aMessage);
    00050         void ParseL();
    00051
    00052 private:
    00053         CBioMessage();
    00054         void ConstructL();
    00055         void CleanMailFolderL(TMsvId aFolderId);
    00056
    00057 private:
    00058         CConsoleBase*                   iConsole;
    00059
    00060         RSendAs                                 iSendAs;
    00061         CDummyObserver*                 iObserver;
    00062         CMsvSession*                    iSession;
    00063         CMsvEntry*                              iEntry;
    00064         CMsvEntrySelection*     iSelection;
    00065 };
    00066
    00067
    00068 class CDummyObserver : public CBase, public MMsvSessionObserver
    00069 {
    00070 public:
    00071         void HandleSessionEventL(TMsvSessionEvent, TAny*, TAny*, TAny*) {};
    00072 };
    00073
    00074 #endif /*__BIOMESSAGE_H__*/