1/*
2 Copyright (c) 2008 Tobias Koenig <tokoe@kde.org>
3
4 This library is free software; you can redistribute it and/or modify it
5 under the terms of the GNU Library General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or (at your
7 option) any later version.
8
9 This library is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12 License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to the
16 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 02110-1301, USA.
18*/
19
20#ifndef AKONADI_AGENTINSTANCE_P_H
21#define AKONADI_AGENTINSTANCE_P_H
22
23#include "agenttype.h"
24
25#include <QtCore/QSharedData>
26#include <QtCore/QString>
27
28namespace Akonadi
29{
30
31/**
32 * @internal
33 */
34class AgentInstance::Private : public QSharedData
35{
36public:
37 Private()
38 : mStatus(0)
39 , mProgress(0)
40 , mIsOnline(false)
41 {
42 }
43
44 Private(const Private &other)
45 : QSharedData(other)
46 {
47 mType = other.mType;
48 mIdentifier = other.mIdentifier;
49 mName = other.mName;
50 mStatus = other.mStatus;
51 mStatusMessage = other.mStatusMessage;
52 mProgress = other.mProgress;
53 mIsOnline = other.mIsOnline;
54 }
55
56 AgentType mType;
57 QString mIdentifier;
58 QString mName;
59 int mStatus;
60 QString mStatusMessage;
61 int mProgress;
62 bool mIsOnline;
63};
64
65}
66
67#endif
68