diff --git a/actionlist.h b/actionlist.h index 780505b2a..db706d920 100644 --- a/actionlist.h +++ b/actionlist.h @@ -1,70 +1,75 @@ /*************************************************************************** * Copyright (C) 2013 by Aurélien Gâteau * * Copyright (C) 2014-2015 by Eike Hein * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * 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 General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * ***************************************************************************/ +#ifndef ACTIONLIST_H +#define ACTIONLIST_H + #include #include class KFileItem; namespace Kicker { enum { DescriptionRole = Qt::UserRole + 1, GroupRole, FavoriteIdRole, IsSeparatorRole, IsDropPlaceholderRole, IsParentRole, HasChildrenRole, HasActionListRole, ActionListRole, UrlRole }; QVariantMap createActionItem(const QString &label, const QString &actionId, const QVariant &argument = QVariant()); QVariantMap createTitleActionItem(const QString &label); QVariantMap createSeparatorActionItem(); QVariantList createActionListForFileItem(const KFileItem &fileItem); bool handleFileItemAction(const KFileItem &fileItem, const QString &actionId, const QVariant &argument, bool *close); QVariantList createAddLauncherActionList(QObject *appletInterface, const KService::Ptr &service); bool handleAddLauncherAction(const QString &actionId, QObject *appletInterface, const KService::Ptr &service); QVariantList jumpListActions(KService::Ptr service); QVariantList recentDocumentActions(KService::Ptr service); bool handleRecentDocumentAction(KService::Ptr service, const QString &actionId, const QVariant &argument); bool canEditApplication(const QString &entryPath); void editApplication(const QString &entryPath, const QString &menuId); QVariantList editApplicationAction(const KService::Ptr &service); bool handleEditApplicationAction(const QString &actionId, const KService::Ptr &service); QVariantList appstreamActions(const KService::Ptr &service); bool handleAppstreamActions(const QString &actionId, const QVariant &argument); QString resolvedServiceEntryPath(const KService::Ptr &service); } + +#endif