• 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  NET::WindowType windowType;
49  TQString shortcut;
50  bool active; // means 'was active in the saved session'
51  };
52 
53 
54 enum SMSavePhase
55  {
56  SMSavePhase0, // saving global state in "phase 0"
57  SMSavePhase2, // saving window state in phase 2
58  SMSavePhase2Full // complete saving in phase2, there was no phase 0
59  };
60 
61 class SessionSaveDoneHelper
62  : public TQObject
63  {
64  TQ_OBJECT
65  public:
66  SessionSaveDoneHelper();
67  virtual ~SessionSaveDoneHelper();
68  SmcConn connection() const { return conn; }
69  void saveDone();
70  void close();
71  private slots:
72  void processData();
73  private:
74  TQSocketNotifier* notifier;
75  SmcConn conn;
76  };
77 
78 
79 class SessionManaged
80  : public KSessionManaged
81  {
82  public:
83  virtual bool saveState( TQSessionManager& sm );
84  virtual bool commitData( TQSessionManager& sm );
85  };
86 
87 } // namespace
88 
89 #endif

twin

Skip menu "twin"
  • Main Page
  • 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.