phonebookengines/mobcntmodel/inc/cntdefaultinfoprovider.h
changeset 37 fd64c38c277d
equal deleted inserted replaced
31:2a11b5b00470 37:fd64c38c277d
       
     1 /*
       
     2 * Copyright (c) 2010 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: Default info provider plugin for CntListModel. It can provide
       
    15 *              the phone number and the image url of a contact (text and
       
    16 *              icon1 field respectively).
       
    17 *
       
    18 */
       
    19 
       
    20 #ifndef CNTDEFAULTPROVIDER_H
       
    21 #define CNTDEFAULTPROVIDER_H
       
    22 
       
    23 #include "cntinfoprovider.h"
       
    24 #include <qcontact.h>
       
    25 
       
    26 QTM_USE_NAMESPACE
       
    27 
       
    28 /*
       
    29    The default info provider plugin. It can provide the phone number and the
       
    30    image url of a contact (text and icon1 field respectively).
       
    31  */
       
    32 class CntDefaultInfoProvider : public CntInfoProvider
       
    33 {
       
    34     Q_OBJECT
       
    35 public:
       
    36     QString id() const { return "default"; };
       
    37     ContactInfoFields supportedFields() const;
       
    38     void requestInfo(const QContact& contact, ContactInfoFields requestedInfo);
       
    39 };
       
    40 
       
    41 #endif