mobilemessaging/unieditor/mmsplugin/inc/UniMmsPlugin.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2005-2008 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 *       UniEditor Mms Plugin definition.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __UNIMMSPLUGIN_H
       
    22 #define __UNIMMSPLUGIN_H
       
    23 
       
    24 // INCLUDES
       
    25 #include "UniPluginApi.h"
       
    26 
       
    27 // DATA TYPES
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 
       
    31 class CClientMtmRegistry;
       
    32 class CMmsClientMtm;
       
    33 class CMmsHeaders;
       
    34 class CMmsSettings;
       
    35 class CCommsDatabase;
       
    36 
       
    37 // CLASS DECLARATION
       
    38 
       
    39 /**
       
    40 *
       
    41 */ 
       
    42 class CUniMmsPlugin : public CUniEditorPlugin
       
    43 	{
       
    44 	public:  // Constructors and destructor
       
    45         
       
    46         /**
       
    47         * Two-phased constructor.
       
    48         */
       
    49         static CUniMmsPlugin* NewL( TAny* aConstructionParameters );
       
    50  		
       
    51         /**
       
    52         * Destructor.
       
    53         */
       
    54         virtual ~CUniMmsPlugin();
       
    55 
       
    56     public: // From CUniEditorPlugin
       
    57 
       
    58         void LoadHeadersL( CMsvStore* aStore );
       
    59 
       
    60         void SaveHeadersL( CMsvStore& aStore );
       
    61 
       
    62         TMsvId ConvertFromL( TMsvId aId );
       
    63 
       
    64         TMsvId ConvertToL( TMsvId aId );
       
    65         
       
    66         TMsvId CreateReplyL( TMsvId aSrc, TMsvId aDest, TMsvPartList aParts );
       
    67 
       
    68         TMsvId CreateForwardL( TMsvId aSrc, TMsvId aDest, TMsvPartList aParts );
       
    69         
       
    70         void SendL( TMsvId aId );
       
    71 
       
    72         TBool ValidateServiceL( TBool aEmailOverSms = EFalse );
       
    73 
       
    74         void GetSendingSettingsL( TUniSendingSettings& aSettings );
       
    75 
       
    76         void SetSendingSettingsL( TUniSendingSettings& aSettings );
       
    77         
       
    78         TBool IsServiceValidL();
       
    79 
       
    80         // Turkish SMS-PREQ2265 Specific
       
    81         void SetEncodingSettings(TBool aUnicodeMode, TSmsEncoding aAlternativeEncodingType, TInt aCharSupportType);
       
    82        
       
    83         void GetNumPDUsL (
       
    84                TDesC& aBuf,
       
    85                TInt& aNumOfRemainingChars,
       
    86                TInt& aNumOfPDUs,
       
    87                TBool& aUnicodeMode, 
       
    88                TSmsEncoding& aAlternativeEncodingType);
       
    89         
       
    90 	private: // Constructors
       
    91 	
       
    92 	    /**
       
    93         * C++ default constructor.
       
    94         */
       
    95         CUniMmsPlugin( CMsvSession& aSession, CUniClientMtm& aUniMtm );
       
    96 
       
    97         /**
       
    98         * Returns pointer to iMmsMtm member variable  
       
    99         */
       
   100         CMmsClientMtm* MmsMtmL();
       
   101 
       
   102         TMsvId DoCreateReplyOrForwardL( TBool aReply, TMsvId aSrc, TMsvId aDest, TMsvPartList aParts );
       
   103         
       
   104         /**
       
   105         * Generates details for TMsvEntry object
       
   106         */
       
   107         void MakeDetailsL( TDes& aDetails );
       
   108         
       
   109         void EditAccessPointL();
       
   110 
       
   111     private:  // Data
       
   112 
       
   113         CMsvSession& iSession;
       
   114         CUniClientMtm& iUniMtm;
       
   115         
       
   116         CClientMtmRegistry* iMtmRegistry;
       
   117         CMmsClientMtm* iMmsMtm;
       
   118         CMmsSettings* iMmsSettings;
       
   119         CCommsDatabase* iCommsDb;
       
   120         
       
   121         CMmsHeaders* iMmsHeader;
       
   122         
       
   123         TParse iFileParse;
       
   124         TFileName iFileName;
       
   125         TInt iResourceOffset;
       
   126     };
       
   127 
       
   128 #endif      // __UNIMMSPLUGIN_H
       
   129 
       
   130 // End of File