~mardy/online-accounts-api/sasl-1519330

« back to all changes in this revision

Viewing changes to src/lib/OnlineAccounts/global.h

  • Committer: Alberto Mardegan
  • Date: 2015-04-28 17:01:03 UTC
  • mfrom: (5.1.30 qt-api-impl)
  • Revision ID: alberto.mardegan@canonical.com-20150428170103-9hty50555f6e7uz6
Qt client API implementation

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * This file is part of libOnlineAccounts
 
3
 *
 
4
 * Copyright (C) 2015 Canonical Ltd.
 
5
 *
 
6
 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
 
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_GLOBAL_H
 
22
#define ONLINE_ACCOUNTS_GLOBAL_H
 
23
 
 
24
#include <QtGlobal>
 
25
 
 
26
#if defined(BUILDING_ONLINE_ACCOUNTS)
 
27
#  define ONLINE_ACCOUNTS_EXPORT Q_DECL_EXPORT
 
28
#else
 
29
#  define ONLINE_ACCOUNTS_EXPORT Q_DECL_IMPORT
 
30
#endif
 
31
 
 
32
namespace OnlineAccounts {
 
33
 
 
34
typedef uint AccountId;
 
35
 
 
36
enum AuthenticationMethod {
 
37
    AuthenticationMethodUnknown = 0,
 
38
    AuthenticationMethodOAuth1,
 
39
    AuthenticationMethodOAuth2,
 
40
    AuthenticationMethodPassword,
 
41
};
 
42
 
 
43
} // namespace
 
44
 
 
45
#endif // ONLINE_ACCOUNTS_GLOBAL_H