~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to libs/taskmanager/task_p.h

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*****************************************************************
 
2
 
 
3
Copyright (c) 2000-2001 Matthias Elter <elter@kde.org>
 
4
Copyright (c) 2001 Richard Moore <rich@kde.org>
 
5
 
 
6
Permission is hereby granted, free of charge, to any person obtaining a copy
 
7
of this software and associated documentation files (the "Software"), to deal
 
8
in the Software without restriction, including without limitation the rights
 
9
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 
10
copies of the Software, and to permit persons to whom the Software is
 
11
furnished to do so, subject to the following conditions:
 
12
 
 
13
The above copyright notice and this permission notice shall be included in
 
14
all copies or substantial portions of the Software.
 
15
 
 
16
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
17
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
18
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 
19
AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 
20
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 
21
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
22
 
 
23
******************************************************************/
 
24
 
 
25
#ifndef TASKP_H
 
26
#define TASKP_H
 
27
 
 
28
#include "task.h"
 
29
 
 
30
#include <QTime>
 
31
#include <NETWinInfo>
 
32
 
 
33
namespace TaskManager
 
34
{
 
35
 
 
36
static const unsigned long windowInfoFlags = NET::WMState | NET::XAWMState | NET::WMDesktop |
 
37
                                             NET::WMVisibleName | NET::WMGeometry |
 
38
                                             NET::WMWindowType | NET::WM2AllowedActions;
 
39
static const unsigned long windowInfoFlags2 = NET::WM2AllowedActions;
 
40
 
 
41
class Task::Private
 
42
{
 
43
public:
 
44
    Private(WId w)
 
45
     : win(w),
 
46
       frameId(w),
 
47
       info(KWindowSystem::windowInfo(w, windowInfoFlags, windowInfoFlags2)),
 
48
       lastWidth(0),
 
49
       lastHeight(0),
 
50
       cachedChanges(0, 0),
 
51
       cachedChangesTimerId(0),
 
52
       active(false),
 
53
       lastResize(false),
 
54
       demandedAttention(false)
 
55
    {
 
56
    }
 
57
 
 
58
    WId win;
 
59
    WId frameId;
 
60
    KWindowInfo info;
 
61
    WindowList transients;
 
62
    WindowList transientsDemandingAttention;
 
63
    QStringList activities;
 
64
 
 
65
    int lastWidth;
 
66
    int lastHeight;
 
67
    QIcon icon;
 
68
 
 
69
    QRect iconGeometry;
 
70
 
 
71
    QTime lastUpdate;
 
72
    Task::WindowProperties cachedChanges;
 
73
    int cachedChangesTimerId;
 
74
    QPixmap pixmap;
 
75
    QPixmap lastIcon;
 
76
    bool active : 1;
 
77
    bool lastResize : 1;
 
78
    bool demandedAttention : 1;
 
79
};
 
80
}
 
81
 
 
82
#endif