harvester/harvesterserver/src/main.cpp
changeset 10 afe194b6b1cd
child 23 d4d56f5e7c55
equal deleted inserted replaced
9:d575fd691cf9 10:afe194b6b1cd
       
     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: 
       
    15 *
       
    16 */
       
    17 #include <QtCore>
       
    18 #include <QCoreApplication>
       
    19 #include "charvesterserver.h"
       
    20 #include "qtmythread.h"
       
    21 
       
    22 int main(int argc, char *argv[])
       
    23     {
       
    24     QCoreApplication a( argc , argv);
       
    25     HarvesterThread mythread;    
       
    26     mythread.start();
       
    27     return a.exec();
       
    28     }
       
    29 
       
    30 void HarvesterThread::run()
       
    31     {
       
    32     //Trapping the error is handled inside the ThreadFunction
       
    33     CHarvesterServer::ThreadFunction();
       
    34     exec();
       
    35     }