messagingapp/msgappfw/plugins/previewplugin/inc/ccspreviewplugin.h
changeset 37 518b245aa84c
equal deleted inserted replaced
25:84d9eb65b26f 37:518b245aa84c
       
     1 /*
       
     2 * Copyright (c) 2007 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:  Preview Plugin main class
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef _C_CS_PREVIEW_PLUGIN_H_
       
    20 #define _C_CS_PREVIEW_PLUGIN_H_
       
    21 
       
    22 // INCLUDE FILES
       
    23 
       
    24 // SYSTEM INCLUDES
       
    25 
       
    26 // USER INCLUDES
       
    27 #include "ccsplugin.h"
       
    28 #include "ccsdebug.h"
       
    29 #include "ccsdefs.h"
       
    30 
       
    31 // FORWARD DECLARATION
       
    32 class MCsPluginEventObserver;
       
    33 class CCsConversationEntry;
       
    34 class CCsPreviewPluginHandler;
       
    35 
       
    36 /**
       
    37  *  Preview plugin class
       
    38  *
       
    39  */
       
    40 class CCsPreviewPlugin : public CCsPlugin
       
    41     {
       
    42 public: 
       
    43 
       
    44     /**
       
    45      * Two phase construction
       
    46      */
       
    47     static CCsPreviewPlugin* NewL( MCsPluginEventObserver* aMCsPluginEventObserver);
       
    48 
       
    49     /**
       
    50      * Destructor
       
    51      */
       
    52     virtual ~CCsPreviewPlugin();
       
    53 
       
    54 
       
    55 public: // From base class CCsPlugin
       
    56     /**
       
    57      *  GetConversationsL
       
    58      *  This function starts the state machine to fetch msg data from msvserver
       
    59      */        
       
    60     void GetConversationsL();
       
    61 
       
    62 public: 
       
    63     
       
    64     /**
       
    65      *  HandleCachingCompleted
       
    66      *  Sends the cache completed status to server
       
    67      */
       
    68     void HandleCachingCompleted();
       
    69 
       
    70     /**
       
    71      *  HandleCachingError
       
    72      *  Sends the error occured during the caching to server
       
    73      */
       
    74     void HandleCachingError(const TInt aError);
       
    75     
       
    76 private:
       
    77 
       
    78     /**
       
    79      * Constructor
       
    80      */
       
    81     CCsPreviewPlugin(MCsPluginEventObserver* aObserver);
       
    82 
       
    83     /**
       
    84      * 2nd phase construtor
       
    85      */
       
    86     void ConstructL();
       
    87 
       
    88 private: //Data
       
    89 
       
    90     /**
       
    91      * MMS Preview Handler
       
    92      * Own
       
    93      */
       
    94     CCsPreviewPluginHandler* iPreviewPluginHandler;  
       
    95 
       
    96     /**
       
    97      * iPluginEventObserver
       
    98      * Plugin event observer
       
    99      * Not Own.
       
   100      */
       
   101     MCsPluginEventObserver* iPluginEventObserver;
       
   102     };
       
   103 
       
   104 #endif // _C_CS_PREVIEW_PLUGIN_H_