profilesservices/ProfileEngine/WrapperSrc/CProEngPubSubObserverBase.h
changeset 0 8c5d936e5675
equal deleted inserted replaced
-1:000000000000 0:8c5d936e5675
       
     1 /*
       
     2 * Copyright (c) 2009 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:  The base class for listening to events in the 
       
    15 *               Publish & Subscribe.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef CPROENGPUBSUBOBSERVERBASE_H
       
    22 #define CPROENGPUBSUBOBSERVERBASE_H
       
    23 
       
    24 // INCLUDES
       
    25 #include    "CProEngObserverBase.h"
       
    26 #include    <e32property.h>  // RProperty
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 /**
       
    31 * The base class for listening to events in the Publish & Subscribe. This is
       
    32 * a helper class for CProEngNotifyHandlerImpl.
       
    33 *
       
    34 *  @lib ProfileEngine.lib
       
    35 *  @since 3.1
       
    36 */
       
    37 NONSHARABLE_CLASS( CProEngPubSubObserverBase ) : public CProEngObserverBase
       
    38     {
       
    39     protected:  // constructor and destructor
       
    40 
       
    41         CProEngPubSubObserverBase( TUint32 aPubSubKey );
       
    42 
       
    43         virtual ~CProEngPubSubObserverBase();
       
    44 
       
    45     public: // Functions from base classes
       
    46 
       
    47         /**
       
    48          * From CProEngObserverBase.
       
    49          */
       
    50         TInt RequestNotification();
       
    51 
       
    52         /**
       
    53          * From CActive.
       
    54          */
       
    55         void DoCancel();
       
    56 
       
    57     protected: // Data:
       
    58 
       
    59         // Profiles Engine Publish and Subscribe interface
       
    60         RProperty iProperty;
       
    61         
       
    62         TBool iAttatched;
       
    63 
       
    64     };
       
    65 
       
    66 #endif      //  CPROENGPUBSUBOBSERVERBASE_H
       
    67 
       
    68 // End of File
       
    69