~ubuntu-branches/ubuntu/trusty/kvirc/trusty-proposed

« back to all changes in this revision

Viewing changes to src/kvirc/ui/KviTrayIcon.h

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2013-05-18 19:36:33 UTC
  • mfrom: (24.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130518193633-d2caq4677ihxc93h
Tags: 4:4.2.0-2
Upload to unstable 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 opinion) 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
 
 
31
///
 
32
/// \class KviTrayIcon
 
33
/// \brief The KviTrayIcon class
 
34
///
 
35
/// Base class for the dock extension applets..
 
36
///
 
37
class KVIRC_API KviTrayIcon
 
38
{
 
39
private:
 
40
        Qt::WindowStates m_oStoredWindowStates;
 
41
 
 
42
public:
 
43
 
 
44
        ///
 
45
        /// Creates an instance of KviTrayIcon
 
46
        ///
 
47
        KviTrayIcon()
 
48
                : m_oStoredWindowStates(0)
 
49
        {
 
50
        }
 
51
 
 
52
        ///
 
53
        /// Destroys the instance of KviTrayIcon
 
54
        /// and frees all the relevant resources
 
55
        ///
 
56
        virtual ~KviTrayIcon()
 
57
        {
 
58
        }
 
59
 
 
60
 
 
61
public:
 
62
        void setPrevWindowState(Qt::WindowStates state)
 
63
        {
 
64
                m_oStoredWindowStates = state;
 
65
        }
 
66
 
 
67
        Qt::WindowStates getPrevWindowState()
 
68
        {
 
69
                return m_oStoredWindowStates;
 
70
        }
 
71
 
 
72
        virtual void refresh()
 
73
        {
 
74
        }
 
75
 
 
76
        virtual void die()
 
77
        {
 
78
                delete this;
 
79
        }
 
80
 
 
81
}; // class KviTrayIcon
 
82
 
 
83
 
 
84
 
 
85
#endif //!_KviTrayIcon_h_