btobexprofiles/obexreceiveservices/btmsgviewer/inc/btmsgviewerutils.h
changeset 41 0b2439c3e397
child 47 9e2a905b887f
equal deleted inserted replaced
40:997690c3397a 41:0b2439c3e397
       
     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 
       
    31 private: // From MMsvSessionObserver
       
    32     void HandleSessionEventL(TMsvSessionEvent aEvent, TAny* aArg1, TAny* aArg2, TAny* aArg3);
       
    33     
       
    34 private:
       
    35     void GetMessagePathL(TPtr aMsgPath, const TInt aMessageId);
       
    36        
       
    37 private:
       
    38     CBtMsgViewerUtils();
       
    39     void ConstructL();
       
    40     
       
    41 private:
       
    42     CMsvSession* iMsvSession;
       
    43     };
       
    44 
       
    45 #endif // BTMSGVIEWERUTILS_H_