~ubuntu-branches/ubuntu/precise/unity-2d/precise-security

« back to all changes in this revision

Viewing changes to libunity-2d-private/Unity2d/signalwaiter.h

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2011-08-01 19:53:40 UTC
  • mfrom: (1.1.16 upstream)
  • Revision ID: james.westby@ubuntu.com-20110801195340-se0ukbsb0z3b6an1
Tags: 3.8.14-0ubuntu1
* New upstream release:
  - [launcher] Need to press Alt+F1 twice to show launcher (LP: #812787)
* debian/control:
  - build on latest libunity-core-4.0-dev and latest libnux-1.0-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef SIGNALWAITER_H
2
 
#define SIGNALWAITER_H
3
 
 
4
 
#include <QEventLoop>
5
 
#include <QObject>
6
 
 
7
 
class SignalWaiter : public QObject
8
 
{
9
 
    Q_OBJECT
10
 
 
11
 
public:
12
 
    SignalWaiter(QObject *parent = 0);
13
 
    bool waitForSignal(const QObject *sender, const char *signal, int timeout = 0);
14
 
 
15
 
private Q_SLOTS:
16
 
    void succeed();
17
 
    void fail();
18
 
 
19
 
private:
20
 
    QEventLoop m_loop;
21
 
};
22
 
 
23
 
#endif // SIGNALWAITER_H