Attica

distribution.h
1/*
2 This file is part of KDE.
3
4 SPDX-FileCopyrightText: 2010 Intel Corporation
5 SPDX-FileContributor: Mateu Batle Sastre <mbatle@collabora.co.uk>
6
7 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
8*/
9
10#ifndef ATTICA_DISTRIBUTION_H
11#define ATTICA_DISTRIBUTION_H
12
13#include <QSharedDataPointer>
14#include <QUrl>
15
16#include "attica_export.h"
17
18namespace Attica
19{
20/**
21 @class Distribution distribution.h <Attica/Distribution>
22
23 The Distribution class contains information about one distribution that the server offers.
24 It consists of an integer id and a distribution name.
25 */
26class ATTICA_EXPORT Distribution
27{
28public:
30 class Parser;
31
32 /**
33 * Creates an empty Distribution
34 */
36
37 /**
38 * Copy constructor.
39 * @param other the Distribution to copy from
40 */
41 Distribution(const Distribution &other);
42
43 /**
44 * Assignment operator.
45 * @param other the Distribution to assign from
46 * @return pointer to this Distribution
47 */
48 Distribution &operator=(const Distribution &other);
49
50 /**
51 * Destructor.
52 */
54
55 /*
56 <id>2000</id>
57 <name>Ark</name>
58 */
59
60 uint id() const;
61 void setId(uint id);
62
63 QString name() const;
64 void setName(const QString &name);
65
66private:
67 class Private;
69};
70
71}
72
73#endif
The Distribution class contains information about one distribution that the server offers.
The Attica namespace,.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 14 2024 12:00:19 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.