signon  8.58
signond-common.h
Go to the documentation of this file.
00001 /*
00002  * This file is part of signon
00003  *
00004  * Copyright (C) 2010 Nokia Corporation.
00005  *
00006  * Contact: Alberto Mardegan <alberto.mardegan@canonical.com>
00007  *
00008  * This library is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU Lesser General Public License
00010  * version 2.1 as published by the Free Software Foundation.
00011  *
00012  * This library is distributed in the hope that it will be useful, but
00013  * WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00015  * Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with this library; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
00020  * 02110-1301 USA
00021  */
00022 
00023 #ifndef SIGNOND_COMMON_H_
00024 #define SIGNOND_COMMON_H_
00025 
00026 #include "signond/signoncommon.h"
00027 
00028 #ifdef TRACE
00029     #undef TRACE
00030 #endif
00031 
00032 #ifdef BLAME
00033     #undef BLAME
00034 #endif
00035 
00036 #ifdef SIGNOND_TRACE
00037     #define SIGNON_TRACE
00038     #include "SignOn/Debug"
00039 #endif
00040 
00041 #ifdef TESTS_TRACE
00042     #define TRACE() \
00043         qDebug() << __FILE__ << __LINE__ << __func__
00044     #define BLAME() \
00045         qCritical() << __FILE__ << __LINE__ << __func__
00046 #endif
00047 
00048 /*
00049  * Idle timeout for remote identities and their plugin processes
00050  * */
00051 #define SIGNOND_MAX_IDLE_TIME 300
00052 
00053 /*
00054  * Signon UI DBUS defs
00055  * */
00056 #define SIGNON_UI_SERVICE           QLatin1String("com.nokia.singlesignonui")
00057 #define SIGNON_UI_DAEMON_OBJECTPATH QLatin1String("/SignonUi")
00058 
00059 /*
00060  * Signon Daemon default configuration values
00061  */
00062 const char signonDefaultDbName[] = "signon.db";
00063 const char signonDefaultSecretsDbName[] = "signon-secrets.db";
00064 const bool signonDefaultUseEncryption = true;
00065 const char signonDefaultStoragePath[] = "~/.config/signond";
00066 
00067 #endif // SIGNOND_COMMON_H_