~ubuntu-branches/ubuntu/trusty/digikam/trusty

« back to all changes in this revision

Viewing changes to extra/kipi-plugins/dlnaexport/extra/hupnp/src/devicemodel/hstatevariable_event.h

  • Committer: Package Import Robot
  • Author(s): Rohan Garg
  • Date: 2012-11-26 18:24:20 UTC
  • mfrom: (1.9.1) (3.1.23 experimental)
  • Revision ID: package-import@ubuntu.com-20121126182420-qoy6z0nx4ai0wzcl
Tags: 4:3.0.0~beta3-0ubuntu1
* New upstream release
  - Add build-deps :  libhupnp-dev, libqtgstreamer-dev, libmagickcore-dev
* Merge from debian, remaining changes:
  - Make sure libqt4-opengl-dev, libgl1-mesa-dev and libglu1-mesa-dev only
    install on i386,amd64 and powerpc
  - Depend on libtiff-dev instead of libtiff4-dev
  - Drop digikam breaks/replaces kipi-plugins-common since we're past the
    LTS release now
  - digikam to recommend mplayerthumbs | ffmpegthumbs. We currently only
    have latter in the archives, even though former is also supposed to
    be part of kdemultimedia. (LP: #890059)
  - kipi-plugins to recommend www-browser rather than konqueror directly
    since 2.8 no direct usage of konqueror is present in the flickr
    plugin anymore (LP: #1011211)
  - Keep kubuntu_mysqld_executable_name.diff
  - Don't install libkipi translations
  - Keep deps on libcv-dev, libcvaux-dev
  - Keep split packaging of libraries
  - Replace icons from KDE 3 time in debian/xpm.d/*.xpm with the new
    versions (LP: #658047)
* Update debian/not-installed

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  Copyright (C) 2010, 2011 Tuomo Penttinen, all rights reserved.
 
3
 *
 
4
 *  Author: Tuomo Penttinen <tp@herqq.org>
 
5
 *
 
6
 *  This file is part of Herqq UPnP (HUPnP) library.
 
7
 *
 
8
 *  Herqq UPnP is free software: you can redistribute it and/or modify
 
9
 *  it under the terms of the GNU Lesser General Public License as published by
 
10
 *  the Free Software Foundation, either version 3 of the License, or
 
11
 *  (at your option) any later version.
 
12
 *
 
13
 *  Herqq UPnP is distributed in the hope that it will be useful,
 
14
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 
16
 *  GNU Lesser General Public License for more details.
 
17
 *
 
18
 *  You should have received a copy of the GNU Lesser General Public License
 
19
 *  along with Herqq UPnP. If not, see <http://www.gnu.org/licenses/>.
 
20
 */
 
21
 
 
22
#ifndef HSTATEVARIABLE_EVENT_H_
 
23
#define HSTATEVARIABLE_EVENT_H_
 
24
 
 
25
#include <HUpnpCore/HUpnp>
 
26
 
 
27
#include <QtCore/QVariant>
 
28
#include <QtCore/QSharedDataPointer>
 
29
 
 
30
namespace Herqq
 
31
{
 
32
 
 
33
namespace Upnp
 
34
{
 
35
 
 
36
class HStateVariableEventPrivate;
 
37
 
 
38
/*!
 
39
 * \brief This is a class used to transfer state variable event information.
 
40
 *
 
41
 * \headerfile hstatevariable_event.h HStateVariableEvent
 
42
 *
 
43
 * \ingroup hupnp_devicemodel
 
44
 *
 
45
 * \sa HClientStateVariable, HServerStateVariable
 
46
 *
 
47
 * \remarks This class is not thread-safe.
 
48
 */
 
49
class H_UPNP_CORE_EXPORT HStateVariableEvent
 
50
{
 
51
private:
 
52
 
 
53
    QSharedDataPointer<HStateVariableEventPrivate> h_ptr;
 
54
 
 
55
public:
 
56
 
 
57
    /*!
 
58
     * \brief Creates a new, empty instance.
 
59
     *
 
60
     * \sa isEmpty()
 
61
     */
 
62
    HStateVariableEvent();
 
63
 
 
64
    /*!
 
65
     * Creates a new instance based on the provided values.
 
66
     *
 
67
     * \param previousValue specifies the value before the change.
 
68
     *
 
69
     * \param newValue specifies the value of the state variable at the time
 
70
     * the event was generated.
 
71
     *
 
72
     * \sa isEmpty()
 
73
     */
 
74
    HStateVariableEvent(
 
75
        const QVariant& previousValue,
 
76
        const QVariant& newValue);
 
77
 
 
78
    /*!
 
79
     * \brief Copy constructor.
 
80
     *
 
81
     * Copies the contents of the \c other to this.
 
82
     */
 
83
    HStateVariableEvent(const HStateVariableEvent&);
 
84
 
 
85
    /*!
 
86
     * \brief Destroys the instance.
 
87
     */
 
88
    ~HStateVariableEvent();
 
89
 
 
90
    /*!
 
91
     * Assigns the contents of the other object to this.
 
92
     *
 
93
     * \return reference to this object.
 
94
     */
 
95
    HStateVariableEvent& operator=(const HStateVariableEvent&);
 
96
 
 
97
    /*!
 
98
     * \brief Indicates if the instance is empty.
 
99
     *
 
100
     * \return \e true if the instance is empty, which means that none of its
 
101
     * attributes contain a valid non-empty value.
 
102
     */
 
103
    bool isEmpty() const;
 
104
 
 
105
    /*!
 
106
     * \brief Returns the previous value of the state variable.
 
107
     *
 
108
     * \return The previous value of the state variable.
 
109
     */
 
110
    QVariant previousValue() const;
 
111
 
 
112
    /*!
 
113
     * \brief Returns the new, changed value of the state variable.
 
114
     *
 
115
     * \return The new, changed value of the state variable.
 
116
     */
 
117
    QVariant newValue() const;
 
118
};
 
119
 
 
120
}
 
121
}
 
122
 
 
123
#endif /* HSTATEVARIABLE_EVENT_H_ */