profilesservices/ProfileEngine/WrapperSrc/CProEngProfileNameArrayEventDelegate.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:  This class delegates notifications about name array
       
    15 *               changes to the observer.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef CPROENGPROFILENAMEARRAYEVENTDELEGATE_H
       
    22 #define CPROENGPROFILENAMEARRAYEVENTDELEGATE_H
       
    23 
       
    24 // INCLUDES
       
    25 #include "CProEngCenRepObserverBase.h"
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class MProEngProfileNameArrayObserver;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33 * This class delegates notifications about name array changes to the observer
       
    34 * implemented by the client of Profiles Engine Wrapper API. This is
       
    35 * a helper class for CProEngNotifyHandlerImpl.
       
    36 *
       
    37 *  @lib ProfileEngine.lib
       
    38 *  @since 3.1
       
    39 */
       
    40 NONSHARABLE_CLASS( CProEngProfileNameArrayEventDelegate )
       
    41     : public CProEngCenRepObserverBase
       
    42     {
       
    43     public:
       
    44 
       
    45         static CProEngProfileNameArrayEventDelegate* NewL(
       
    46                 MProEngProfileNameArrayObserver& aObserver );
       
    47 
       
    48         virtual ~CProEngProfileNameArrayEventDelegate() {};
       
    49 
       
    50     public: // Functions from base classes
       
    51 
       
    52         /**
       
    53          * From CProEngObserverBase.
       
    54          */
       
    55         void NotifyObserverL();
       
    56 
       
    57         /**
       
    58          * From CProEngObserverBase.
       
    59          */
       
    60         void NotifyError( TInt aError );
       
    61 
       
    62     private:  // constructor
       
    63 
       
    64         CProEngProfileNameArrayEventDelegate(
       
    65                 TUint32 aPartialCenRepKey,
       
    66                 TUint32 aKeyMask,
       
    67                 MProEngProfileNameArrayObserver& aObserver );
       
    68 
       
    69     private: // Data:
       
    70 
       
    71         // The client implemented observer for name array modification events:
       
    72         MProEngProfileNameArrayObserver& iObserver;
       
    73 
       
    74     };
       
    75 
       
    76 #endif      //  CPROENGPROFILENAMEARRAYEVENTDELEGATE_H
       
    77 
       
    78 // End of File
       
    79