homesync/contentmanager/mediaservant/inc/msstorelistcontroller.h
changeset 0 7f85d04be362
equal deleted inserted replaced
-1:000000000000 0:7f85d04be362
       
     1 /*
       
     2 * Copyright (c) 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:  StoreListController class definition
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 #ifndef C_MSSTORELISTCONTROLLER_H
       
    23 #define C_MSSTORELISTCONTROLLER_H
       
    24 
       
    25 // INCLUDES
       
    26 #include <e32base.h>
       
    27 #include "cmcommontypes.h"
       
    28 
       
    29 
       
    30 // FORWARD DECLARATIONS
       
    31 class CMSEngine;
       
    32 class CCmStoreRuleContainer;
       
    33 class CCmStoreRule;
       
    34 
       
    35 /**
       
    36  * CMSStoreListController class.
       
    37  *
       
    38  *  @since S60 5.1
       
    39  */
       
    40 NONSHARABLE_CLASS( CMSStoreListController ): public CBase
       
    41     {
       
    42     public:
       
    43 
       
    44         /**
       
    45          * Two-phased constructor.
       
    46          *
       
    47          * @since S60 5.1
       
    48          * @param aMSEngine, application engine
       
    49          * return pointer to CMSStoreListController
       
    50          */
       
    51         static CMSStoreListController* NewL( CMSEngine& aMSEngine );
       
    52 
       
    53         /**
       
    54          * Two-phased constructor.
       
    55          *
       
    56          * @since S60 5.1
       
    57          * @param aMSEngine, application engine
       
    58          * return pointer to CMSStoreListController
       
    59          */
       
    60         static CMSStoreListController* NewLC( CMSEngine& aMSEngine );
       
    61         
       
    62         /**
       
    63          * Destructor.
       
    64          */
       
    65         virtual ~CMSStoreListController();
       
    66 
       
    67         /**
       
    68          * Returns store list container
       
    69          * @since S60 5.1
       
    70          * @return CCmStoreRuleContainer, list container
       
    71          */
       
    72         CCmStoreRuleContainer* StoreListContainer();
       
    73 
       
    74         /**
       
    75          * Reads list container and re-creates rule array
       
    76          * @since S60 5.1
       
    77          */
       
    78         void  UpdateListsL();
       
    79 
       
    80     private:
       
    81     
       
    82         /**
       
    83          * Performs the first phase of two phase construction.
       
    84          *
       
    85          * @since S60 5.1
       
    86          * @param aMSEngine, application engine        
       
    87          * @return None
       
    88          */
       
    89         CMSStoreListController( CMSEngine& aMSEngine );
       
    90 
       
    91         /**
       
    92          * Performs the second phase construction.
       
    93          */
       
    94         void ConstructL();
       
    95 
       
    96         /**
       
    97          * Creates default store rules
       
    98          * Since S60 5.1
       
    99          * @param None
       
   100          * @return None
       
   101          */
       
   102         void CreateStoreRulesL();
       
   103 
       
   104         /**
       
   105          * Changes names of store rules
       
   106          * @since S60 5.1
       
   107          * @param None
       
   108          * @return None         
       
   109          */
       
   110         void ChangeStoreRuleNamesL( void );
       
   111 
       
   112     private:
       
   113 
       
   114         /**
       
   115          * pointer to application engine
       
   116          */
       
   117         CMSEngine*                  iMSEngine;              // not owned
       
   118         /**
       
   119          * Fill rules
       
   120          */
       
   121         CCmStoreRuleContainer*      iStoreListContainer;    // owned
       
   122     };
       
   123 
       
   124 
       
   125 #endif // C_MSSTORELISTCONTROLLER_H
       
   126 
       
   127 
       
   128 // End of File