phonebookui/phonebookservices/tsrc/qtpbkservicestestapp/testpbkservices.h
changeset 46 efe85016a067
parent 31 2a11b5b00470
child 50 77bc263e1626
child 59 a642906a277a
equal deleted inserted replaced
40:b46a585f6909 46:efe85016a067
    24 #include <qmobilityglobal.h> //defines Q_SFW_EXPORT
    24 #include <qmobilityglobal.h> //defines Q_SFW_EXPORT
    25 #include <xqappmgr.h>
    25 #include <xqappmgr.h>
    26 
    26 
    27 class HbMainWindow;
    27 class HbMainWindow;
    28 
    28 
       
    29 /**
       
    30  * Launches phonebookservices highway services, for functional testing.
       
    31  */
    29 class testPbkServices : public QObject
    32 class testPbkServices : public QObject
    30 {
    33 {
    31     Q_OBJECT
    34     Q_OBJECT
    32 
    35 
    33 public slots:
    36 public slots:
    34     void launchFetch();
    37     // FETCH
       
    38     void launchMultiFetch();
       
    39     void launchMultiFetch_old();
       
    40     void launchMultiFetch_sms();
       
    41     void launchMultiFetch_sms_old();
       
    42     void launchMultiFetch_email();
       
    43     void launchMultiFetch_email_old();
    35     void launchSingleFetch();
    44     void launchSingleFetch();
    36     void launchSmsFilteredFetch();
    45     void launchSingleFetch_old();
    37     void launchEmailFilteredFetch();
    46 
    38     void launchEditorNumber();
    47     // EDIT - create new
    39     void launchEditorEmail();
    48     void launchEditCreateNew_number();
    40     void launchEditorOnlineAccount();
    49     void launchEditCreateNew_number_old();
       
    50     void launchEditCreateNew_email();
       
    51     void launchEditCreateNew_email_old();
       
    52     void launchEditCreateNew_onlineAccount();
       
    53     void launchEditCreateNew_onlineAccount_old();
    41     void launchEditorVCard();
    54     void launchEditorVCard();
    42     void launchUpdateEditorNumber();
    55     void launchEditorVCard_old();
    43     void launchUpdateEditorEmail();
    56 
    44     void launchUpdateEditorOnlineAccount();
    57     // EDIT - update existing
       
    58     void launchEditUpdateExisting_number();
       
    59     void launchEditUpdateExisting_number_old();
       
    60     void launchEditUpdateExisting_email();
       
    61     void launchEditUpdateExisting_email_old();
       
    62     void launchEditUpdateExisting_onlineAccount();
       
    63     void launchEditUpdateExisting_onlineAccount_old();
       
    64 
       
    65     // CONTACT CARD
       
    66     void launchContactCard();
       
    67     void launchContactCard_old();
       
    68     void launchContactCardNumber();
       
    69     void launchContactCardNumber_old();
       
    70     void launchContactCardEmail();
       
    71     void launchContactCardEmail_old();
       
    72     void launchContactCardOnlineAccount();
       
    73     void launchContactCardOnlineAccount_old();
       
    74 
    45     void onEditCompleted(const QVariant& value);
    75     void onEditCompleted(const QVariant& value);
    46     void onRequestCompleted(const QVariant& value);
    76     void onRequestCompleted(const QVariant& value);
    47 
    77 
    48 public:
    78 public:
    49     testPbkServices(HbMainWindow *aParent);
    79     testPbkServices(HbMainWindow *aParent);
    50     ~testPbkServices();
    80     ~testPbkServices();
       
    81 
       
    82 private:
       
    83     void launchMultiFetch( bool aNewInterface, QString aAction );
       
    84     void launchSingleFetch( bool aNewInterface, QString aAction );
       
    85     void launchEditCreateNew( bool aNewInterface, QString aDetailType, QString aFieldContent );
       
    86     void launchEditorVCard( bool aNewInterface );
       
    87     void launchEditUpdateExisting( bool aNewInterface, QString aDetailType, QString aDetailValue );
       
    88     void launchContactCard( bool aNewInterface );
       
    89     void launchContactCard( bool aNewInterface, QString aDetailType, QString aDetailValue );
    51 
    90 
    52 private:
    91 private:
    53 
    92 
    54     XQAiwRequest         *mRequest; 
    93     XQAiwRequest         *mRequest; 
    55     HbMainWindow         *mMainWindow;
    94     HbMainWindow         *mMainWindow;