javamanager/javaqtrequest/src.s60/main.cpp
changeset 56 abc41079b313
equal deleted inserted replaced
50:023eef975703 56:abc41079b313
       
     1 /*
       
     2 * Copyright (c) 2010 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:  QT Service application the makes Qt Highway API
       
    15 *               request based on the command line of the application
       
    16 *
       
    17 */
       
    18 
       
    19 #include <QTimer>
       
    20 
       
    21 #include "logger.h"
       
    22 #include "requestapp.h"
       
    23 
       
    24 
       
    25 int main(int argc, char **argv)
       
    26 {
       
    27     LOG1(EJavaQtServiceApp, EInfo, "javaqtrequest main() called with %d args", argc);
       
    28     for (int nInd = 0; nInd < argc; nInd++)
       
    29     {
       
    30         LOG2(EJavaQtServiceApp, EInfo, "javaqtrequest main() arg %d is %s", nInd, *(argv + nInd));
       
    31     }
       
    32 
       
    33     RequestApp app(argc, argv);
       
    34 
       
    35     QTimer::singleShot(0, &app, SLOT(sendRequest()));
       
    36 
       
    37     int ret = app.exec();
       
    38 
       
    39     LOG1(EJavaQtServiceApp, EInfo, "javaqtrequest main() exiting with value %d", ret);
       
    40 
       
    41     return ret;
       
    42 }
       
    43