phonebookui/Phonebook2/inc/CPbk2GroupFeaturePlugin.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2006-2007 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:  Phonebook 2 Group Feature ECom plug-in interface.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPBK2GROUPFEATUREPLUGIN_H
       
    20 #define CPBK2GROUPFEATUREPLUGIN_H
       
    21 
       
    22 // INCLUDE FILES
       
    23 #include <e32cmn.h>
       
    24 #include <e32base.h>
       
    25 #include <ecom/ecom.h>
       
    26 
       
    27 // FORWARD DECLARATION
       
    28 class MPbk2GroupFeatureObserver;
       
    29 class MVPbkStoreContact;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34  * Phonebook 2 Group Feature ECom plug-in interface.
       
    35  * Responsible for providing interface for group functionality
       
    36  * needed from other Phonebook 2 UI extensions.
       
    37  */
       
    38 class CPbk2GroupFeaturePlugin : public CBase
       
    39 
       
    40     {
       
    41     public: // Construction and destruction
       
    42 
       
    43         /**
       
    44          * Creates a new instance of this class.
       
    45          *
       
    46          * @return  A new instance of this class.
       
    47          */
       
    48         static CPbk2GroupFeaturePlugin* NewL();
       
    49 
       
    50         /**
       
    51          * Destructor.
       
    52          */
       
    53         ~CPbk2GroupFeaturePlugin();
       
    54 
       
    55     public: // Interface
       
    56 
       
    57         /**
       
    58          * Get a list of groups in which contact belongs to. Asynchronous
       
    59          * operation. Results are given to observer, when ready.
       
    60          *
       
    61          * @param aContact      Contact whose groups to search for.
       
    62          * @param aObserver     Callback observer where list is returned.
       
    63          *
       
    64          */
       
    65         virtual void JoinedGroupsL(
       
    66                 const MVPbkStoreContact* aContact,
       
    67                 MPbk2GroupFeatureObserver* aObserver ) = 0;
       
    68 
       
    69         /**
       
    70          * Returns an extension point for this interface or NULL.
       
    71          *
       
    72          * @param aExtensionUid     Extension UID.
       
    73          * @return  Extension point.
       
    74          */
       
    75         virtual TAny* CPbk2GroupFeaturePluginExtension(
       
    76                 TUid /*aExtensionUid*/ )
       
    77             {
       
    78             return NULL;
       
    79             }
       
    80 
       
    81     private: // Data
       
    82         /// Own: Destructor key
       
    83         TUid iDtorIDKey;
       
    84     };
       
    85 
       
    86 // INLINE IMPLEMENTATION
       
    87 #include "cpbk2groupfeatureplugin.inl"
       
    88 
       
    89 #endif // CPBK2GROUPFEATUREPLUGIN_H
       
    90 
       
    91 // End of File