PECengine/PresenceManager2/SrcAttributeList/CPEngAttributeListStore2Imp.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 attribute lists.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CPENGATTRIBUTELISTSTORE2IMP_H
       
    19 #define CPENGATTRIBUTELISTSTORE2IMP_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include <E32Base.h>
       
    23 #include <MPEngAttributeList2.h>
       
    24 
       
    25 
       
    26 
       
    27 //FORWARD DECLARATIONS
       
    28 class CPEngNWSessionSlotID2;
       
    29 class CPEngNWSessionSlotStorageProxy;
       
    30 class MPEngAttributeListManager;
       
    31 
       
    32 
       
    33 /**
       
    34  *
       
    35  *
       
    36  * @since 3.0
       
    37  */
       
    38 NONSHARABLE_CLASS( CPEngAttributeListStore2Imp ): public CBase
       
    39 
       
    40     {
       
    41 public: /* Construction */
       
    42 
       
    43 
       
    44     /**
       
    45      * Instantiates CPEngAttributeListStore2Imp object.
       
    46      *
       
    47      * @return New CPEngAttributeListStore2Imp instance.
       
    48      */
       
    49     static CPEngAttributeListStore2Imp* NewL(
       
    50         const CPEngNWSessionSlotID2& aNWSessionSlotID,
       
    51         TInt aPriority );
       
    52 
       
    53 
       
    54     /**
       
    55      * Destructor.
       
    56      */
       
    57     ~CPEngAttributeListStore2Imp();
       
    58 
       
    59 
       
    60 
       
    61 protected:
       
    62 
       
    63     /**
       
    64      * C++ constructor.
       
    65      */
       
    66     CPEngAttributeListStore2Imp( TInt aPriority );
       
    67 
       
    68 
       
    69     /**
       
    70      * Symbian OS constructor.
       
    71      */
       
    72     void ConstructL( const CPEngNWSessionSlotID2& aNWSessionSlotID );
       
    73 
       
    74 
       
    75 
       
    76 public: /* Attribute list store implementation */
       
    77 
       
    78     /**
       
    79      * Implementation.
       
    80      * @since 3.0
       
    81      */
       
    82     MPEngAttributeList2* CreateEmptyAttributeListL();
       
    83 
       
    84     MPEngAttributeList2* GetDefaultAttributeListL(
       
    85         TPEngAttributeListsSet2 aAttrListsSet );
       
    86 
       
    87     void SetAsDefaultAttributeListL(
       
    88         MPEngAttributeList2& aAttributeList );
       
    89 
       
    90     void DeleteDefaultAttributeListL();
       
    91 
       
    92     MPEngAttributeList2* GetAttributeListForContactListL(
       
    93         const TDesC& aContactListName,
       
    94         TPEngAttributeListsSet2 aAttrListsSet );
       
    95 
       
    96     void AttachAttributeListToContactListL(
       
    97         const TDesC& aContactListName,
       
    98         MPEngAttributeList2& aAttributeList );
       
    99 
       
   100     void DeleteAttributeListFromContactListL(
       
   101         const TDesC& aContactListName );
       
   102 
       
   103     MPEngAttributeList2* GetAttributeListForUserL(
       
   104         const TDesC& aPresenceID,
       
   105         TPEngAttributeListsSet2 aAttrListsSet );
       
   106 
       
   107     void AttachAttributeListToUserL( const TDesC& aPresenceID,
       
   108                                      MPEngAttributeList2& aList );
       
   109 
       
   110     void DeleteAttributeListFromUserL( const TDesC& aPresenceID );
       
   111 
       
   112 
       
   113 
       
   114 private: //Data
       
   115 
       
   116     //OWN: The priority
       
   117     TInt    iCActivePriority;
       
   118 
       
   119     //OWN:
       
   120     CPEngNWSessionSlotStorageProxy*     iUsedSlot;
       
   121 
       
   122 
       
   123     //OWN:
       
   124     MPEngAttributeListManager*  iAttrListManager;
       
   125 
       
   126 
       
   127     };
       
   128 
       
   129 #endif  // CPENGATTRIBUTELISTSTORE2IMP_H
       
   130 
       
   131 // End of File