signon  8.40
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 #define SIGNOND_INITIALIZE_TRACE() initializeTrace();
00042 
00043 #ifdef TESTS_TRACE
00044     #define TRACE() \
00045         qDebug() << __FILE__ << __LINE__ << __func__
00046     #define BLAME() \
00047         qCritical() << __FILE__ << __LINE__ << __func__
00048 #endif
00049 
00050 /*
00051  * Idle timeout for remote identities and their plugin processes
00052  * */
00053 #define SIGNOND_MAX_IDLE_TIME 300
00054 
00055 /*
00056  * Signon UI DBUS defs
00057  * */
00058 #define SIGNON_UI_SERVICE           QLatin1String("com.nokia.singlesignonui")
00059 #define SIGNON_UI_DAEMON_OBJECTPATH QLatin1String("/SignonUi")
00060 
00061 /*
00062  * Signon Daemon default configuration values
00063  */
00064 const char signonDefaultDbName[] = "signon.db";
00065 const char signonDefaultSecretsDbName[] = "signon-secrets.db";
00066 const bool signonDefaultUseEncryption = true;
00067 const char signonDefaultStoragePath[] = "~/.signon";
00068 
00069 #endif // SIGNOND_COMMON_H_