Warning: That file was not part of the compilation database. It may have many parsing errors.

1/*
2 * This file is part of LibKGAPI library
3 *
4 * Copyright (C) 2013 Daniel Vrátil <dvratil@redhat.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 *
20 */
21
22#ifndef LIBKGAPI2_OBJECT_H
23#define LIBKGAPI2_OBJECT_H
24
25#include <QtCore/QString>
26#include <QtCore/QList>
27#include <QtCore/QSharedPointer>
28
29#include <libkgapi2/types.h>
30#include <libkgapi2/libkgapi2_export.h>
31
32namespace KGAPI2
33{
34
35/**
36 * @brief Base class for all objects
37 *
38 * There are many container classes to represent data fetched from Google servers,
39 * like KGAPI2::Contact, KGAPI2::Event, etc. All these container classes must
40 * be subclasses of KGAPI2::Object.
41 *
42 * @author Daniel Vrátil <dvratil@redhat.com>
43 * @since 2.0
44 */
45class LIBKGAPI2_EXPORT Object
46{
47 public:
48 /**
49 * @brief Constructor
50 */
51 Object();
52
53 /**
54 * @brief Copy constructor
55 */
56 Object(const Object &other);
57
58 /**
59 * @brief Destructor
60 */
61 virtual ~Object();
62
63 /**
64 * @brief Sets etag of this object.
65 *
66 * Etag represents a revision of an object When object is changed on the
67 * remote side is given a new etag.
68 *
69 * @param etag
70 */
71 void setEtag(const QString &etag);
72
73 /**
74 * @brief Returns etag of this object.
75 *
76 * @return Etag string
77 */
78 QString etag() const;
79
80 private:
81 class Private;
82 Private * const d;
83 friend class Private;
84
85};
86
87} // namespace KGAPI2
88
89#endif // LIBKGAPI2_OBJECT_H
90

Warning: That file was not part of the compilation database. It may have many parsing errors.