PECengine/PresenceManager2/SrcAttribute/CPEngAttributeStore2Imp.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 presence attribute models.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CPENGATTRIBUTESTORE2IMP_H
       
    19 #define CPENGATTRIBUTESTORE2IMP_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include <E32Base.h>
       
    23 
       
    24 
       
    25 
       
    26 //FORWARD DECLARATIONS
       
    27 class MPEngPresenceAttrModel2;
       
    28 class MPEngPresenceAttrManager;
       
    29 class CPEngNWSessionSlotID2;
       
    30 class CPEngNWSessionSlotStorageProxy;
       
    31 
       
    32 
       
    33 /**
       
    34  *
       
    35  *
       
    36  * @since 3.0
       
    37  */
       
    38 NONSHARABLE_CLASS( CPEngAttributeStore2Imp ): public CBase
       
    39 
       
    40     {
       
    41 public: /* Construction */
       
    42 
       
    43 
       
    44     /**
       
    45      * Instantiates CPEngAttributeStore2Imp object.
       
    46      *
       
    47      * @return New CPEngAttributeStore2Imp instance.
       
    48      */
       
    49     static CPEngAttributeStore2Imp* NewL(
       
    50         const CPEngNWSessionSlotID2& aNWSessionSlotID,
       
    51         TInt aPriority );
       
    52 
       
    53 
       
    54     /**
       
    55      * Destructor.
       
    56      */
       
    57     ~CPEngAttributeStore2Imp();
       
    58 
       
    59 
       
    60 
       
    61 protected:
       
    62 
       
    63     /**
       
    64      * C++ constructor.
       
    65      */
       
    66     CPEngAttributeStore2Imp( TInt aPriority );
       
    67 
       
    68 
       
    69     /**
       
    70      * Symbian OS constructor.
       
    71      */
       
    72     void ConstructL( const CPEngNWSessionSlotID2& aNWSessionSlotID );
       
    73 
       
    74 
       
    75 
       
    76 public: /* Attribute store implementation */
       
    77 
       
    78     /**
       
    79      * Implementation.
       
    80      * @since 3.0
       
    81      */
       
    82     TInt GetAttribute( TUint32 aType,
       
    83                        const TDesC& aPresenceID,
       
    84                        MPEngPresenceAttrModel2*& aModel ) const;
       
    85 
       
    86 
       
    87     TInt GetAndLockAttribute( TUint32 aType,
       
    88                               const TDesC& aPresenceID,
       
    89                               MPEngPresenceAttrModel2*& aModel );
       
    90 
       
    91     TInt StoreAttribute( MPEngPresenceAttrModel2& aModel,
       
    92                          TBool aReleaseEditLock );
       
    93 
       
    94     TInt UnLockAttribute( MPEngPresenceAttrModel2& aModel );
       
    95 
       
    96     TInt AttributeAvailable( TUint32 aType, const TDesC& aPresenceID ) const;
       
    97 
       
    98     TInt AttributeTypeSupported( TUint32 aType ) const;
       
    99 
       
   100 
       
   101 private: //Data
       
   102 
       
   103     //OWN: The priority
       
   104     TInt    iCActivePriority;
       
   105 
       
   106     //OWN:
       
   107     CPEngNWSessionSlotStorageProxy* iUsedSlot;
       
   108 
       
   109     //OWN: Attribute manager
       
   110     MPEngPresenceAttrManager*   iAttrManager;
       
   111 
       
   112 
       
   113     };
       
   114 
       
   115 #endif  // CPENGATTRIBUTESTORE2IMP_H
       
   116 
       
   117 // End of File