signon 8.54

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

default-crypto-manager.cpp
Go to the documentation of this file.
1 /* -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of signon
4 *
5 * Copyright (C) 2011 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 #include "default-crypto-manager.h"
25
26 using namespace SignonDaemonNS;
27
28 DefaultCryptoManager::DefaultCryptoManager(QObject *parent):
29 AbstractCryptoManager(parent)
30 {
31 }
32
33 DefaultCryptoManager::~DefaultCryptoManager()
34 {
35 }
36
37 bool DefaultCryptoManager::initialize(const QVariantMap &configuration)
38 {
39 m_storagePath = configuration.value(QLatin1String("StoragePath")).toString();
40 setFileSystemSetup(true);
41 setFileSystemMounted(true);
42 return true;
43 }
44
45 QString DefaultCryptoManager::fileSystemMountPath() const
46 {
47 return m_storagePath;
48 }
49
SignonDaemonNS::DefaultCryptoManager::fileSystemMountPath
QString fileSystemMountPath() const
Definition: default-crypto-manager.cpp:45
default-crypto-manager.h
SignonDaemonNS::DefaultCryptoManager::DefaultCryptoManager
DefaultCryptoManager(QObject *parent=0)
Definition: default-crypto-manager.cpp:28
SignonDaemonNS::DefaultCryptoManager::initialize
virtual bool initialize(const QVariantMap &configuration)
Definition: default-crypto-manager.cpp:37
SignonDaemonNS::DefaultCryptoManager::~DefaultCryptoManager
~DefaultCryptoManager()
Definition: default-crypto-manager.cpp:33