javamanager/javaqtrequest/src.s60/main.cpp
author hgs
Fri, 29 Oct 2010 11:49:32 +0300
changeset 87 1627c337e51e
parent 56 abc41079b313
permissions -rw-r--r--
v2.2.21_1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
56
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
     1
/*
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
     2
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
     3
* All rights reserved.
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
     8
*
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
     9
* Initial Contributors:
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
    11
*
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
    12
* Contributors:
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
    13
*
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
    14
* Description:  QT Service application the makes Qt Highway API
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
    15
*               request based on the command line of the application
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
    16
*
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
    17
*/
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
    18
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
    19
#include <QTimer>
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
    20
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
    21
#include "logger.h"
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
    22
#include "requestapp.h"
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
    23
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
    24
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
    25
int main(int argc, char **argv)
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
    26
{
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
    27
    LOG1(EJavaQtServiceApp, EInfo, "javaqtrequest main() called with %d args", argc);
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
    28
    for (int nInd = 0; nInd < argc; nInd++)
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
    29
    {
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
    30
        LOG2(EJavaQtServiceApp, EInfo, "javaqtrequest main() arg %d is %s", nInd, *(argv + nInd));
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
    31
    }
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
    32
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
    33
    RequestApp app(argc, argv);
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
    34
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
    35
    QTimer::singleShot(0, &app, SLOT(sendRequest()));
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
    36
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
    37
    int ret = app.exec();
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
    38
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
    39
    LOG1(EJavaQtServiceApp, EInfo, "javaqtrequest main() exiting with value %d", ret);
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
    40
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
    41
    return ret;
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
    42
}
abc41079b313 v2.2.7_1
hgs
parents:
diff changeset
    43