summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaquel Medina <raquel.medina@konsulko.com>2020-04-21 12:09:13 +0200
committerRaquel Medina <raquel.medina@konsulko.com>2020-04-21 12:09:49 +0200
commit06e1006ceddb0d2d500ad648c141362d5c401ca6 (patch)
tree1a4db0d676142bd27d949a392e0566d500e33ad8
parentb2e12e6acebc9cf69ce800e0900756c123d59262 (diff)
remove deprecated files
Bug-AGL: SPEC-3112 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com> Change-Id: I044a406eb2309d4ae0547969cb2bf33b398ba2ae
-rw-r--r--bluetooth/bluetoothmessage.cpp30
-rw-r--r--bluetooth/bluetoothmessage.h40
-rw-r--r--hvac/hvacmessage.cpp30
-rw-r--r--hvac/hvacmessage.h41
-rw-r--r--map/mapmessage.cpp29
-rw-r--r--map/mapmessage.h39
-rw-r--r--mediaplayer/mediaplayermessage.cpp31
-rw-r--r--mediaplayer/mediaplayermessage.h31
-rw-r--r--navigation/navigationmessage.cpp29
-rw-r--r--navigation/navigationmessage.h41
-rw-r--r--network/networkmessage.cpp29
-rw-r--r--network/networkmessage.h52
-rw-r--r--pbap/pbapmessage.cpp29
-rw-r--r--pbap/pbapmessage.h43
-rw-r--r--radio/radiomessage.cpp42
-rw-r--r--radio/radiomessage.h32
-rw-r--r--signal-composer/signalcomposermessage.cpp29
-rw-r--r--signal-composer/signalcomposermessage.h36
-rw-r--r--telephony/telephonymessage.cpp34
-rw-r--r--telephony/telephonymessage.h38
-rw-r--r--voice-capabilities/guimetadatamessage.cpp30
-rw-r--r--voice-capabilities/guimetadatamessage.h38
-rw-r--r--voice/voicemessage.cpp29
-rw-r--r--voice/voicemessage.h58
-rw-r--r--weather/weathermessage.cpp34
-rw-r--r--weather/weathermessage.h37
26 files changed, 0 insertions, 931 deletions
diff --git a/bluetooth/bluetoothmessage.cpp b/bluetooth/bluetoothmessage.cpp
deleted file mode 100644
index 52ecbed..0000000
--- a/bluetooth/bluetoothmessage.cpp
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Copyright (C) 2018 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.
- */
-
-#include <QDebug>
-#include <QJsonArray>
-#include <QJsonDocument>
-#include <QJsonObject>
-
-#include "bluetoothmessage.h"
-
-bool BluetoothMessage::createRequest(QString verb, QJsonObject parameter)
-{
- if (!verbs.contains(verb))
- return false;
-
- return Message::createRequest("Bluetooth-Manager", verb, parameter);
-}
diff --git a/bluetooth/bluetoothmessage.h b/bluetooth/bluetoothmessage.h
deleted file mode 100644
index a561061..0000000
--- a/bluetooth/bluetoothmessage.h
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright (C) 2018 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_MESSAGE_H
-#define BLUETOOTH_MESSAGE_H
-
-#include "message.h"
-
-class BluetoothMessage : public Message
-{
- Q_OBJECT
- public:
- bool isDeviceChangesEvent() { return (this->eventName() == "device_changes"); };
- bool isAdapterChangesEvent() { return (this->eventName() == "adapter_changes"); };
- bool isAgentEvent() { return (this->eventName() == "agent"); };
- bool createRequest(QString verb, QJsonObject parameter);
-
- private:
- QStringList verbs {
- "connect", "disconnect", "managed_objects",
- "adapter_state", "pair", "cancel_pairing",
- "confirm_pairing", "remove_device", "version",
- "subscribe", "unsubscribe",
- };
-};
-
-#endif // BLUETOOTH_MESSAGE_H
diff --git a/hvac/hvacmessage.cpp b/hvac/hvacmessage.cpp
deleted file mode 100644
index b6e31d7..0000000
--- a/hvac/hvacmessage.cpp
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Copyright (C) 2020 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.
- */
-
-#include <QDebug>
-#include <QJsonArray>
-#include <QJsonDocument>
-#include <QJsonObject>
-
-#include "hvacmessage.h"
-
-bool HVACMessage::createRequest(QString verb, QJsonObject parameter)
-{
- if (!verbs.contains(verb))
- return false;
-
- return Message::createRequest("hvac", verb, parameter);
-}
diff --git a/hvac/hvacmessage.h b/hvac/hvacmessage.h
deleted file mode 100644
index 49058ff..0000000
--- a/hvac/hvacmessage.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Copyright (C) 2020 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 HVAC_MESSAGE_H
-#define HVAC_MESSAGE_H
-
-#include "message.h"
-
-class HVACMessage : public Message
-{
- Q_OBJECT
- public:
- bool createRequest(QString verb, QJsonObject parameter);
- bool isLanguageEvent() {return (this->eventName() == "language"); };
-
- private:
- QStringList verbs {
- "get_fanspeed",
- "get_temp_left_zone",
- "get_temp_right_zone",
- "temp_left_zone_led",
- "temp_right_zone_led",
- "get",
- "set",
- };
-};
-
-#endif // HVAC_MESSAGE_H
diff --git a/map/mapmessage.cpp b/map/mapmessage.cpp
deleted file mode 100644
index 88957bc..0000000
--- a/map/mapmessage.cpp
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright (C) 2019 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.
- */
-
-#include <QJsonArray>
-#include <QJsonDocument>
-#include <QJsonObject>
-
-#include "mapmessage.h"
-
-bool MapMessage::createRequest(QString verb, QJsonObject parameter)
-{
- if (!verbs.contains(verb))
- return false;
-
- return Message::createRequest("bluetooth-map", verb, parameter);
-}
diff --git a/map/mapmessage.h b/map/mapmessage.h
deleted file mode 100644
index 4312519..0000000
--- a/map/mapmessage.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Copyright (C) 2019 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 MAP_MESSAGE_H
-#define MAP_MESSAGE_H
-
-#include "message.h"
-
-class MapMessage : public Message
-{
- Q_OBJECT
- public:
- bool createRequest(QString verb, QJsonObject parameter);
- bool isNotificationEvent() {return (this->eventName() == "notification"); };
-
- private:
- QStringList verbs {
- "compose",
- "message",
- "list_messages",
- "subscribe",
- "unsubscribe",
- };
-};
-
-#endif // MAP_MESSAGE_H
diff --git a/mediaplayer/mediaplayermessage.cpp b/mediaplayer/mediaplayermessage.cpp
deleted file mode 100644
index cda09d2..0000000
--- a/mediaplayer/mediaplayermessage.cpp
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (C) 2018 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.
- */
-
-#include <QDebug>
-#include <QJsonArray>
-#include <QJsonDocument>
-#include <QJsonObject>
-
-#include "mediaplayermessage.h"
-
-bool MediaplayerMessage::createRequest(QString verb, QJsonObject parameter)
-{
- QStringList verbs {"playlist", "metadata", "controls", "subscribe", "unsubscribe"};
- if (!verbs.contains(verb))
- return false;
-
- return Message::createRequest("mediaplayer", verb, parameter);
-}
diff --git a/mediaplayer/mediaplayermessage.h b/mediaplayer/mediaplayermessage.h
deleted file mode 100644
index c164cde..0000000
--- a/mediaplayer/mediaplayermessage.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (C) 2018 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 MEDIAPLAYER_MESSAGE_H
-#define MEDIAPLAYER_MESSAGE_H
-
-#include "message.h"
-
-class MediaplayerMessage : public Message
-{
- Q_OBJECT
- public:
- bool isPlaylistEvent() { return (this->eventName() == "playlist"); };
- bool isMetadataEvent() { return (this->eventName() == "metadata"); };
- bool createRequest(QString verb, QJsonObject parameter);
-};
-
-#endif // MEDIAPLAYER_MESSAGE_H
diff --git a/navigation/navigationmessage.cpp b/navigation/navigationmessage.cpp
deleted file mode 100644
index 363f923..0000000
--- a/navigation/navigationmessage.cpp
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright (C) 2019 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.
- */
-
-#include <QJsonArray>
-#include <QJsonDocument>
-#include <QJsonObject>
-
-#include "navigationmessage.h"
-
-bool NavigationMessage::createRequest(QString verb, QJsonObject parameter)
-{
- if (!verbs.contains(verb))
- return false;
-
- return Message::createRequest("navigation", verb, parameter);
-}
diff --git a/navigation/navigationmessage.h b/navigation/navigationmessage.h
deleted file mode 100644
index 8594f51..0000000
--- a/navigation/navigationmessage.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Copyright (C) 2019 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 NAVIGATION_MESSAGE_H
-#define NAVIGATION_MESSAGE_H
-
-#include "message.h"
-
-class NavigationMessage : public Message
-{
- Q_OBJECT
- public:
- bool createRequest(QString verb, QJsonObject parameter);
- bool isStatusEvent() { return (this->eventName() == "status"); };
- bool isPositionEvent() { return (this->eventName() == "position"); };
- bool isWaypointsEvent() { return (this->eventName() == "waypoints"); };
-
- private:
- QStringList verbs {
- "broadcast_status",
- "broadcast_position",
- "broadcast_waypoints",
- "subscribe",
- "unsubscribe",
- };
-};
-
-#endif // NAVIGATION_MESSAGE_H
diff --git a/network/networkmessage.cpp b/network/networkmessage.cpp
deleted file mode 100644
index 0c15201..0000000
--- a/network/networkmessage.cpp
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright (C) 2018 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.
- */
-
-//#include <QJsonArray>
-//#include <QJsonDocument>
-#include <QJsonObject>
-
-#include "networkmessage.h"
-
-bool NetworkMessage::createRequest(QString verb, QJsonObject parameter)
-{
- if (!verbs.contains(verb))
- return false;
-
- return Message::createRequest("network-manager", verb, parameter);
-}
diff --git a/network/networkmessage.h b/network/networkmessage.h
deleted file mode 100644
index 7b330d2..0000000
--- a/network/networkmessage.h
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Copyright (C) 2018 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 NETWORK_MESSAGE_H
-#define NETWORK_MESSAGE_H
-
-#include "message.h"
-
-class NetworkMessage : public Message
-{
- Q_OBJECT
- public:
- bool createRequest(QString verb, QJsonObject parameter);
- bool isStatusEvent() {return (this->eventName() == "status"); };
- bool connected() { return m_event_data.find("connected").value().toBool(); };
-
- private:
- QStringList verbs {
- "state",
- "offline",
- "technologies",
- "enable_technology",
- "disable_technology",
- "services",
- "scan_services",
- "move_service",
- "remove_service",
- "connect_service",
- "disconnect_service",
- "get_property",
- "set_property",
- "agent_response",
- "reset_counters",
- "subscribe",
- "unsubscribe",
- };
-};
-
-#endif // NETWORK_MESSAGE_H
diff --git a/pbap/pbapmessage.cpp b/pbap/pbapmessage.cpp
deleted file mode 100644
index 751bb9f..0000000
--- a/pbap/pbapmessage.cpp
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright (C) 2018 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.
- */
-
-#include <QJsonArray>
-#include <QJsonDocument>
-#include <QJsonObject>
-
-#include "pbapmessage.h"
-
-bool PbapMessage::createRequest(QString verb, QJsonObject parameter)
-{
- if (!verbs.contains(verb))
- return false;
-
- return Message::createRequest("bluetooth-pbap", verb, parameter);
-}
diff --git a/pbap/pbapmessage.h b/pbap/pbapmessage.h
deleted file mode 100644
index 502879b..0000000
--- a/pbap/pbapmessage.h
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright (C) 2018 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 PBAP_MESSAGE_H
-#define PBAP_MESSAGE_H
-
-#include "message.h"
-
-class PbapMessage : public Message
-{
- Q_OBJECT
- public:
- bool createRequest(QString verb, QJsonObject parameter);
- bool isStatusEvent() {return (this->eventName() == "status"); };
- bool connected() { return m_event_data.find("connected").value().toBool(); };
-
- private:
- QStringList verbs {
- "import",
- "contacts",
- "entry",
- "history",
- "search",
- "status",
- "subscribe",
- "unsubscribe",
- };
-};
-
-#endif // PBAP_MESSAGE_H
diff --git a/radio/radiomessage.cpp b/radio/radiomessage.cpp
deleted file mode 100644
index 2a96a80..0000000
--- a/radio/radiomessage.cpp
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright (C) 2018 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.
- */
-
-#include <QDebug>
-#include <QJsonArray>
-#include <QJsonDocument>
-#include <QJsonObject>
-
-#include "radiomessage.h"
-
-bool RadioMessage::createRequest(QString verb, QJsonObject parameter)
-{
- QStringList verbs {"frequency",
- "band",
- "band_supported",
- "frequency_range",
- "frequency_step",
- "start",
- "stop",
- "scan_start",
- "scan_stop",
- "stereo_mode",
- "subscribe",
- "unsubscribe" };
- if (!verbs.contains(verb))
- return false;
-
- return Message::createRequest("radio", verb, parameter);
-}
diff --git a/radio/radiomessage.h b/radio/radiomessage.h
deleted file mode 100644
index dc6e563..0000000
--- a/radio/radiomessage.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright (C) 2018 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 RADIO_MESSAGE_H
-#define RADIO_MESSAGE_H
-
-#include "message.h"
-
-class RadioMessage : public Message
-{
- Q_OBJECT
- public:
- bool isFrequencyEvent() { return (this->eventName() == "frequency"); };
- bool isStationFoundEvent() { return (this->eventName() == "station_found"); };
- bool isStatusEvent() { return (this->eventName() == "status"); };
- bool createRequest(QString verb, QJsonObject parameter);
-};
-
-#endif // RADIO_MESSAGE_H
diff --git a/signal-composer/signalcomposermessage.cpp b/signal-composer/signalcomposermessage.cpp
deleted file mode 100644
index 69b8d00..0000000
--- a/signal-composer/signalcomposermessage.cpp
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright (C) 2019 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.
- */
-
-#include <QJsonArray>
-#include <QJsonDocument>
-#include <QJsonObject>
-
-#include "signalcomposermessage.h"
-
-bool SignalComposerMessage::createRequest(QString verb, QJsonObject parameter)
-{
- if (!verbs.contains(verb))
- return false;
-
- return Message::createRequest("signal-composer", verb, parameter);
-}
diff --git a/signal-composer/signalcomposermessage.h b/signal-composer/signalcomposermessage.h
deleted file mode 100644
index e5b6892..0000000
--- a/signal-composer/signalcomposermessage.h
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Copyright (C) 2019 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 SIGNALCOMPOSER_MESSAGE_H
-#define SIGNALCOMPOSER_MESSAGE_H
-
-#include "message.h"
-
-class SignalComposerMessage : public Message
-{
- Q_OBJECT
-
- public:
- bool createRequest(QString verb, QJsonObject parameter);
-
- private:
- QStringList verbs {
- "subscribe",
- "unsubscribe",
- };
-};
-
-#endif // SIGNALCOMPOSER_MESSAGE_H
diff --git a/telephony/telephonymessage.cpp b/telephony/telephonymessage.cpp
deleted file mode 100644
index 67128cf..0000000
--- a/telephony/telephonymessage.cpp
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Copyright (C) 2017 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.
- */
-
-#include <QDebug>
-#include <QJsonArray>
-#include <QJsonDocument>
-#include <QJsonObject>
-
-#include "telephonymessage.h"
-
-bool TelephonyMessage::createRequest(QString verb, QString value)
-{
- QStringList verbs {"dial", "answer", "hangup", "subscribe", "unsubscribe"};
- if (!verbs.contains(verb))
- return false;
-
- QJsonObject parameter;
- parameter.insert("value", value);
-
- return Message::createRequest("telephony", verb, parameter);
-}
diff --git a/telephony/telephonymessage.h b/telephony/telephonymessage.h
deleted file mode 100644
index 0225b64..0000000
--- a/telephony/telephonymessage.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright (C) 2017 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 TELEPHONY_MESSAGE_H
-#define TELEPHONY_MESSAGE_H
-
-#include "message.h"
-
-class TelephonyMessage : public Message
-{
- Q_OBJECT
- public:
- bool isCallStateChanged() { return (this->eventName() == "callStateChanged"); };
- bool isDialingCall() { return m_event ? (this->eventName() == "dialingCall") : false; };
- bool isIncomingCall() { return m_event ? (this->eventName() == "incomingCall") : false; };
- bool isTerminatedCall() { return (this->eventName() == "terminatedCall"); };
- bool isOnline() { return (this->eventName() == "online"); };
- QString clip() { return m_event_data.find("clip").value().toString(); };
- QString colp() { return m_event_data.find("colp").value().toString(); };
- QString state() { return m_event_data.find("state").value().toString(); };
- bool connected() { return m_event_data.find("connected").value().toBool(); };
- bool createRequest(QString verb, QString value = "None");
-};
-
-#endif // TELEPHONY_MESSAGE_H
diff --git a/voice-capabilities/guimetadatamessage.cpp b/voice-capabilities/guimetadatamessage.cpp
deleted file mode 100644
index 1613c12..0000000
--- a/voice-capabilities/guimetadatamessage.cpp
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Copyright (C) 2020 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.
- */
-
-#include <QDebug>
-#include <QJsonArray>
-#include <QJsonDocument>
-#include <QJsonObject>
-
-#include "guimetadatamessage.h"
-
-bool GuiMetadataCapabilityMessage::createRequest(QString verb, QJsonObject parameter)
-{
- if (!verbs.contains(verb))
- return false;
-
- return Message::createRequest("vshl-capabilities", verb, parameter);
-}
diff --git a/voice-capabilities/guimetadatamessage.h b/voice-capabilities/guimetadatamessage.h
deleted file mode 100644
index 7f0854f..0000000
--- a/voice-capabilities/guimetadatamessage.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright (C) 2020 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 GUIMETADATA_MESSAGE_H
-#define GUIMETADATA_MESSAGE_H
-
-#include "message.h"
-
-class GuiMetadataCapabilityMessage : public Message
-{
- Q_OBJECT
-public:
- bool isGuiMetadataRenderTemplateEvent() const {
- return (this->eventName() == "render_template"); };
- bool isGuiMetadataClearTemplateEvent() const {
- return (this->eventName() == "clear_template"); };
- bool createRequest(QString verb, QJsonObject parameter);
-
-private:
- QStringList verbs {
- "guimetadata/subscribe",
- };
-};
-
-#endif // GUIMETADATA_MESSAGE_H
diff --git a/voice/voicemessage.cpp b/voice/voicemessage.cpp
deleted file mode 100644
index 6e5c634..0000000
--- a/voice/voicemessage.cpp
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright (C) 2019 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.
- */
-
-#include <QDebug>
-#include <QJsonArray>
-#include <QJsonDocument>
-#include <QJsonObject>
-
-#include "voicemessage.h"
-
-bool VoiceMessage::createRequest(QString verb, QJsonObject parameter)
-{
- if (!verbs.contains(verb))
- return false;
- return Message::createRequest("vshl-core", verb, parameter);
-}
diff --git a/voice/voicemessage.h b/voice/voicemessage.h
deleted file mode 100644
index f7dd9d8..0000000
--- a/voice/voicemessage.h
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * Copyright (C) 2019 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 VOICE_MESSAGE_H
-#define VOICE_MESSAGE_H
-
-#include "message.h"
-
-class VoiceMessage : public Message
-{
- Q_OBJECT
- public:
- virtual ~VoiceMessage() {};
-
- bool isAuthStateEvent() const {
- return (this->eventName().contains("voice_authstate_event")); };
- bool isConnectionStateEvent() const {
- return (this->eventName().contains("voice_connectionstate_event")); };
- bool isDialogStateEvent() const {
- return (this->eventName().contains("voice_dialogstate_event")); };
- bool isCblEvent() const {
- return (this->eventName().contains("cbl")); };
- bool createRequest(QString verb, QJsonObject parameter);
-
- private:
- QStringList verbs {
- "startListening",
- "cancelListening",
- "subscribe",
- "unsubscribe",
- "enumerateVoiceAgents",
- "setDefaultVoiceAgent",
- "subscribeToLoginEvents",
- };
- QStringList events {
- "voice_authstate_event",
- "voice_dialogstate_event",
- "voice_connectionstate_event",
- "voice_cbl_codepair_received_event",
- "voice_cbl_codepair_expired_event",
- };
-};
-
-
-#endif // VOICE_MESSAGE_H
diff --git a/weather/weathermessage.cpp b/weather/weathermessage.cpp
deleted file mode 100644
index 6b4aa3c..0000000
--- a/weather/weathermessage.cpp
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Copyright (C) 2018 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.
- */
-
-#include <QDebug>
-#include <QJsonArray>
-#include <QJsonDocument>
-#include <QJsonObject>
-
-#include "weathermessage.h"
-
-bool WeatherMessage::createRequest(QString verb, QString value)
-{
- QStringList verbs {"current_weather", "subscribe", "unsubscribe"};
- if (!verbs.contains(verb))
- return false;
-
- QJsonObject parameter;
- parameter.insert("value", value);
-
- return Message::createRequest("weather", verb, parameter);
-}
diff --git a/weather/weathermessage.h b/weather/weathermessage.h
deleted file mode 100644
index e1d4dac..0000000
--- a/weather/weathermessage.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Copyright (C) 2018 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 WEATHER_MESSAGE_H
-#define WEATHER_MESSAGE_H
-
-#include <QJsonArray>
-#include <QJsonObject>
-#include "message.h"
-
-class WeatherMessage : public Message
-{
- Q_OBJECT
- public:
- bool createRequest(QString verb, QString value = "None");
- QString condition() {
- return m_event_data.value("weather").toArray().at(0).toObject().value("description").toString();
- };
- QString temperature() {
- return QString::number(m_event_data.value("main").toObject().value("temp").toDouble());
- };
-};
-
-#endif // WEATHER_MESSAGE_H