messagingapp/msgutils/unieditorplugins/unieditormmsplugin/inc/unieditormmsplugin.h
changeset 25 84d9eb65b26f
parent 23 238255e8b033
child 27 e4592d119491
child 37 518b245aa84c
child 79 2981cb3aa489
equal deleted inserted replaced
23:238255e8b033 25:84d9eb65b26f
     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 UNIEDITORMMSPLUGIN_H_
       
    19 #define UNIEDITORMMSPLUGIN_H_
       
    20 
       
    21 
       
    22 #include <QObject>
       
    23 #include "unieditorplugininterface.h"
       
    24 
       
    25 /**
       
    26  * MMS data model plugin.
       
    27  * Implements the processing of a MMS message in Message Store.
       
    28  */
       
    29 
       
    30 class CUniEditorMmsPluginPrivate;
       
    31 
       
    32 class UniEditorMmsPlugin : public QObject, public UniEditorPluginInterface
       
    33 {
       
    34     Q_OBJECT
       
    35     Q_INTERFACES(UniEditorPluginInterface)
       
    36 
       
    37 public:
       
    38     /**
       
    39      * constructor
       
    40      */
       
    41     UniEditorMmsPlugin(QObject* parent = 0);
       
    42 
       
    43     /**
       
    44      * Destructor
       
    45      */
       
    46     ~UniEditorMmsPlugin();
       
    47 
       
    48     /**
       
    49      * @see UniEditorPluginInterface
       
    50      */
       
    51     ConvergedMessage::MessageType messageType();
       
    52     
       
    53     /**
       
    54      * @see UniEditorPluginInterface
       
    55      */
       
    56     ConvergedMessage* convertFrom( TMsvId aId );
       
    57 
       
    58     /**
       
    59      * @see UniEditorPluginInterface
       
    60      */
       
    61     void deleteDraftsEntry( TMsvId aId );
       
    62 
       
    63     /**
       
    64      * @see UniEditorPluginInterface
       
    65      */
       
    66     TMsvId convertTo( ConvergedMessage *aMessage );
       
    67     
       
    68     /**
       
    69      * @see UniEditorPluginInterface
       
    70      */    
       
    71     bool send(TMsvId aId);    
       
    72     
       
    73     /**
       
    74      * @see UniEditorPluginInterface
       
    75      */
       
    76     TBool isServiceValid();
       
    77 
       
    78     /**
       
    79      * @see UniEditorPluginInterface
       
    80      */
       
    81     TBool validateService( TBool aEmailOverSms = EFalse );
       
    82     
       
    83 private:
       
    84 	
       
    85     CUniEditorMmsPluginPrivate* d_ptr;
       
    86 };
       
    87 
       
    88 #endif
       
    89     
       
    90