mobilemessaging/smum/inc/BioOpenOp.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2002 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 *     Bio Message opening operation
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __BIOOPENOP_H__
       
    22 #define __BIOOPENOP_H__
       
    23 
       
    24 //  INCLUDES
       
    25 #include <msvapi.h>     // for CMsvOperation & TMsvId
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CMtmStore;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33  * Bio Message opening operation.
       
    34  */
       
    35 NONSHARABLE_CLASS( CBioOpenOp ) : public CMsvOperation
       
    36     {
       
    37 public:
       
    38     /**
       
    39      * Two-phased constructor.
       
    40      * @param aSession Session.
       
    41      * @param aObserverStatus Observer status.
       
    42      * @param aId Message ID.
       
    43      * @param aFlags Flags.
       
    44      * @return The object.
       
    45      */
       
    46     static CBioOpenOp* NewL(CMsvSession& aSession, TRequestStatus& aObserverStatus, TMsvId aId, TUint aFlags);
       
    47 
       
    48     /**
       
    49      * Destructor.
       
    50      */
       
    51     virtual ~CBioOpenOp();
       
    52 
       
    53 public: // from CMsvOperation
       
    54     /**
       
    55      * The progress.
       
    56      */
       
    57     const TDesC8& ProgressL();
       
    58 
       
    59 protected: // from CActive
       
    60 
       
    61     /**
       
    62      * Cancelling.
       
    63      */
       
    64     void DoCancel();
       
    65 
       
    66     /**
       
    67      * RunL.
       
    68      */
       
    69     void RunL();
       
    70 
       
    71     /**
       
    72      * Error handling.
       
    73      */
       
    74     TInt RunError(TInt aError);
       
    75 
       
    76 private:
       
    77 
       
    78     /**
       
    79      * Constructor
       
    80      */
       
    81     CBioOpenOp(CMsvSession& aSession, TRequestStatus& aObserverStatus, TMsvId aId);
       
    82 
       
    83     /**
       
    84      *  Second phase constructor.
       
    85      * @param aFlags Flags.
       
    86      */
       
    87     void ConstructL(TUint aFlags);
       
    88 
       
    89     /**
       
    90      * Parse the message.
       
    91      */
       
    92     void DoParseL();
       
    93 
       
    94     /**
       
    95      * Launch the message editor.
       
    96      */
       
    97     void DoEditL();
       
    98 
       
    99     /**
       
   100      * Complete the observer.
       
   101      */
       
   102     void CompleteObserver();
       
   103 
       
   104 private: // prohibited
       
   105 
       
   106     /// Default constructor prohibited
       
   107     CBioOpenOp();
       
   108     
       
   109     /// Copy contructor prohibited.
       
   110     CBioOpenOp(const CBioOpenOp& aSource);
       
   111     
       
   112     /// Assignment operator prohibited.
       
   113     const CBioOpenOp& operator=(const CBioOpenOp& aSource);
       
   114 
       
   115 private:
       
   116 
       
   117     TMsvId      iMsvId;
       
   118     enum TState {EUnknown,EParsing,EEditing};
       
   119     TState iState;
       
   120     CMsvOperation* iOperation;
       
   121     CMtmStore* iMtmStore;
       
   122     CBaseMtmUi* iBioMtmUi;
       
   123     CBaseMtmUi* iSmsMtmUi;
       
   124     TBool       iBioMtmUiClaimed;
       
   125     TBool       iSmsMtmUiClaimed;
       
   126     };
       
   127 
       
   128 
       
   129 #endif // __BIOOPENOP_H__
       
   130 
       
   131 // end of file