Changeset View
Changeset View
Standalone View
Standalone View
globalaccel.h
Show All 12 Lines | |||||
13 | * | 13 | * | ||
14 | * You should have received a copy of the GNU General Public License along | 14 | * You should have received a copy of the GNU General Public License along | ||
15 | * with this program; if not, write to the Free Software Foundation, Inc., | 15 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
17 | */ | 17 | */ | ||
18 | #ifndef GLOBALACCEL_H | 18 | #ifndef GLOBALACCEL_H | ||
19 | #define GLOBALACCEL_H | 19 | #define GLOBALACCEL_H | ||
20 | 20 | | |||
21 | #include <QString> | 21 | #include <KService> | ||
22 | #include <QKeySequence> | 22 | #include <QKeySequence> | ||
23 | 23 | | |||
24 | class GlobalAccel | 24 | class GlobalAccel | ||
25 | { | 25 | { | ||
26 | public: | 26 | public: | ||
27 | static QKeySequence getMenuEntryShortcut(const QString &storageId); | 27 | static QKeySequence getMenuEntryShortcut(const KService::Ptr service); | ||
28 | static void changeMenuEntryShortcut(const QString &storageId, const QKeySequence &shortcut); | 28 | static void changeMenuEntryShortcut(const KService::Ptr service, const QKeySequence &shortcut); | ||
29 | }; | 29 | }; | ||
30 | 30 | | |||
31 | #endif // GLOBALACCEL_H | 31 | #endif // GLOBALACCEL_H |