/* Copyright (C) 2016 - 2017 Dan Chapman This file is part of Dekko email client for Ubuntu devices 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) version 3 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, see . */ pragma Singleton import QtQuick 2.4 import QuickFlux 1.0 /*! * @ingroup qml_actions */ ActionCreator { //=========================================================================\\ // StageStack api \\ //=========================================================================\\ signal stageStackReady() // Call when the StageStage onCompleted signal pushStage(var stage, var properties) signal popStage() signal clearStageStack() signal rewindStageStack() signal runSetupWizard() signal closeSetupWizard() // messagelistview signal openNavDrawer() signal closeNavDrawer() signal expandNavPanel() signal collapseNavPanel() signal toggleNavDrawer() signal positionMessageListAtStart() signal openMessageComposer() signal closeMessageComposer() signal replyToOpenMessage() signal detachComposer() signal attachComposer() signal openUris(var uris) signal navigateToAccount(var accountId) signal navigateToFolder(var accountId, var folderId) signal navigateToMessage(var accountId, var folderId, var messageId) signal resetPanelWidths() signal pushToStageArea(string stageID, var page, var properties) signal replaceTopStageAreaItem(string stageID, var page, var properties) signal popStageArea(string stageID) signal clearStageArea(string stageID) signal openComposer() signal setComposePanelSource(var source, var properties) signal closeComposer() signal openSettings() signal closeSettings() signal orderSimpleToast(string target, string message) signal orderSubtitledToast(string title, string subtitle) signal orderComplexToast(string title, string subtitle, string image) signal setCurrentNavFolder(string folderName); signal switchMessageViewLocation(string currentStageArea, int msgId) signal openAddressBook() signal delayCall(string funcKey) signal delayCallWithArgs(string funcKey, var args) signal reloadAccountBasedModels() signal displayHtmlContent() }