btobexprofiles/obexreceiveservices/btmsgviewer/inc/btmsgviewerutils.h
branchRCL_3
changeset 56 9386f31cc85b
parent 55 613943a21004
child 61 269724087bed
equal deleted inserted replaced
55:613943a21004 56:9386f31cc85b
     1 /*
       
     2  * Copyright (c) 2009 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  *
       
    16  */
       
    17 
       
    18 #ifndef BTMSGVIEWERUTILS_H_
       
    19 #define BTMSGVIEWERUTILS_H_
       
    20 
       
    21 #include <msvapi.h>
       
    22 
       
    23 
       
    24 class CBtMsgViewerUtils: public CBase, public MMsvSessionObserver
       
    25     {    
       
    26 public:
       
    27     static CBtMsgViewerUtils* NewL();
       
    28     ~CBtMsgViewerUtils();
       
    29     HBufC* GetMessagePath(TInt aMessageId, TInt aError);
       
    30     HBufC8* GetMimeType();
       
    31 
       
    32 private: // From MMsvSessionObserver
       
    33     void HandleSessionEventL(TMsvSessionEvent aEvent, TAny* aArg1, TAny* aArg2, TAny* aArg3);
       
    34     
       
    35 private:
       
    36     void GetMessagePathL(TPtr aMsgPath, const TInt aMessageId);
       
    37     void StoreMessageMimeTypeL(TPtr aMsgPath);
       
    38        
       
    39 private:
       
    40     CBtMsgViewerUtils();
       
    41     void ConstructL();
       
    42     
       
    43 private:
       
    44     CMsvSession* iMsvSession;
       
    45     HBufC8*      iMimeType;
       
    46     };
       
    47 
       
    48 #endif // BTMSGVIEWERUTILS_H_