~ubuntu-branches/ubuntu/quantal/psi/quantal

« back to all changes in this revision

Viewing changes to src/tools/systemwatch/systemwatch_win.h

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2008-04-14 18:57:30 UTC
  • mfrom: (2.1.9 hardy)
  • Revision ID: james.westby@ubuntu.com-20080414185730-528re3zp0m2hdlhi
Tags: 0.11-8
* added CONFIG -= link_prl to .pro files and removed dependencies
  which are made unnecessary by this change
* Fix segfault when closing last chat tab with qt4.4
  (This is from upstream svn, rev. 1101) (Closes: Bug#476122)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
#include "systemwatch.h"
5
5
 
6
 
class WinSystemWatch : public SystemWatchImpl
 
6
#include <qt_windows.h>
 
7
 
 
8
class WinSystemWatch : public SystemWatch
7
9
{
8
 
        Q_OBJECT
9
 
 
10
10
public:
11
 
        virtual ~WinSystemWatch();
12
 
        static WinSystemWatch* instance();
13
 
        // Win32 doesn't have an equivalent of idleSleep
14
 
 
15
 
private:
16
11
        WinSystemWatch();
17
 
        
18
 
        static WinSystemWatch* instance_;
19
 
public:
20
 
        class WinSystemWatchPrivate;
21
 
private:
22
 
        WinSystemWatchPrivate *d;
 
12
 
 
13
        // Pass WM_POWERBROADCAST and WM_QUERYENDSESSION 
 
14
        // messages from QApplication::winFilterEvent() here
 
15
        bool processWinEvent(MSG *m, long* result);
23
16
};
24
17
 
25
18
#endif