| 1 |
/* Copyright (C) 2016 - 2017 Dan Chapman <[email protected]> |
| 2 |
|
| 3 |
This file is part of Dekko email client for Ubuntu devices |
| 4 |
|
| 5 |
This program is free software; you can redistribute it and/or |
| 6 |
modify it under the terms of the GNU General Public License as |
| 7 |
published by the Free Software Foundation; either version 2 of |
| 8 |
the License or (at your option) version 3 |
| 9 |
|
| 10 |
This program is distributed in the hope that it will be useful, |
| 11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
GNU General Public License for more details. |
| 14 |
|
| 15 |
You should have received a copy of the GNU General Public License |
| 16 |
along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 |
*/ |
| 18 |
pragma Singleton |
| 19 |
import QtQuick 2.4 |
| 20 |
import QuickFlux 1.0 |
| 21 |
|
| 22 |
//==========================================================================\\ |
| 23 |
// Dialog queue API \\ |
| 24 |
// All dialogs get pushed onto a queue mainly because we may hit \\ |
| 25 |
// more than one error at any point and the dialogs \\ |
| 26 |
// end up being stacked on top of each other \\ |
| 27 |
// This api queues custom or predefined Dialogs \\ |
| 28 |
// that get displayed one at a time. See PopupQueue.qml and DialogQueue.qml \\ |
| 29 |
// for how this works \\ |
| 30 |
// Note: all dialogs must inherit from DialogBase.qml \\ |
| 31 |
//==========================================================================\\ |
| 32 |
|
| 33 |
/*! |
| 34 |
* @ingroup qml_actions |
| 35 |
*/ |
| 36 |
ActionCreator { |
| 37 |
|
| 38 |
signal showError(string key, string error) |
| 39 |
signal showNotice(string key, string notice) |
| 40 |
signal queueDialog(string key, var dlg, var properties) |
| 41 |
signal showConfirmationDialog(string key, string id, string title, string text) |
| 42 |
signal confirmationDialogConfirmed(string id) |
| 43 |
signal confirmationDialogCancelled(string id) |
| 44 |
signal clearDialogQueue()// TODO |
| 45 |
signal cancelCurrentDialog()// TODO |
| 46 |
signal showDiscardDialog(string id, string title, string text) |
| 47 |
} |