ui/viewmanagement/statehandler/inc/processhandler.h
changeset 23 74c9f037fd5d
equal deleted inserted replaced
5:f7f0874bfe7d 23:74c9f037fd5d
       
     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 
       
    19 #ifndef PROCESSHANDLER_H
       
    20 #define PROCESSHANDLER_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <QObject>
       
    24 #include <QProcess>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 
       
    28 // CLASS DECLARATION
       
    29 class ProcessHandler : public QObject
       
    30     {
       
    31     Q_OBJECT
       
    32     
       
    33     public:
       
    34         ProcessHandler(QObject *parent = 0);
       
    35         ~ProcessHandler();
       
    36     
       
    37     public:
       
    38         void StartCameraApp();
       
    39         
       
    40     public Q_SLOTS:
       
    41         void stateChanged(QProcess::ProcessState state);
       
    42         void error(QProcess::ProcessError error);
       
    43         
       
    44     private: // Data
       
    45         QProcess*   process;
       
    46 
       
    47     }; 
       
    48 
       
    49 #endif //PROCESSHANDLER_H