~online-accounts/signon-ui/trunk

« back to all changes in this revision

Viewing changes to src/indicator-service.h

  • Committer: Tarmac
  • Author(s): Alberto Mardegan
  • Date: 2013-03-14 14:41:27 UTC
  • mfrom: (77.1.2 lp1135038)
  • Revision ID: tarmac-20130314144127-dadcb2b7cn48icjh
Do not quit if some accounts are failing

The inactivity timer should not trigger if there are some account failures (we 
even had a comment warning about that!), because signon-ui is also the host for
the com.canonical.indicators.webcredentials service.

Create a new InactivityTimer to monitor both the Service and IndicatorService 
objects.
. Fixes: https://bugs.launchpad.net/bugs/1135038.

Approved by David King, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
class IndicatorService: public QObject
37
37
{
38
38
    Q_OBJECT
 
39
    Q_PROPERTY(bool isIdle READ isIdle NOTIFY isIdleChanged)
39
40
 
40
41
public:
41
42
 
52
53
 
53
54
    QSet<uint> failures() const;
54
55
    bool errorStatus() const;
 
56
    bool isIdle() const;
 
57
 
 
58
Q_SIGNALS:
 
59
    void isIdleChanged();
55
60
 
56
61
private:
57
62
    IndicatorServicePrivate *d_ptr;