~ubuntu-branches/ubuntu/gutsy/kdebase-workspace/gutsy

« back to all changes in this revision

Viewing changes to plasma/applets/systemtray/systemtray.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2007-10-11 14:04:48 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071011140448-v0eb7lxbb24zagca
Tags: 3.94.0-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *   systemtray.h                                                          *
 
3
 *                                                                         *
 
4
 *   Copyright (C) 2007 Alexander Rodin <rodin.alexander@gmail.com>        *
 
5
 *                                                                         *
 
6
 *   This program is free software; you can redistribute it and/or modify  *
 
7
 *   it under the terms of the GNU General Public License as published by  *
 
8
 *   the Free Software Foundation; either version 2 of the License, or     *
 
9
 *   (at your option) any later version.                                   *
 
10
 *                                                                         *
 
11
 *   This program is distributed in the hope that it will be useful,       *
 
12
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 
13
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 
14
 *   GNU General Public License for more details.                          *
 
15
 *                                                                         *
 
16
 *   You should have received a copy of the GNU General Public License     *
 
17
 *   along with this program; if not, write to the                         *
 
18
 *   Free Software Foundation, Inc.,                                       *
 
19
 *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA .        *
 
20
 ***************************************************************************/
 
21
 
 
22
#ifndef SYSTEMTRAY_H
 
23
#define SYSTEMTRAY_H
 
24
 
 
25
// Plasma
 
26
#include <plasma/applet.h>
 
27
 
 
28
class SystemTrayWidget;
 
29
 
 
30
class SystemTray: public Plasma::Applet
 
31
{
 
32
Q_OBJECT
 
33
 
 
34
public:
 
35
    SystemTray(QObject *parent, const QVariantList &arguments = QVariantList());
 
36
    ~SystemTray();
 
37
 
 
38
    QSizeF contentSizeHint() const;
 
39
 
 
40
    Qt::Orientations expandingDirections() const;
 
41
 
 
42
protected:
 
43
    QVariant itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant &value);
 
44
 
 
45
private slots:
 
46
    void updateLayout()
 
47
    { update(); }
 
48
 
 
49
private:
 
50
    SystemTrayWidget *m_systemTrayWidget;
 
51
};
 
52
 
 
53
K_EXPORT_PLASMA_APPLET(systemtray, SystemTray)
 
54
 
 
55
#endif // SYSTEMTRAY_H