diff options
Diffstat (limited to 'bluetooth/bluetoothmodel.h')
-rw-r--r-- | bluetooth/bluetoothmodel.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/bluetooth/bluetoothmodel.h b/bluetooth/bluetoothmodel.h index 0fc07aa..a060ad8 100644 --- a/bluetooth/bluetoothmodel.h +++ b/bluetooth/bluetoothmodel.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2019,2021 Konsulko Group + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #ifndef BLUETOOTH_MODEL_H #define BLUETOOTH_MODEL_H @@ -5,7 +21,7 @@ #include <QSortFilterProxyModel> #include <QStringList> #include <QtQml/QQmlContext> -#include <QJsonObject> +#include <glib.h> class BluetoothDevice { @@ -53,7 +69,7 @@ class BluetoothModel : public QAbstractListModel void removeDevice(BluetoothDevice *device); void removeAllDevices(); BluetoothDevice *getDevice(QString address); - BluetoothDevice *updateDeviceProperties(BluetoothDevice *device, QJsonObject data); + BluetoothDevice *updateDeviceProperties(BluetoothDevice *device, const gchar *dev_str, GVariant *properties); int rowCount(const QModelIndex &parent = QModelIndex()) const; QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; |