Attica

metadata.h
1 /*
2  This file is part of KDE.
3 
4  SPDX-FileCopyrightText: 2009 Frederik Gladhorn <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7  */
8 
9 #ifndef ATTICA_METADATA_H
10 #define ATTICA_METADATA_H
11 
12 #include <QString>
13 
14 #include <QSharedDataPointer>
15 
16 #include "attica_export.h"
17 
18 namespace Attica
19 {
20 class BaseJob;
21 
25 class ATTICA_EXPORT Metadata
26 {
27 public:
28  Metadata();
29  Metadata(const Metadata &other);
30  ~Metadata();
31  Metadata &operator=(const Metadata &other);
32 
33  enum Error {
34  NoError = 0,
35  NetworkError,
36  OcsError
37  };
38 
43  Error error() const;
44  void setError(Error error);
45 
51  int statusCode() const;
52  void setStatusCode(int code);
53 
57  QString statusString() const;
58  void setStatusString(const QString &status);
59 
61  QString message();
62  void setMessage(const QString &message);
63 
65  int totalItems();
66  void setTotalItems(int items);
67 
69  int itemsPerPage();
70  void setItemsPerPage(int itemsPerPage);
71 
73  QString resultingId();
74  void setResultingId(const QString &id);
75 
76 private:
77  class Private;
79 
80  friend class Attica::BaseJob;
81 };
82 
83 }
84 
85 #endif
Status messages from the server.
Definition: metadata.h:25
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 25 2021 23:06:24 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.