recents_plat/logs_services_api/inc/logsservices.h
changeset 15 76d2cf7a585e
parent 9 68f3171a5819
equal deleted inserted replaced
13:52d644758b05 15:76d2cf7a585e
    32 *     "view_index": int, 0 - all recent, 1 - received, 2 - called, 3 - missed
    32 *     "view_index": int, 0 - all recent, 1 - received, 2 - called, 3 - missed
    33 *     "show_dialpad": bool, if true view is shown with dialpad opened on top
    33 *     "show_dialpad": bool, if true view is shown with dialpad opened on top
    34 *     "dialpad_text": QString, number to be prefilled into dialpad
    34 *     "dialpad_text": QString, number to be prefilled into dialpad
    35 *          
    35 *          
    36 *  New params:
    36 *  New params:
    37 *     "ViewIndex": int, 0 - all recent, 1 - received, 2 - called, 3 - missed
    37 *     XQLOGS_VIEW_INDEX: "ViewIndex": int, 0 - all recent, 1 - received, 2 - called, 3 - missed
    38 *     "ShowDialpad": bool, if true view is shown with dialpad opened on top
    38 *     XQLOGS_SHOW_DIALPAD: "ShowDialpad": bool, if true view is shown with dialpad opened on top
    39 *     "DialpadText": QString, number to be prefilled into dialpad      
    39 *     XQLOGS_DIALPAD_TEXT: "DialpadText": QString, number to be prefilled into dialpad      
    40 *            
    40 *            
    41 *  Example usage:
    41 *  Example usage:
    42 *  XQApplicationManager appMgr;
    42 *  XQApplicationManager appMgr;
    43 *  QScopedPointer<XQAiwRequest> request(appMgr.create(QString("logs"),
    43 *  QScopedPointer<XQAiwRequest> request(appMgr.create(XQI_LOGS_VIEW, XQOP_LOGS_SHOW, false));   
    44 *                  QString("com.nokia.symbian.ILogsView"), 
       
    45 *                  QString("show(QVariantMap)"), false));   
       
    46 *  if (!request.isNull()) {
    44 *  if (!request.isNull()) {
    47 *      int retValue = -1; 
    45 *      int retValue = -1; 
    48 *      QList<QVariant> arglist;
    46 *      QList<QVariant> arglist;
    49 *      QVariantMap map;
    47 *      QVariantMap map;
    50 *      map.insert("ViewIndex", QVariant(0));
    48 *      map.insert(XQLOGS_VIEW_INDEX, QVariant((int)XQService::LogsViewMissed));
    51 *      map.insert("ShowDialpad", QVariant(true));
    49 *      map.insert(XQLOGS_SHOW_DIALPAD, QVariant(true));
    52 *      map.insert("DialpadText", QVariant(QString()));
    50 *      map.insert(XQLOGS_DIALPAD_TEXT, QVariant(QString()));
    53 *      arglist.append(QVariant(map));
    51 *      arglist.append(QVariant(map));
    54 *      request->setArguments(arglist);
    52 *      request->setArguments(arglist);
    55 *      QVariant ret(retValue);        
    53 *      QVariant ret(retValue);        
    56 *      request->send(ret);
    54 *      request->send(ret);
    57 *  }
    55 *  }