PECengine/PresenceManager2/SrcContactList/CPEngContactListStore2Imp.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2004 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:  Store API to retrieve contact list models.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CPENGCONTACTLISTSTORE2IMP_H
       
    19 #define CPENGCONTACTLISTSTORE2IMP_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include <E32Base.h>
       
    23 #include "TPEngMDesCArrayAdapter.h"
       
    24 #include "TPEngContactListBaseSettings.h"
       
    25 
       
    26 
       
    27 //FORWARD DECLARATIONS
       
    28 class CPEngNWSessionSlotID2;
       
    29 class CPEngNWSessionSlotStorageProxy;
       
    30 class MPEngContactListManager;
       
    31 class MPEngContactList2;
       
    32 class MPEngContactListProperties;
       
    33 class TPEngContactListBaseSettings;
       
    34 
       
    35 
       
    36 
       
    37 /**
       
    38  *
       
    39  *
       
    40  * @since 3.0
       
    41  */
       
    42 NONSHARABLE_CLASS( CPEngContactListStore2Imp ): public CBase
       
    43 
       
    44     {
       
    45 public: /* Construction */
       
    46 
       
    47 
       
    48     /**
       
    49      * Instantiates CPEngContactListStore2Imp object.
       
    50      *
       
    51      * @return New CPEngContactListStore2Imp instance.
       
    52      */
       
    53     static CPEngContactListStore2Imp* NewL(
       
    54         const CPEngNWSessionSlotID2& aNWSessionSlotID,
       
    55         TInt aPriority );
       
    56 
       
    57 
       
    58     /**
       
    59      * Destructor.
       
    60      */
       
    61     ~CPEngContactListStore2Imp();
       
    62 
       
    63 
       
    64 
       
    65 protected:
       
    66 
       
    67     /**
       
    68      * C++ constructor.
       
    69      */
       
    70     CPEngContactListStore2Imp( TInt aPriority );
       
    71 
       
    72 
       
    73     /**
       
    74      * Symbian OS constructor.
       
    75      */
       
    76     void ConstructL( const CPEngNWSessionSlotID2& aNWSessionSlotID );
       
    77 
       
    78 
       
    79 
       
    80 public: /* Contact list store implementation */
       
    81 
       
    82     /**
       
    83      * Implementation.
       
    84      * @since 3.0
       
    85      */
       
    86     const MDesCArray& AllContactListsL() const;
       
    87 
       
    88     const MDesCArray& SynchronizedContactListsL() const;
       
    89 
       
    90     MPEngContactList2& ContactListL( const TDesC& aContactList );
       
    91 
       
    92     MPEngContactListProperties& CreateContactListL(
       
    93         const TDesC& aContactList,
       
    94         TPEngContactListBaseSettings& aBaseSettings );
       
    95 
       
    96     void DeleteContactListL( const TDesC& aContactList );
       
    97 
       
    98     void ChangeContactListTypeL( const TDesC& aContactList,
       
    99                                  TPEngContactListType aContactListType );
       
   100 
       
   101     MPEngContactListProperties& ContactListPropertiesL(
       
   102         const TDesC& aContactList );
       
   103 
       
   104     void SetAsDefaultContactListL( const TDesC& aContactList );
       
   105 
       
   106     TInt ReleaseContactList( const TDesC& aContactList );
       
   107 
       
   108 
       
   109     //Helper for handling deprecated functions
       
   110     const MDesCArray& DummyList() const;
       
   111 
       
   112 
       
   113 
       
   114 
       
   115 private: //Data
       
   116 
       
   117     //OWN: The priority
       
   118     TInt    iCActivePriority;
       
   119 
       
   120     //OWN:
       
   121     CPEngNWSessionSlotStorageProxy*     iUsedSlot;
       
   122 
       
   123     //OWN:
       
   124     MPEngContactListManager*    iCntLstManager;
       
   125 
       
   126     //OWN:
       
   127     TPEngMDesCArrayAdapter  iDummy;
       
   128 
       
   129 
       
   130 
       
   131     };
       
   132 
       
   133 #endif  //CPENGCONTACTLISTSTORE2IMP_H
       
   134 
       
   135 // End of File