| @@ -49,6 +49,7 @@ public interface IRequest { | ||
|
|
||
| String LOGIN = "login"; | ||
| String PASSWORD = "password"; | ||
| String EMAIL = "email"; | ||
| } | ||
|
|
||
| public interface IApplyChannel{ | ||
| @@ -4,7 +4,7 @@ | ||
| # dir1.source = mydir | ||
| DEPLOYMENTFOLDERS = # file1 dir1 | ||
|
|
||
| QT += network phonon | ||
|
|
||
| symbian:TARGET.UID3 = 0xE6691141 | ||
|
|
||
| @@ -55,6 +55,7 @@ class MainWidget : public QTabWidget | ||
|
|
||
| public: | ||
| explicit MainWidget(QWidget *parent = 0); | ||
| ~MainWidget(); | ||
|
|
||
| signals: | ||
|
|
||
| @@ -1,34 +1,69 @@ | ||
| #include "inc/LocationManager.h" | ||
| #include <QDebug> | ||
| #include <QStringList> | ||
| #include "defines.h" | ||
|
|
||
| LocationManager::LocationManager(QObject *parent) : | ||
| QObject(parent) | ||
| { | ||
| m_satelliteSource = QGeoPositionInfoSource::createDefaultSource(this); | ||
| qDebug() << "satellite source: " << m_satelliteSource; | ||
| if (m_satelliteSource) { | ||
| connect(m_satelliteSource, SIGNAL(positionUpdated(QGeoPositionInfo)), | ||
| this, SLOT(satellitePositionUpdated(QGeoPositionInfo))); | ||
| m_satelliteSource->setPreferredPositioningMethods( | ||
| QGeoPositionInfoSource::SatellitePositioningMethods); | ||
| m_satelliteSource->startUpdates(); | ||
| } else { | ||
| qDebug() << "Can't get satellite source"; | ||
| } | ||
|
|
||
| m_nonSatelliteSource = QGeoPositionInfoSource::createDefaultSource(this); | ||
| qDebug() << "non satellite source: " << m_nonSatelliteSource; | ||
| if (m_nonSatelliteSource) { | ||
| connect(m_nonSatelliteSource, SIGNAL(positionUpdated(QGeoPositionInfo)), | ||
| this, SLOT(nonSatellitePositionUpdated(QGeoPositionInfo))); | ||
| m_nonSatelliteSource->setPreferredPositioningMethods( | ||
| QGeoPositionInfoSource::NonSatellitePositioningMethods); | ||
| m_nonSatelliteSource->startUpdates(); | ||
| } else { | ||
| qDebug() << "Can't get non satellite source"; | ||
| } | ||
|
|
||
| } | ||
|
|
||
| QGeoPositionInfo LocationManager::getInfo() | ||
| { | ||
| m_infoMutex.lock(); | ||
| QGeoPositionInfo info; | ||
| if (m_satelliteInfo.isValid() && !m_nonSatelliteInfo.isValid()) { | ||
| info = m_satelliteInfo; | ||
| } else if (!m_satelliteInfo.isValid() && m_nonSatelliteInfo.isValid()) { | ||
| info = m_nonSatelliteInfo; | ||
| } else if (m_satelliteInfo.isValid() && m_nonSatelliteInfo.isValid()) { | ||
| if (m_satelliteInfo.timestamp() >= m_nonSatelliteInfo.timestamp().addSecs(-60)) { | ||
| info = m_satelliteInfo; | ||
| } else { | ||
| info = m_nonSatelliteInfo; | ||
| } | ||
| } | ||
| m_infoMutex.unlock(); | ||
| return info; | ||
| } | ||
|
|
||
| void LocationManager::satellitePositionUpdated(const QtMobility::QGeoPositionInfo &info) | ||
| { | ||
| m_infoMutex.lock(); | ||
| m_satelliteInfo = info; | ||
| //qDebug() << "Satellite position updated:" << m_satelliteInfo; | ||
| m_infoMutex.unlock(); | ||
| } | ||
|
|
||
| void LocationManager::nonSatellitePositionUpdated(const QtMobility::QGeoPositionInfo &info) | ||
| { | ||
| m_infoMutex.lock(); | ||
| m_nonSatelliteInfo = info; | ||
| //qDebug() << "Non satellite position updated:" << m_nonSatelliteInfo; | ||
| m_infoMutex.unlock(); | ||
| } | ||
|
|
| @@ -1,3 +1,18 @@ | ||
| [Mail_Settings] | ||
| subject=Geo2tag Registration Confirmation | ||
| body=Hello new user! | ||
|
|
||
| [General_Settings] | ||
| server_url=http://tracks.osll.spb.ru:81/ | ||
| server_port=81 | ||
| geo2tag_version=0.16 | ||
| database_name=geo2tag | ||
| config_file=/usr/share/wikigps/wikigps.conf | ||
|
|
||
| [Registration_Settings] | ||
| tmp_user_timelife=2 days | ||
|
|
||
| [Tracker_Settings] | ||
| tracker_tag_label=tracker's tag | ||
| tracker_msecs_timeout=500 | ||
|
|
| @@ -74,3 +74,4 @@ QVariant SettingsStorage::getValue(const QString &key, const QVariant &defaultVa | ||
| SettingsStorage::~SettingsStorage() | ||
| { | ||
| } | ||
|
|
||
| @@ -0,0 +1,66 @@ | ||
| /* | ||
| * Copyright 2012 bac1ca bac1ca89@gmail.com | ||
| * | ||
| * Redistribution and use in source and binary forms, with or without | ||
| * modification, are permitted provided that the following conditions | ||
| * are met: | ||
| * | ||
| * 1. Redistributions of source code must retain the above copyright | ||
| * notice, this list of conditions and the following disclaimer. | ||
| * 2. Redistributions in binary form must reproduce the above copyright | ||
| * notice, this list of conditions and the following disclaimer in the | ||
| * documentation and/or other materials provided with the distribution. | ||
| * | ||
| * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AS IS'' AND ANY EXPRESS OR | ||
| * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | ||
| * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | ||
| * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
| * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
| * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
| * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
| * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||
| * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| * | ||
| * 3. The name of the author may not be used to endorse or promote | ||
| * products derived from this software without specific prior written | ||
| * permission. | ||
| * | ||
| * The advertising clause requiring mention in adverts must never be included. | ||
| */ | ||
|
|
||
| /*! --------------------------------------------------------------- | ||
| * \file FilterChannelRequestJSON.h | ||
| * \brief Header of FilterChannelRequestJSON | ||
| * \todo add comment here | ||
| * | ||
| * File description | ||
| * | ||
| * PROJ: OSLL/geo2tag | ||
| * ---------------------------------------------------------------- */ | ||
|
|
||
|
|
||
| #ifndef _FilterChannelRequestJSON_H_796EB5EC_74E0_4EA2_A43C_7F6F850122D5_INCLUDED_ | ||
| #define _FilterChannelRequestJSON_H_796EB5EC_74E0_4EA2_A43C_7F6F850122D5_INCLUDED_ | ||
|
|
||
| #include "JsonSerializer.h" | ||
|
|
||
| class FilterChannelRequestJSON: public JsonSerializer | ||
| { | ||
| private: | ||
| QString m_channel; | ||
| int m_amount; | ||
|
|
||
| public: | ||
| FilterChannelRequestJSON(QObject *parent = 0); | ||
|
|
||
| QByteArray getJson() const; | ||
|
|
||
| bool parseJson(const QByteArray&); | ||
|
|
||
| QString getChannelName(); | ||
|
|
||
| int getAmount(); | ||
| }; | ||
|
|
||
| #endif //_FilterChannelRequestJSON_H_796EB5EC_74E0_4EA2_A43C_7F6F850122D5_INCLUDED_ |
| @@ -0,0 +1,64 @@ | ||
| /* | ||
| * Copyright 2012 bac1ca bac1ca89@gmail.com | ||
| * | ||
| * Redistribution and use in source and binary forms, with or without | ||
| * modification, are permitted provided that the following conditions | ||
| * are met: | ||
| * | ||
| * 1. Redistributions of source code must retain the above copyright | ||
| * notice, this list of conditions and the following disclaimer. | ||
| * 2. Redistributions in binary form must reproduce the above copyright | ||
| * notice, this list of conditions and the following disclaimer in the | ||
| * documentation and/or other materials provided with the distribution. | ||
| * | ||
| * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AS IS'' AND ANY EXPRESS OR | ||
| * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | ||
| * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | ||
| * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
| * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
| * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
| * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
| * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||
| * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| * | ||
| * 3. The name of the author may not be used to endorse or promote | ||
| * products derived from this software without specific prior written | ||
| * permission. | ||
| * | ||
| * The advertising clause requiring mention in adverts must never be included. | ||
| */ | ||
|
|
||
| /*! --------------------------------------------------------------- | ||
| * \file FilterChannelResponseJSON.h | ||
| * \brief Header of FilterChannelResponseJSON | ||
| * \todo add comment here | ||
| * | ||
| * File description | ||
| * | ||
| * PROJ: OSLL/geo2tag | ||
| * ---------------------------------------------------------------- */ | ||
|
|
||
|
|
||
| #ifndef _FilterChannelResponseJSON_H_D06843F4_D6CB_4B9E_B538_74F7B2E8D42A_INCLUDED_ | ||
| #define _FilterChannelResponseJSON_H_D06843F4_D6CB_4B9E_B538_74F7B2E8D42A_INCLUDED_ | ||
|
|
||
| #include "JsonSerializer.h" | ||
|
|
||
| class FilterChannelResponseJSON: public JsonSerializer | ||
| { | ||
| private: | ||
| QList<QSharedPointer<DataMark> > m_tags; | ||
| QSharedPointer<Channel> m_channel; | ||
|
|
||
| public: | ||
| FilterChannelResponseJSON(QObject *parent = 0); | ||
|
|
||
| QByteArray getJson() const; | ||
|
|
||
| bool parseJson(const QByteArray&); | ||
|
|
||
| void setData(QSharedPointer<Channel> channel, QList<QSharedPointer<DataMark> > tags); | ||
| }; | ||
|
|
||
| #endif //_FilterChannelResponseJSON_H_D06843F4_D6CB_4B9E_B538_74F7B2E8D42A_INCLUDED_ |
| @@ -0,0 +1,74 @@ | ||
| /* | ||
| * Copyright 2010-2012 OSLL osll@osll.spb.ru | ||
| * | ||
| * Redistribution and use in source and binary forms, with or without | ||
| * modification, are permitted provided that the following conditions | ||
| * are met: | ||
| * | ||
| * 1. Redistributions of source code must retain the above copyright | ||
| * notice, this list of conditions and the following disclaimer. | ||
| * 2. Redistributions in binary form must reproduce the above copyright | ||
| * notice, this list of conditions and the following disclaimer in the | ||
| * documentation and/or other materials provided with the distribution. | ||
| * | ||
| * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | ||
| * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | ||
| * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | ||
| * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
| * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
| * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
| * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
| * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||
| * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| * | ||
| * 3. The name of the author may not be used to endorse or promote | ||
| * products derived from this software without specific prior written | ||
| * permission. | ||
| * | ||
| * The advertising clause requiring mention in adverts must never be included. | ||
| */ | ||
| /*----------------------------------------------------------------- ! | ||
| * PROJ: OSLL/geo2tag | ||
| * ---------------------------------------------------------------- */ | ||
|
|
||
| #include "AddUserRequestJSON.h" | ||
| #include "JsonUser.h" | ||
|
|
||
| #if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_SIMULATOR) | ||
| #include <qjson/parser.h> | ||
| #include <qjson/serializer.h> | ||
| #else | ||
| #include "parser.h" | ||
| #include "serializer.h" | ||
| #endif | ||
|
|
||
| AddUserRequestJSON::AddUserRequestJSON(QObject *parent) : JsonSerializer(parent) | ||
| { | ||
| } | ||
|
|
||
| QByteArray AddUserRequestJSON::getJson() const | ||
| { | ||
| QJson::Serializer serializer; | ||
| QVariantMap obj; | ||
| obj.insert("email", m_usersContainer->at(0)->getEmail()); | ||
| obj.insert("login", m_usersContainer->at(0)->getLogin()); | ||
| obj.insert("password", m_usersContainer->at(0)->getPassword()); | ||
| return serializer.serialize(obj); | ||
| } | ||
|
|
||
| bool AddUserRequestJSON::parseJson(const QByteArray &data) | ||
| { | ||
| clearContainers(); | ||
|
|
||
| QJson::Parser parser; | ||
| bool ok; | ||
| QVariantMap result = parser.parse(data, &ok).toMap(); | ||
| if (!ok) return false; | ||
|
|
||
| QString email = result["email"].toString(); | ||
| QString login = result["login"].toString(); | ||
| QString password = result["password"].toString(); | ||
| m_usersContainer->push_back(QSharedPointer<common::User>(new JsonUser(login, password, "unknown",email))); | ||
| return true; | ||
| } |
| @@ -0,0 +1,91 @@ | ||
| /* | ||
| * Copyright 2012 bac1ca bac1ca89@gmail.com | ||
| * | ||
| * Redistribution and use in source and binary forms, with or without | ||
| * modification, are permitted provided that the following conditions | ||
| * are met: | ||
| * | ||
| * 1. Redistributions of source code must retain the above copyright | ||
| * notice, this list of conditions and the following disclaimer. | ||
| * 2. Redistributions in binary form must reproduce the above copyright | ||
| * notice, this list of conditions and the following disclaimer in the | ||
| * documentation and/or other materials provided with the distribution. | ||
| * | ||
| * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AS IS'' AND ANY EXPRESS OR | ||
| * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | ||
| * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | ||
| * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
| * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
| * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
| * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
| * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||
| * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| * | ||
| * 3. The name of the author may not be used to endorse or promote | ||
| * products derived from this software without specific prior written | ||
| * permission. | ||
| * | ||
| * The advertising clause requiring mention in adverts must never be included. | ||
| */ | ||
|
|
||
| /*! --------------------------------------------------------------- | ||
| * | ||
| * \file FilterChannelRequestJSON.cpp | ||
| * \brief FilterChannelRequestJSON implementation | ||
| * | ||
| * File description | ||
| * | ||
| * PROJ: OSLL/geo2tag | ||
| * ---------------------------------------------------------------- */ | ||
|
|
||
| #include "FilterChannelRequestJSON.h" | ||
|
|
||
| #include "JsonUser.h" | ||
|
|
||
| #if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_SIMULATOR) | ||
| #include <qjson/parser.h> | ||
| #include <qjson/serializer.h> | ||
| #else | ||
| #include "parser.h" | ||
| #include "serializer.h" | ||
| #endif | ||
|
|
||
| FilterChannelRequestJSON::FilterChannelRequestJSON(QObject *parent) : JsonSerializer(parent) | ||
| { | ||
| } | ||
|
|
||
|
|
||
| QByteArray FilterChannelRequestJSON::getJson() const | ||
| { | ||
| // TODO TBD | ||
| return NULL; | ||
| } | ||
|
|
||
|
|
||
| bool FilterChannelRequestJSON::parseJson(const QByteArray&data) | ||
| { | ||
| clearContainers(); | ||
|
|
||
| QJson::Parser parser; | ||
| bool ok; | ||
| QVariantMap result = parser.parse(data, &ok).toMap(); | ||
| if (!ok) return false; | ||
|
|
||
| QString authToken = result["auth_token"].toString(); | ||
| m_usersContainer->push_back(QSharedPointer<common::User>(new JsonUser("none", "none", authToken))); | ||
|
|
||
| m_channel = result["channel"].toString(); | ||
| m_amount = result["amount"].toInt(&ok); | ||
| return ok; | ||
| } | ||
|
|
||
| QString FilterChannelRequestJSON::getChannelName() | ||
| { | ||
| return m_channel; | ||
| } | ||
|
|
||
| int FilterChannelRequestJSON::getAmount() | ||
| { | ||
| return m_amount; | ||
| } |
| @@ -0,0 +1,103 @@ | ||
| /* | ||
| * Copyright 2012 bac1ca bac1ca89@gmail.com | ||
| * | ||
| * Redistribution and use in source and binary forms, with or without | ||
| * modification, are permitted provided that the following conditions | ||
| * are met: | ||
| * | ||
| * 1. Redistributions of source code must retain the above copyright | ||
| * notice, this list of conditions and the following disclaimer. | ||
| * 2. Redistributions in binary form must reproduce the above copyright | ||
| * notice, this list of conditions and the following disclaimer in the | ||
| * documentation and/or other materials provided with the distribution. | ||
| * | ||
| * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AS IS'' AND ANY EXPRESS OR | ||
| * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | ||
| * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | ||
| * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
| * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
| * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
| * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
| * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
| * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||
| * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| * | ||
| * 3. The name of the author may not be used to endorse or promote | ||
| * products derived from this software without specific prior written | ||
| * permission. | ||
| * | ||
| * The advertising clause requiring mention in adverts must never be included. | ||
| */ | ||
|
|
||
| /*! --------------------------------------------------------------- | ||
| * | ||
| * \file FilterChannelResponseJSON.cpp | ||
| * \brief FilterChannelResponseJSON implementation | ||
| * | ||
| * File description | ||
| * | ||
| * PROJ: OSLL/geo2tag | ||
| * ---------------------------------------------------------------- */ | ||
|
|
||
| #include "FilterChannelResponseJSON.h" | ||
|
|
||
| #include "JsonUser.h" | ||
|
|
||
| #if !defined(Q_OS_SYMBIAN) && !defined(Q_WS_SIMULATOR) | ||
| #include <qjson/parser.h> | ||
| #include <qjson/serializer.h> | ||
| #else | ||
| #include "parser.h" | ||
| #include "serializer.h" | ||
| #endif | ||
|
|
||
| FilterChannelResponseJSON::FilterChannelResponseJSON(QObject *parent) : JsonSerializer(parent) | ||
| { | ||
| } | ||
|
|
||
|
|
||
| QByteArray FilterChannelResponseJSON::getJson() const | ||
| { | ||
| QJson::Serializer serializer; | ||
| QVariantMap obj; | ||
|
|
||
| QVariantList jtags; | ||
| QVariantMap jchannel; | ||
| QVariantMap channel; | ||
|
|
||
| for(int i = 0; i < m_tags.size(); i++) | ||
| { | ||
| QSharedPointer<DataMark> tag = m_tags.at(i); | ||
| QVariantMap jtag; | ||
| jtag["id"] = tag->getId(); | ||
| jtag["title"] = tag->getLabel(); | ||
| jtag["link"] = tag->getUrl(); | ||
| jtag["description"] = tag->getDescription(); | ||
| jtag["latitude"] = tag->getLatitude(); | ||
| jtag["longitude"] = tag->getLongitude(); | ||
| jtag["altitude"] = tag->getAltitude(); | ||
| jtag["user"] = tag->getUser()->getLogin(); | ||
| jtag["pubDate"] = tag->getTime().toString("dd MM yyyy HH:mm:ss.zzz"); | ||
| jtags.append(jtag); | ||
| } | ||
| channel["items"] = jtags; | ||
| channel["name"] = m_channel.isNull() ? "" : m_channel->getName(); | ||
|
|
||
| obj["channel"] = channel; | ||
| obj["errno"] = getErrno(); | ||
| return serializer.serialize(obj); | ||
| } | ||
|
|
||
|
|
||
| bool FilterChannelResponseJSON::parseJson(const QByteArray&) | ||
| { | ||
| // TODO TBD | ||
| return false; | ||
| } | ||
|
|
||
| void FilterChannelResponseJSON::setData(QSharedPointer<Channel> channel, | ||
| QList<QSharedPointer<DataMark> > tags) | ||
| { | ||
| m_channel = channel; | ||
| m_tags = tags; | ||
| } |