2 * Copyright (C) 2016 by Scott Murray <scott.murray@konsulko.com>
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef PRESETDATAOBJECT_H
18 #define PRESETDATAOBJECT_H
22 class PresetDataObject : public QObject
26 Q_PROPERTY(QString title READ title WRITE setTitle NOTIFY titleChanged)
27 Q_PROPERTY(quint32 frequency READ frequency WRITE setFrequency NOTIFY frequencyChanged)
28 Q_PROPERTY(quint32 band READ band WRITE setBand NOTIFY bandChanged)
31 PresetDataObject(QObject *parent = Q_NULLPTR);
32 PresetDataObject(const QString &title, const quint32 &frequency, const quint32 &band, QObject *parent = Q_NULLPTR);
34 QString title() const;
36 void setTitle(const QString &title);
38 quint32 frequency() const;
40 void setFrequency(const quint32 &frequency);
44 void setBand(const quint32 &band);
48 void frequencyChanged();
57 #endif // PRESETDATAOBJECT_H