1 /*
2  * This file is part of signon
3  *
4  * Copyright (C) 2010 Nokia Corporation.
5  * Copyright (C) 2012-2016 Canonical Ltd.
6  *
7  * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public License
11  * version 2.1 as published by the Free Software Foundation.
12  *
13  * This library is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21  * 02110-1301 USA
22  */
23 
24 #ifndef SIGNOND_COMMON_H_
25 #define SIGNOND_COMMON_H_
26 
27 #include "signond/signoncommon.h"
28 
29 #ifdef TRACE
30     #undef TRACE
31 #endif
32 
33 #ifdef BLAME
34     #undef BLAME
35 #endif
36 
37 #ifdef SIGNOND_TRACE
38     #define SIGNON_TRACE
39     #include "SignOn/Debug"
40 #endif
41 
42 #ifdef TESTS_TRACE
43     #define TRACE() \
44         qDebug() << __FILE__ << __LINE__ << __func__
45     #define BLAME() \
46         qCritical() << __FILE__ << __LINE__ << __func__
47 #endif
48 
49 /*
50  * Idle timeout for remote identities and their plugin processes
51  * */
52 #define SIGNOND_MAX_IDLE_TIME 300
53 
54 /*
55  * Signon UI DBUS defs
56  * */
57 #define SIGNON_UI_SERVICE           QLatin1String("com.nokia.singlesignonui")
58 #define SIGNON_UI_DAEMON_OBJECTPATH QLatin1String("/SignonUi")
59 
60 /*
61  * Signon Daemon default configuration values
62  */
63 const char signonDefaultDbName[] = "signon.db";
64 const char signonDefaultSecretsDbName[] = "signon-secrets.db";
65 const bool signonDefaultUseEncryption = true;
66 const char signonDefaultStoragePath[] = "~/.config/signond";
67 
68 #endif // SIGNOND_COMMON_H_
69