logsui/tsrc/logsservicestester/logsservicetesterappcloser.h
changeset 20 6a40edd41841
parent 6 41c0a814d878
equal deleted inserted replaced
19:e4c884866116 20:6a40edd41841
    47     ~LogsServiceTesterAppCloser();
    47     ~LogsServiceTesterAppCloser();
    48     
    48     
    49     enum AppCloserErrors {
    49     enum AppCloserErrors {
    50         ErrorAppNotRunning = 1,
    50         ErrorAppNotRunning = 1,
    51         ErrorClosingOngoing,
    51         ErrorClosingOngoing,
    52         ErrorClosingTimeout
    52         ErrorClosingTimeout,
       
    53         ErrorAppRunning
    53     };
    54     };
    54     
    55     
    55 public slots:
    56 public slots:
    56 
    57 
    57     void closeApp(TApaTask& aTask);
    58     void closeApp(TApaTask& aTask);
    58     void closeDialerApp();
    59     void closeDialerApp();
       
    60     void startDialerAtBg();
    59 
    61 
    60 signals:
    62 signals:
    61         
    63         
    62     void closed();
    64     void closed();
    63     void closeError(int error);
    65     void closeError(int error);
    68     
    70     
    69 private:
    71 private:
    70     
    72     
    71     // from MCloseOberver
    73     // from MCloseOberver
    72     virtual void AppClosed(TInt aError);
    74     virtual void AppClosed(TInt aError);
       
    75     
       
    76     bool isDialerRunning(bool close = false);
    73     
    77     
    74 private:
    78 private:
    75     QTimer mTimer;
    79     QTimer mTimer;
    76     CAppCloseWatcher* mAppCloseWatch;
    80     CAppCloseWatcher* mAppCloseWatch;
    77 };
    81 };