KVIrc  4.9.2
DeveloperAPIs
KviTrayIcon.h
Go to the documentation of this file.
1 #ifndef _KviTrayIcon_h_
2 #define _KviTrayIcon_h_
3 //=============================================================================
4 //
5 // File : KviTrayIcon.h
6 // Creation date : Sun Jun 18 2000 17:59:02 CEST by Szymon Stefanek
7 //
8 // This file is part of the KVIrc IRC client distribution
9 // Copyright (C) 2000-2011 Szymon Stefanek (pragma at kvirc dot net)
10 //
11 // This program is FREE software. You can redistribute it and/or
12 // modify it under the terms of the GNU General Public License
13 // as published by the Free Software Foundation; either version 2
14 // of the License, or (at your option) any later version.
15 //
16 // This program is distributed in the HOPE that it will be USEFUL,
17 // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19 // See the GNU General Public License for more details.
20 //
21 // You should have received a copy of the GNU General Public License
22 // along with this program. If not, write to the Free Software Foundation,
23 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 //
25 //=============================================================================
26 
27 #include "kvi_settings.h"
28 
29 #include <QWidget>
30 
38 {
39 private:
40  Qt::WindowStates m_oStoredWindowStates;
41 
42 public:
47  : m_oStoredWindowStates(0)
48  {
49  }
50 
55  virtual ~KviTrayIcon()
56  {
57  }
58 
59 public:
60  void setPrevWindowState(Qt::WindowStates state)
61  {
62  m_oStoredWindowStates = state;
63  }
64 
65  Qt::WindowStates getPrevWindowState()
66  {
67  return m_oStoredWindowStates;
68  }
69 
70  virtual void refresh()
71  {
72  }
73 
74  virtual void die()
75  {
76  delete this;
77  }
78 
79 }; // class KviTrayIcon
80 
81 #endif
#define KVIRC_API
Definition: kvi_settings.h:128
virtual void refresh()
Definition: KviTrayIcon.h:70
virtual void die()
Definition: KviTrayIcon.h:74
Qt::WindowStates getPrevWindowState()
Definition: KviTrayIcon.h:65
Qt::WindowStates m_oStoredWindowStates
Definition: KviTrayIcon.h:40
virtual ~KviTrayIcon()
Definition: KviTrayIcon.h:55
void setPrevWindowState(Qt::WindowStates state)
Definition: KviTrayIcon.h:60
The KviTrayIcon class.
Definition: KviTrayIcon.h:37
KviTrayIcon()
Definition: KviTrayIcon.h:46
This file contains compile time settings.