phonebookui/pbkcommonui/inc/cntfavourite.h
changeset 37 fd64c38c277d
child 66 554fe4dbbb59
equal deleted inserted replaced
31:2a11b5b00470 37:fd64c38c277d
       
     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:  
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CNTFAVOURITE_H_
       
    19 #define CNTFAVOURITE_H_
       
    20 
       
    21 #include <qmobilityglobal.h>
       
    22 #include <qtcontacts.h>
       
    23 
       
    24 QTM_BEGIN_NAMESPACE
       
    25 class QContact;
       
    26 class QContactManager;
       
    27 QTM_END_NAMESPACE
       
    28 
       
    29 QTM_USE_NAMESPACE
       
    30 
       
    31 #define FavouriteGroupName "Favorites"
       
    32 
       
    33 class CntFavourite
       
    34 {
       
    35 public:
       
    36     static QContactLocalId createFavouriteGroup( QContactManager* aManager );
       
    37     static QContactLocalId favouriteGroupId( QContactManager* aManager );
       
    38     static bool isMemberOfFavouriteGroup( QContactManager* aManager, QContact* aContact );
       
    39     static void addContactToFavouriteGroup( QContactManager* aManager, QContactId& aId );
       
    40     static void removeContactFromFavouriteGroup( QContactManager* aManager, QContactId& aId );
       
    41 };
       
    42 #endif /* CNTFAVOURITE_H_ */