qtmobility/plugins/contacts/symbiansim/inc/cntsimcontactfetchrequest.h
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
equal deleted inserted replaced
1:2b40d63a9c3d 4:90517678cc4f
    42 #ifndef CNTSIMCONTACTFETCHREQUEST_H_
    42 #ifndef CNTSIMCONTACTFETCHREQUEST_H_
    43 #define CNTSIMCONTACTFETCHREQUEST_H_
    43 #define CNTSIMCONTACTFETCHREQUEST_H_
    44 
    44 
    45 #include "cntabstractsimrequest.h"
    45 #include "cntabstractsimrequest.h"
    46 
    46 
    47 #ifdef SYMBIANSIM_BACKEND_USE_ETEL_TESTSERVER
       
    48 #include <mpbutil_etel_test_server.h>
       
    49 #else
       
    50 #include <mpbutil.h>
       
    51 #endif
       
    52 #include <qcontactmanager.h>
       
    53 
       
    54 QTM_BEGIN_NAMESPACE
       
    55 class QContactFetchRequest;
       
    56 QTM_END_NAMESPACE
       
    57 class CntSymbianSimEngine;
       
    58 
       
    59 QTM_USE_NAMESPACE
    47 QTM_USE_NAMESPACE
    60 
    48 
    61 class CntSimContactFetchRequest : public CntAbstractSimRequest
    49 class CntSimContactFetchRequest : public CntAbstractSimRequest
    62 {
    50 {
    63 Q_OBJECT
    51 Q_OBJECT
    64 public:
    52 public:
    65     CntSimContactFetchRequest(CntSymbianSimEngine *engine, QContactFetchRequest *req);
    53     CntSimContactFetchRequest(CntSymbianSimEngine *engine, QContactFetchRequest *req);
    66     virtual ~CntSimContactFetchRequest();
    54     ~CntSimContactFetchRequest();
    67     bool start();
       
    68     bool cancel();
       
    69     
    55     
    70 public Q_SLOTS:
    56 public Q_SLOTS:    
       
    57     // from CntAbstractSimRequest
       
    58     void run();
       
    59     
       
    60 private Q_SLOTS:
    71     void readComplete(QList<QContact> contacts, QContactManager::Error error);
    61     void readComplete(QList<QContact> contacts, QContactManager::Error error);
    72 
       
    73 private:
       
    74     QContactFetchRequest *m_req;
       
    75 };
    62 };
    76 
    63 
    77 #endif // CNTSIMCONTACTFETCHREQUEST_H_
    64 #endif // CNTSIMCONTACTFETCHREQUEST_H_