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