• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • twin
 

twin

  • twin
sm.h
1 /*****************************************************************
2  KWin - the KDE window manager
3  This file is part of the KDE project.
4 
5 Copyright (C) 1999, 2000 Matthias Ettrich <ettrich@kde.org>
6 Copyright (C) 2003 Lubos Lunak <l.lunak@kde.org>
7 
8 You can Freely distribute this program under the GNU General Public
9 License. See the file "COPYING" for the exact licensing terms.
10 ******************************************************************/
11 
12 #ifndef KWIN_SM_H
13 #define KWIN_SM_H
14 
15 #include <X11/SM/SMlib.h>
16 #include <tdeapplication.h>
17 #include <netwm_def.h>
18 
19 class TQSocketNotifier;
20 
21 namespace KWinInternal
22 {
23 
24 struct SessionInfo
25  {
26  TQCString sessionId;
27  TQCString windowRole;
28  TQCString wmCommand;
29  TQCString wmClientMachine;
30  TQCString resourceName;
31  TQCString resourceClass;
32 
33  TQRect geometry;
34  TQRect restore;
35  TQRect fsrestore;
36  int maximized;
37  int fullscreen;
38  int desktop;
39  bool minimized;
40  bool onAllDesktops;
41  bool shaded;
42  bool shadowed;
43  bool keepAbove;
44  bool keepBelow;
45  bool skipTaskbar;
46  bool skipPager;
47  bool userNoBorder;
48  bool userNoBorderForced;
49  NET::WindowType windowType;
50  TQString shortcut;
51  bool active; // means 'was active in the saved session'
52  };
53 
54 
55 enum SMSavePhase
56  {
57  SMSavePhase0, // saving global state in "phase 0"
58  SMSavePhase2, // saving window state in phase 2
59  SMSavePhase2Full // complete saving in phase2, there was no phase 0
60  };
61 
62 class SessionSaveDoneHelper
63  : public TQObject
64  {
65  TQ_OBJECT
66  public:
67  SessionSaveDoneHelper();
68  virtual ~SessionSaveDoneHelper();
69  SmcConn connection() const { return conn; }
70  void saveDone();
71  void close();
72  private slots:
73  void processData();
74  private:
75  TQSocketNotifier* notifier;
76  SmcConn conn;
77  };
78 
79 
80 class SessionManaged
81  : public KSessionManaged
82  {
83  public:
84  virtual bool saveState( TQSessionManager& sm );
85  virtual bool commitData( TQSessionManager& sm );
86  };
87 
88 } // namespace
89 
90 #endif

twin

Skip menu "twin"
  • Main Page
  • Modules
  • Alphabetical List
  • Class List
  • File List
  • Class Members

twin

Skip menu "twin"
  • kate
  • libkonq
  • twin
  •   lib
Generated for twin by doxygen 1.9.1
This website is maintained by Timothy Pearson.