phoneengine/phonecntfinder2/tsrc/mocks/qcontact.h
changeset 36 2eacb6118286
parent 30 ebdbd102c78a
child 37 ba76fc04e6c2
equal deleted inserted replaced
30:ebdbd102c78a 36:2eacb6118286
     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 QCONTACT_H
       
    19 #define QCONTACT_H
       
    20 
       
    21 #include <QString>
       
    22 #include <QList>
       
    23 #include <QMetaType>
       
    24 
       
    25 #include <qcontactid.h>
       
    26 #include "qcontactdetail.h"
       
    27 #include "qtcontactsglobal.h"
       
    28 // This is not available yet
       
    29 // #include "quniqueid.h"
       
    30 
       
    31 
       
    32 class QContact
       
    33 {
       
    34 public:
       
    35     QContact();
       
    36 
       
    37     ~QContact();
       
    38 
       
    39     QContact(const QContact& other);
       
    40 	QContact& operator=(const QContact& other);
       
    41 
       
    42 	//QContactId id() const;
       
    43     
       
    44     QContactLocalId localId() const;
       
    45 
       
    46     QList<QContactDetail> details(const QString& definitionId = QString()) const;
       
    47 
       
    48 public: //for testing
       
    49     void setDetails(const QList<QContactDetail>& details);
       
    50 
       
    51 private:
       
    52     QList<QContactDetail> mDetails;
       
    53  
       
    54 };
       
    55 Q_DECLARE_METATYPE(QContact)
       
    56 #endif //__QCONTACT_H_
       
    57 
       
    58