Debian Codegraph @

Dekko/api/public/Accounts/AccountActions.qml

raw
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 * QML Accounts action API
24 *
25 * API for interacting with Dekko's accounts store from QML, via dispatched actions
26 *
27 * @ingroup qml_actions
28 */
29 ActionCreator {
30
31 /*!
32 * Deletes the complete account removing all messages and configs
33 * @param int The accounts ID
34 * @param string The account name
35 * @param bool Whether we should prompt for removal of the account.
36 */
37 signal deleteAccount(int accountId, string accountName, bool confirmRemoval)
38 signal confirmRemoveAccount()
39
40
41 signal addIdentity(var identity)
42 signal updateIdentity(var identity)
43 signal removeIdentity(int id)
44 signal removeIdentitiesForAccount(int accountId)
45
46 //Private
47 signal _confirmRemoval()
48
49 }