mmappfw_plat/qt_telephony_multimedia_service_api/tsrc/qtmsvoiptest/qtestmains60.h
branchRCL_3
changeset 56 63223d4fd956
parent 55 6c1dfe4da5dd
child 59 666f9a5a90a9
equal deleted inserted replaced
55:6c1dfe4da5dd 56:63223d4fd956
     1 /*
       
     2 * Copyright (c) 2009 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:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef QTESTMAINS60
       
    19 #define QTESTMAINS60
       
    20 
       
    21 #define QTEST_MAIN_S60(QTmsVoipTest) \
       
    22 int main(int argc, char *argv[]) \
       
    23 { \
       
    24 char *new_argv[3]; \
       
    25 QCoreApplication app(argc, argv); \
       
    26 \
       
    27 QString str = "C:\\data\\" + QFileInfo(QCoreApplication::applicationFilePath()).baseName() + ".log"; \
       
    28 QByteArray   bytes  = str.toAscii(); \
       
    29 \
       
    30 char arg1[] = "-o"; \
       
    31 \
       
    32 new_argv[0] = argv[0]; \
       
    33 new_argv[1] = arg1; \
       
    34 new_argv[2] = bytes.data(); \
       
    35 \
       
    36 QTmsVoipTest tc; \
       
    37 return QTest::qExec(&tc, 3, new_argv); \
       
    38 }
       
    39 #endif