2
* This file is part of buteo-syncfw package
4
* Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
6
* Contact: Sateesh Kavuri <sateesh.kavuri@nokia.com>
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.
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.
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
25
#include "StorageProfile.h"
26
#include "ProfileEngineDefs.h"
31
// Private implementation class for StorageProfile. Currently not needed, but
32
// reserved for future usage.
33
class StorageProfilePrivate
36
StorageProfilePrivate();
38
StorageProfilePrivate(const StorageProfilePrivate &aSource);
44
using namespace Buteo;
46
StorageProfilePrivate::StorageProfilePrivate()
50
StorageProfilePrivate::StorageProfilePrivate(
51
const StorageProfilePrivate & /*aSource*/)
55
StorageProfile::StorageProfile(const QString &aName)
56
: Profile(aName, Profile::TYPE_STORAGE),
57
d_ptr(new StorageProfilePrivate())
61
StorageProfile::StorageProfile(const QDomElement &aRoot)
63
d_ptr(new StorageProfilePrivate())
67
StorageProfile::StorageProfile(const StorageProfile &aSource)
69
d_ptr(new StorageProfilePrivate(*aSource.d_ptr))
73
StorageProfile::~StorageProfile()
79
StorageProfile *StorageProfile::clone() const
81
return new StorageProfile(*this);
84
bool StorageProfile::isEnabled() const
86
return boolKey(KEY_ENABLED, false);