Debian Codegraph @

online-accounts/lib/qt/LomiriOnlineAccounts/error.h

raw symbols SCIP
1 /*
2 * This file is part of libOnlineAccounts
3 *
4 * Copyright (C) 2015 Canonical Ltd.
5 *
6 * Contact: Alberto Mardegan <[email protected]>
7 *
8 * This program is free software: you can redistribute it and/or modify it
9 * under the terms of the GNU Lesser General Public License version 3, as
10 * published by the Free Software Foundation.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranties of
14 * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #ifndef ONLINE_ACCOUNTS_ERROR_H
22 #define ONLINE_ACCOUNTS_ERROR_Hcxx . . $ `online-accounts/lib/qt/LomiriOnlineAccounts/error.h:22:9`!
23
24 #include <QString>
25
26 #include "global.h"cxx . . $ `<file>/online-accounts/lib/qt/LomiriOnlineAccounts/global.h`/
27
28 namespace OnlineAccountscxx . . $ OnlineAccounts/ {
29
30 class ONLINE_ACCOUNTS_EXPORTcxx . . $ `online-accounts/lib/qt/LomiriOnlineAccounts/global.h:27:11`! Errorcxx . . $ OnlineAccounts/Error#
31 {
32 public:
33 enum Codecxx . . $ OnlineAccounts/Error#Code# {
34 NoErrorcxx . . $ OnlineAccounts/Error#NoError. = 0,
35 NoAccountcxx . . $ OnlineAccounts/Error#NoAccount., /* Account got removed or disabled */
36 WrongTypecxx . . $ OnlineAccounts/Error#WrongType., /* For instance, using a PasswordReply to handle an OAuth
37 reply */
38 UserCanceledcxx . . $ OnlineAccounts/Error#UserCanceled., /* The user dismissed the authentication prompt */
39 PermissionDeniedcxx . . $ OnlineAccounts/Error#PermissionDenied.,
40 InteractionRequiredcxx . . $ OnlineAccounts/Error#InteractionRequired.,
41 };
42
43 Errorcxx . . $ OnlineAccounts/Error#Error(49f6e7a06ebc5aa8).(): m_codecxx . . $ OnlineAccounts/Error#m_code.(NoErrorcxx . . $ OnlineAccounts/Error#NoError.) {}
44 Errorcxx . . $ OnlineAccounts/Error#Error(87f22122582033ec).(Codecxx . . $ OnlineAccounts/Error#Code# code, const QStringcxx . . $ QString# &text): m_codecxx . . $ OnlineAccounts/Error#m_code.(code), m_textcxx . . $ OnlineAccounts/Error#m_text.(text) {}
45
46 bool isValidcxx . . $ OnlineAccounts/Error#isValid(50ce9a9e25b4a850).() const { return m_codecxx . . $ OnlineAccounts/Error#m_code. != NoErrorcxx . . $ OnlineAccounts/Error#NoError.; }
47
48 Codecxx . . $ OnlineAccounts/Error#Code# codecxx . . $ OnlineAccounts/Error#code(89328546d36c98d).() const { return m_codecxx . . $ OnlineAccounts/Error#m_code.; }
49 QStringcxx . . $ QString# textcxx . . $ OnlineAccounts/Error#text(6ef7b6c27b00b43d).() const { return m_textcxx . . $ OnlineAccounts/Error#m_text.; }
50
51 private:
52 Codecxx . . $ OnlineAccounts/Error#Code# m_codecxx . . $ OnlineAccounts/Error#m_code.;
53 QStringcxx . . $ QString# m_textcxx . . $ OnlineAccounts/Error#m_text.;
54 };
55
56 } // namespace
57
58 #endif // ONLINE_ACCOUNTS_ERROR_H