25 #ifndef SIGNONDAEMON_H_
26 #define SIGNONDAEMON_H_
33 #include <sys/types.h>
41 #ifndef SIGNOND_PLUGINS_DIR
42 #define SIGNOND_PLUGINS_DIR "/usr/lib/signon"
45 #ifndef SIGNOND_PLUGIN_PREFIX
46 #define SIGNOND_PLUGIN_PREFIX QLatin1String("lib")
49 #ifndef SIGNOND_PLUGIN_SUFFIX
50 #define SIGNOND_PLUGIN_SUFFIX QLatin1String("plugin.so")
53 class QSocketNotifier;
55 namespace SignonDaemonNS {
69 return m_camConfiguration;
86 QString m_extensionsDir;
94 uint m_identityTimeout;
95 uint m_authSessionTimeout;
116 Q_INVOKABLE
void init();
127 QObject *
getIdentity(
const quint32
id, QVariantMap &identityData);
141 void onDisconnected();
142 void onNewConnection(
const QDBusConnection &connection);
144 void onIdentityDestroyed();
154 void initExtensions();
155 void initExtension(
const QString &filePath);
159 void setupSignalHandlers();
161 void eraseBackupDir()
const;
162 bool copyToBackupDir(
const QStringList &fileNames)
const;
163 bool copyFromBackupDir(
const QStringList &fileNames)
const;
164 bool createStorageFileTree(
const QStringList &fileNames)
const;
166 void setLastError(
const QString &name,
const QString &msg);
167 void clearLastError();
184 int m_identityTimeout;
185 int m_authSessionTimeout;
187 QDBusServer *m_dbusServer;
189 QString m_lastErrorName;
190 QString m_lastErrorMessage;
200 QSocketNotifier *m_sigSn;