2005-12-29 22:55:22 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2005 by Aaron Seigo <aseigo@kde.org>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Library General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Library General Public
|
|
|
|
* License along with this program; if not, write to the
|
|
|
|
* Free Software Foundation, Inc.,
|
2006-01-23 12:37:31 +01:00
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2005-12-29 22:55:22 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef PLASMA_APPLETCHAIN_H
|
|
|
|
#define PLASMA_APPLETCHAIN_H
|
|
|
|
|
|
|
|
#include <ksharedptr.h>
|
|
|
|
|
|
|
|
#include "plasma.h"
|
|
|
|
|
|
|
|
namespace Plasma
|
|
|
|
{
|
|
|
|
|
2005-12-30 21:09:10 +01:00
|
|
|
class Applet;
|
|
|
|
|
2005-12-29 22:55:22 +01:00
|
|
|
class KDE_EXPORT AppletChain : public QObject, public KShared
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
Q_PROPERTY(AppletConstraint constraint READ constraint WRITE setConstraint)
|
2005-12-30 01:25:15 +01:00
|
|
|
Q_PROPERTY(ScreenEdge screenEdge READ screenEdge WRITE setScreenEdge)
|
|
|
|
Q_PROPERTY(int XineramaScreen READ screenEdge WRITE setXineramaScreen)
|
2005-12-29 22:55:22 +01:00
|
|
|
|
|
|
|
public:
|
|
|
|
typedef KSharedPtr<AppletChain> Ptr;
|
|
|
|
|
|
|
|
AppletChain(QObject* parent);
|
|
|
|
~AppletChain();
|
|
|
|
|
|
|
|
Plasma::AppletConstraint constraint();
|
|
|
|
void setConstraint(Plasma::AppletConstraint constraint);
|
|
|
|
Plasma::Direction popupDirection() const;
|
|
|
|
|
|
|
|
Plasma::ScreenEdge screenEdge();
|
2005-12-30 01:25:15 +01:00
|
|
|
void setScreenEdge(Plasma::ScreenEdge edge);
|
|
|
|
|
|
|
|
int xineramaScreen();
|
|
|
|
void setXineramaScreen(int screen);
|
|
|
|
|
2006-01-20 12:09:06 +01:00
|
|
|
public Q_SLOTS:
|
2005-12-30 01:25:15 +01:00
|
|
|
void loadApplet(KService::Ptr);
|
2006-01-06 02:13:22 +01:00
|
|
|
void addApplet(Plasma::Applet*);
|
2005-12-29 22:55:22 +01:00
|
|
|
|
2006-01-20 12:09:06 +01:00
|
|
|
Q_SIGNALS:
|
2005-12-30 01:25:15 +01:00
|
|
|
void appletAdded(Applet*);
|
|
|
|
void appletRemoved(Applet*);
|
2005-12-29 22:55:22 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
class Private;
|
|
|
|
Private* d;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // Plasma namespace
|
|
|
|
|
|
|
|
#endif // multiple inclusion guard
|