wvuing/IMPSConnectionUI/ServiceInc/CCnUiSapStoreProxy.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:  SAP Settings Store proxy.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __CCNUISAPSTOREPROXY_H
       
    19 #define __CCNUISAPSTOREPROXY_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include <E32Base.h>
       
    23 
       
    24 
       
    25 //FORWARD DECLARATION
       
    26 class CIMPSSAPSettingsStore;
       
    27 
       
    28 
       
    29 // CLASS DECLARATION
       
    30 /**
       
    31  * SAP Settings Store proxy.
       
    32  *
       
    33  * @since 2.1
       
    34  */
       
    35 NONSHARABLE_CLASS( CCnUiSapStoreProxy ) : public CBase
       
    36     {
       
    37 public:  // constructor and destructor
       
    38     /**
       
    39      * C++ constructor.
       
    40      */
       
    41     CCnUiSapStoreProxy( CIMPSSAPSettingsStore* aSapStore );
       
    42 
       
    43 
       
    44     /**
       
    45      * Destructor.
       
    46      */
       
    47     virtual ~CCnUiSapStoreProxy();
       
    48 
       
    49 
       
    50 
       
    51 public: // New functions
       
    52 
       
    53     /**
       
    54      * Gets a reference to SAP store owned by the proxy.
       
    55      *
       
    56      * @since 2.1
       
    57      * @return Reference CIMPSSAPSettingsStore instance.
       
    58      */
       
    59     CIMPSSAPSettingsStore& SapStoreL();
       
    60 
       
    61 
       
    62     /**
       
    63      * Pushes CIMPSSAPSettingsStore release
       
    64      * on the cleanupstack.
       
    65      *
       
    66      * @since 2.1
       
    67      */
       
    68     void PushOwnedSapStoreReleaseLC();
       
    69 
       
    70 
       
    71     /**
       
    72      * Releases owned SAP settings store.
       
    73      * After this, any previously obtained
       
    74      * CIMPSSAPSettingsStore reference is invalid.
       
    75      *
       
    76      * @since 2.1
       
    77      */
       
    78     void ReleaseOwnedSapStore();
       
    79 
       
    80 
       
    81 private: // data
       
    82 
       
    83     ///<Used CIMPSSAPSettingsStore object.
       
    84     //If iOwnsSapStore bool is ETrue, then owned, else not owned.
       
    85     CIMPSSAPSettingsStore*          iSapStore;
       
    86 
       
    87     ///<SAP store owning flag, owned
       
    88     TBool                         iOwnsSapStore;
       
    89 
       
    90     };
       
    91 
       
    92 #endif      //  __CCNUISAPSTOREPROXY_H
       
    93 
       
    94 //  End of File
       
    95