Plasma
containmentactionspluginsconfig.h
Go to the documentation of this file.
00001 /* 00002 * Copyright (c) 2009 Chani Armitage <chani@kde.org> 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU Library General Public License as 00006 * published by the Free Software Foundation; either version 2, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details 00013 * 00014 * You should have received a copy of the GNU Library General Public 00015 * License along with this program; if not, write to the 00016 * Free Software Foundation, Inc., 00017 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00018 */ 00019 00020 #ifndef PLASMA_CONTAINMENTACTIONSPLUGINSCONFIG_H 00021 #define PLASMA_CONTAINMENTACTIONSPLUGINSCONFIG_H 00022 00023 #include <plasma/plasma_export.h> 00024 00025 #include <Qt> 00026 00027 class QString; 00028 class QEvent; 00029 00030 namespace Plasma 00031 { 00032 00033 class ContainmentActionsPluginsConfigPrivate; 00034 00041 class PLASMA_EXPORT ContainmentActionsPluginsConfig 00042 { 00043 00044 public: 00045 ContainmentActionsPluginsConfig(); 00046 ContainmentActionsPluginsConfig(const ContainmentActionsPluginsConfig &other); 00047 ~ContainmentActionsPluginsConfig(); 00048 ContainmentActionsPluginsConfig& operator=(const ContainmentActionsPluginsConfig &other); 00049 00053 void clear(); 00054 00059 void remove(QEvent *trigger); 00060 00068 void addPlugin(QEvent *trigger, const QString &name); 00069 00073 void addPlugin(Qt::KeyboardModifiers modifiers, Qt::MouseButton button, const QString &name); 00074 00078 void addPlugin(Qt::KeyboardModifiers modifiers, Qt::Orientation wheelDirection, const QString &name); 00079 00080 private: 00081 ContainmentActionsPluginsConfigPrivate *const d; 00082 00083 friend class ContainmentActionsPluginsConfigPrivate; 00084 friend class Containment; 00085 }; 00086 00087 } // namespace Plasma 00088 00089 #endif 00090
KDE 4.6 API Reference