phonebookui/phonebookservices/tsrc/qtpbkservicestestapp/main.cpp
changeset 59 a642906a277a
parent 46 efe85016a067
equal deleted inserted replaced
47:7cbcb2896f0e 59:a642906a277a
    86     button = new HbPushButton("old");
    86     button = new HbPushButton("old");
    87     QObject::connect(button, SIGNAL(pressed()), service, SLOT(launchEditCreateNew_number_old()));
    87     QObject::connect(button, SIGNAL(pressed()), service, SLOT(launchEditCreateNew_number_old()));
    88     mainLayout->addItem(button, row, 1);
    88     mainLayout->addItem(button, row, 1);
    89     row++;
    89     row++;
    90 
    90 
       
    91     button = new HbPushButton("Edit create new - number with subtype");
       
    92     QObject::connect(button, SIGNAL(pressed()), service, SLOT(launchEditCreateNew_numberWithSubtype()));
       
    93     mainLayout->addItem(button, row, 0);
       
    94     button = new HbPushButton("old");
       
    95     QObject::connect(button, SIGNAL(pressed()), service, SLOT(launchEditCreateNew_numberWithSubtype_old()));
       
    96     mainLayout->addItem(button, row, 1);
       
    97     row++;    
       
    98     
    91     button = new HbPushButton("Edit create new - email");
    99     button = new HbPushButton("Edit create new - email");
    92     QObject::connect(button, SIGNAL(pressed()), service, SLOT(launchEditCreateNew_email()));
   100     QObject::connect(button, SIGNAL(pressed()), service, SLOT(launchEditCreateNew_email()));
    93     mainLayout->addItem(button, row, 0);
   101     mainLayout->addItem(button, row, 0);
    94     button = new HbPushButton("old");
   102     button = new HbPushButton("old");
    95     QObject::connect(button, SIGNAL(pressed()), service, SLOT(launchEditCreateNew_email_old()));
   103     QObject::connect(button, SIGNAL(pressed()), service, SLOT(launchEditCreateNew_email_old()));
   102     button = new HbPushButton("old");
   110     button = new HbPushButton("old");
   103     QObject::connect(button, SIGNAL(pressed()), service, SLOT(launchEditCreateNew_onlineAccount_old()));
   111     QObject::connect(button, SIGNAL(pressed()), service, SLOT(launchEditCreateNew_onlineAccount_old()));
   104     mainLayout->addItem(button, row, 1);
   112     mainLayout->addItem(button, row, 1);
   105     row++;
   113     row++;
   106 
   114 
       
   115     button = new HbPushButton("Edit create new - onlineAccount with subtype");
       
   116     bool res = QObject::connect(button, SIGNAL(pressed()), service, SLOT(launchEditCreateNew_onlineAccountWithSubtype()));
       
   117     mainLayout->addItem(button, row, 0);
       
   118     button = new HbPushButton("old");
       
   119     res = QObject::connect(button, SIGNAL(pressed()), service, SLOT(launchEditCreateNew_onlineAccountWithSubtype_old()));
       
   120     mainLayout->addItem(button, row, 1);
       
   121     row++;
       
   122     
   107     button = new HbPushButton("Launch editor with vCard");
   123     button = new HbPushButton("Launch editor with vCard");
   108     QObject::connect(button, SIGNAL(pressed()), service, SLOT(launchEditorVCard()));
   124     QObject::connect(button, SIGNAL(pressed()), service, SLOT(launchEditorVCard()));
   109     mainLayout->addItem(button, row, 0);
   125     mainLayout->addItem(button, row, 0);
   110     button = new HbPushButton("old");
   126     button = new HbPushButton("old");
   111     QObject::connect(button, SIGNAL(pressed()), service, SLOT(launchEditorVCard_old()));
   127     QObject::connect(button, SIGNAL(pressed()), service, SLOT(launchEditorVCard_old()));
   119     mainLayout->addItem(button, row, 0);
   135     mainLayout->addItem(button, row, 0);
   120     button = new HbPushButton("old");
   136     button = new HbPushButton("old");
   121     QObject::connect(button, SIGNAL(pressed()), service, SLOT(launchEditUpdateExisting_number_old()));
   137     QObject::connect(button, SIGNAL(pressed()), service, SLOT(launchEditUpdateExisting_number_old()));
   122     mainLayout->addItem(button, row, 1);
   138     mainLayout->addItem(button, row, 1);
   123     row++;
   139     row++;
       
   140     
       
   141     button = new HbPushButton("Edit/update existing - number with subtype");
       
   142     QObject::connect(button, SIGNAL(pressed()), service, SLOT(launchEditUpdateExisting_numberWithSubtype()));
       
   143     mainLayout->addItem(button, row, 0);
       
   144     button = new HbPushButton("old");
       
   145     QObject::connect(button, SIGNAL(pressed()), service, SLOT(launchEditUpdateExisting_numberWithSubtype_old()));
       
   146     mainLayout->addItem(button, row, 1);
       
   147     row++;
   124 
   148 
   125     button = new HbPushButton("Edit/update existing - email");
   149     button = new HbPushButton("Edit/update existing - email");
   126     QObject::connect(button, SIGNAL(pressed()), service, SLOT(launchEditUpdateExisting_email()));
   150     QObject::connect(button, SIGNAL(pressed()), service, SLOT(launchEditUpdateExisting_email()));
   127     mainLayout->addItem(button, row, 0);
   151     mainLayout->addItem(button, row, 0);
   128     button = new HbPushButton("old");
   152     button = new HbPushButton("old");
   136     button = new HbPushButton("old");
   160     button = new HbPushButton("old");
   137     QObject::connect(button, SIGNAL(pressed()), service, SLOT(launchEditUpdateExisting_onlineAccount_old()));
   161     QObject::connect(button, SIGNAL(pressed()), service, SLOT(launchEditUpdateExisting_onlineAccount_old()));
   138     mainLayout->addItem(button, row, 1);
   162     mainLayout->addItem(button, row, 1);
   139     row++;
   163     row++;
   140 
   164 
       
   165     button = new HbPushButton("Edit/update existing - onlineAccount with subtype");
       
   166     QObject::connect(button, SIGNAL(pressed()), service, SLOT(launchEditUpdateExisting_onlineAccountWithSubtype()));
       
   167     mainLayout->addItem(button, row, 0);
       
   168     button = new HbPushButton("old");
       
   169     QObject::connect(button, SIGNAL(pressed()), service, SLOT(launchEditUpdateExisting_onlineAccountWithSubtype_old()));
       
   170     mainLayout->addItem(button, row, 1);
       
   171     row++;
       
   172     
   141     // CONTACT CARD ==========================================================
   173     // CONTACT CARD ==========================================================
   142 
   174 
   143     button = new HbPushButton("Launch contact card");
   175     button = new HbPushButton("Launch contact card");
   144     QObject::connect(button, SIGNAL(pressed()), service, SLOT(launchContactCard()));
   176     QObject::connect(button, SIGNAL(pressed()), service, SLOT(launchContactCard()));
   145     mainLayout->addItem(button, row, 0);
   177     mainLayout->addItem(button, row, 0);
   168     QObject::connect(button, SIGNAL(pressed()), service, SLOT(launchContactCardOnlineAccount()));
   200     QObject::connect(button, SIGNAL(pressed()), service, SLOT(launchContactCardOnlineAccount()));
   169     mainLayout->addItem(button, row, 0);
   201     mainLayout->addItem(button, row, 0);
   170     button = new HbPushButton("old");
   202     button = new HbPushButton("old");
   171     QObject::connect(button, SIGNAL(pressed()), service, SLOT(launchContactCardOnlineAccount_old()));
   203     QObject::connect(button, SIGNAL(pressed()), service, SLOT(launchContactCardOnlineAccount_old()));
   172     mainLayout->addItem(button, row, 1);
   204     mainLayout->addItem(button, row, 1);
       
   205     row++;
       
   206     
       
   207     // Launch - Group Member View ==========================================================
       
   208     
       
   209     button = new HbPushButton("Launch group member view");
       
   210     QObject::connect(button, SIGNAL(pressed()), service, SLOT(launchGroupMemberView()));
       
   211     mainLayout->addItem(button, row, 0);
   173     row++;
   212     row++;
   174     
   213     
   175     QGraphicsWidget *graphicsWidget = new QGraphicsWidget();
   214     QGraphicsWidget *graphicsWidget = new QGraphicsWidget();
   176     graphicsWidget->setLayout(mainLayout);
   215     graphicsWidget->setLayout(mainLayout);
   177     HbScrollArea *scrollArea = new HbScrollArea();
   216     HbScrollArea *scrollArea = new HbScrollArea();