• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDEUI

kglobalshortcutinfo.h

Go to the documentation of this file.
00001 #ifndef KGLOBALSHORTCUTINFO_H
00002 #define KGLOBALSHORTCUTINFO_H
00003 /* Copyright (C) 2008 Michael Jansen <kde@michael-jansen.biz>
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License as published by the Free Software Foundation; either
00008    version 2 of the License, or (at your option) any later version.
00009 
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018    Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #include <kdeui_export.h>
00022 
00023 #include <QtCore/QList>
00024 #include <QtCore/QObject>
00025 #include <QtGui/QKeySequence>
00026 #include <QtDBus/QDBusArgument>
00027 
00028 
00029 class KGlobalShortcutInfoPrivate;
00030 
00031 
00035 class KDEUI_EXPORT KGlobalShortcutInfo : public QObject
00036     {
00037     Q_OBJECT
00038 
00039     Q_CLASSINFO("D-Bus Interface", "org.kde.kdedglobalaccel.KShortcutInfo")
00040 
00041     Q_SCRIPTABLE Q_PROPERTY(QString uniqueName READ uniqueName)
00042     Q_SCRIPTABLE Q_PROPERTY(QString friendlyName READ friendlyName)
00043 
00044     Q_SCRIPTABLE Q_PROPERTY(QString componentUniqueName READ componentUniqueName)
00045     Q_SCRIPTABLE Q_PROPERTY(QString componentFriendlyName READ componentFriendlyName)
00046 
00047     Q_SCRIPTABLE Q_PROPERTY(QString contextUniqueName READ contextUniqueName)
00048     Q_SCRIPTABLE Q_PROPERTY(QString contextFriendlyName READ contextFriendlyName)
00049 
00050     Q_SCRIPTABLE Q_PROPERTY(QList<QKeySequence> keys READ keys)
00051     Q_SCRIPTABLE Q_PROPERTY(QList<QKeySequence> defaultKeys READ keys)
00052 
00053 public:
00054 
00055     KGlobalShortcutInfo();
00056 
00057     KGlobalShortcutInfo(const KGlobalShortcutInfo &rhs);
00058 
00059     ~KGlobalShortcutInfo();
00060 
00061     KGlobalShortcutInfo& operator= (const KGlobalShortcutInfo& rhs);
00062 
00063     QString contextFriendlyName() const;
00064 
00065     QString contextUniqueName() const;
00066 
00067     QString componentFriendlyName() const;
00068 
00069     QString componentUniqueName() const;
00070 
00071     QList<QKeySequence> defaultKeys() const;
00072 
00073     QString friendlyName() const;
00074 
00075     QList<QKeySequence> keys() const;
00076 
00077     QString uniqueName() const;
00078 
00079 private:
00080 
00081     friend class GlobalShortcut;
00082 
00083     friend KDEUI_EXPORT const QDBusArgument &operator>> (
00084             const QDBusArgument &argument,
00085             KGlobalShortcutInfo &shortcut);
00086 
00088     KGlobalShortcutInfoPrivate *d;
00089 };
00090 
00091 Q_DECLARE_METATYPE(KGlobalShortcutInfo)
00092 Q_DECLARE_METATYPE(QList<KGlobalShortcutInfo>)
00093 
00094 #endif /* #ifndef KGLOBALSHORTCUTINFO_H */

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal