[-]
[+]
|
Changed |
_service:tar_git:harbour-twablet.spec
|
|
[-]
[+]
|
Changed |
_service
^
|
@@ -6,7 +6,7 @@
<service name="tar_git">
<param name="url">https://github.com/SfietKonstantin/harbour-twablet.git</param>
<param name="branch">master</param>
- <param name="revision">31b3f7b365b899a8d92050d4cb8dcd2d5436310b</param>
+ <param name="revision">1a69b53ea83d8075acdc9ce6b5b226ea5ec15423</param>
<param name="token"/>
<param name="debian">N</param>
<param name="dumb">N</param>
|
[-]
[+]
|
Deleted |
_service:tar_git:harbour-twablet-0.6.4.tar.bz2/src/lib/userlistqueryhandler.cpp
^
|
@@ -1,92 +0,0 @@
-/*
- * Copyright (C) 2014 Lucien XU <sfietkonstantin@free.fr>
- *
- * You may use this file under the terms of the BSD license as follows:
- *
- * "Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * 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.
- * * The names of its contributors may not be used to endorse or promote
- * products derived from this software without specific prior written
- * permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "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 COPYRIGHT
- * OWNER OR CONTRIBUTORS 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."
- */
-
-#include "userlistqueryhandler.h"
-#include <QtCore/QJsonDocument>
-#include <QtCore/QJsonArray>
-#include <QtCore/QUrl>
-#include "private/listqueryhandlerutil.h"
-
-UserListQueryHandler::UserListQueryHandler()
-{
-}
-
-IListQueryHandler<User>::Ptr UserListQueryHandler::create()
-{
- return Ptr(new UserListQueryHandler());
-}
-
-Query::Parameters UserListQueryHandler::additionalParameters(RequestType requestType) const
-{
- Q_UNUSED(requestType);
- Query::Parameters returned {};
-
- switch (requestType) {
- case Refresh:
- Q_ASSERT_X(false, "UserListQueryHandler", "Refreshed is not implemented for User");
- break;
- case LoadMore:
- if (!m_nextCursor.isEmpty()) {
- returned.emplace("cursor", QUrl::toPercentEncoding(m_nextCursor));
- }
- break;
- }
- return returned;
-}
-
-bool UserListQueryHandler::treatReply(RequestType requestType, const QByteArray &data,
- std::vector<User> &items, QString &errorMessage,
- Placement &placement)
-{
- Q_ASSERT_X(requestType == LoadMore, "UserListQueryHandler", "Refreshed is not implemented for User");
- QJsonParseError error {-1, QJsonParseError::NoError};
- QJsonDocument document {QJsonDocument::fromJson(data, &error)};
- if (error.error != QJsonParseError::NoError) {
- errorMessage = error.errorString();
- placement = Discard;
- return false;
- }
-
- const QJsonObject &root (document.object());
- const QJsonArray &users (root.value(QLatin1String("users")).toArray());
- items.reserve(users.size());
- for (const QJsonValue &user : users) {
- if (user.isObject()) {
- items.emplace_back(user.toObject());
- }
- }
-
- if (!items.empty()) {
- m_nextCursor = QString::number(root.value(QLatin1String("next_cursor")).toInt());
- placement = Append;
- }
- return true;
-}
|
[-]
[+]
|
Added |
_service:tar_git:harbour-twablet-0.6.5.tar.bz2/src/bin/qml/pages/ListPage.qml
^
|
@@ -0,0 +1,6 @@
+import QtQuick 2.0
+
+Item {
+
+}
+
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-twablet-0.6.5.tar.bz2/src/bin/qml/pages/MainPage.qml
^
|
@@ -145,7 +145,7 @@
title: model.name
query: model.layout.query
onHandleLink: {
- LH.handleLink(url, panel, model.layout.userId, Info.Clear)
+ LH.handleLink(url, panel, model.layout.accountUserId, Info.Clear)
}
onOpenTweet: {
panel.openTweet(tweetId, retweetId, model.layout.accountUserId, Info.Clear)
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-twablet-0.6.5.tar.bz2/src/bin/qml/pages/RightPanel.qml
^
|
@@ -135,10 +135,6 @@
}
function _open(page, args, pushMode) {
- for (var key in args) {
- console.debug(key, args[key])
- }
-
if (typeof(pushMode) === 'undefined') {
pushMode = Info.Push
}
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-twablet-0.6.5.tar.bz2/src/bin/qml/pages/UserPage.qml
^
|
@@ -224,7 +224,7 @@
}
PullDownMenu {
- visible: queryItem.status === QueryItem.Idle
+ visible: queryItem.status === QueryItem.Idle && container.userId !== container.accountUserId
MenuItem {
text: queryItem.item ? (queryItem.item.following ? qsTr("Unfollow @%1").arg(queryItem.item.screenName)
: qsTr("Follow @%1").arg(queryItem.item.screenName))
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-twablet-0.6.5.tar.bz2/src/lib/irepositoryqueryhandler.h
^
|
(renamed from src/lib/ilistqueryhandler.h)
|
[-]
[+]
|
Added |
_service:tar_git:harbour-twablet-0.6.5.tar.bz2/src/lib/list.cpp
^
|
@@ -0,0 +1,38 @@
+/*
+ * Copyright (C) 2014 Lucien XU <sfietkonstantin@free.fr>
+ *
+ * You may use this file under the terms of the BSD license as follows:
+ *
+ * "Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * 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.
+ * * The names of its contributors may not be used to endorse or promote
+ * products derived from this software without specific prior written
+ * permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "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 COPYRIGHT
+ * OWNER OR CONTRIBUTORS 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."
+ */
+
+#include "list.h"
+
+List::List()
+{
+
+}
+
|
[-]
[+]
|
Added |
_service:tar_git:harbour-twablet-0.6.5.tar.bz2/src/lib/list.h
^
|
@@ -0,0 +1,42 @@
+/*
+ * Copyright (C) 2014 Lucien XU <sfietkonstantin@free.fr>
+ *
+ * You may use this file under the terms of the BSD license as follows:
+ *
+ * "Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * 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.
+ * * The names of its contributors may not be used to endorse or promote
+ * products derived from this software without specific prior written
+ * permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "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 COPYRIGHT
+ * OWNER OR CONTRIBUTORS 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."
+ */
+
+#ifndef LIST_H
+#define LIST_H
+
+
+class List
+{
+public:
+ List();
+};
+
+#endif // LIST_H
|
[-]
[+]
|
Added |
_service:tar_git:harbour-twablet-0.6.5.tar.bz2/src/lib/listrepository.h
^
|
@@ -0,0 +1,36 @@
+/*
+ * Copyright (C) 2014 Lucien XU <sfietkonstantin@free.fr>
+ *
+ * You may use this file under the terms of the BSD license as follows:
+ *
+ * "Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * 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.
+ * * The names of its contributors may not be used to endorse or promote
+ * products derived from this software without specific prior written
+ * permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "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 COPYRIGHT
+ * OWNER OR CONTRIBUTORS 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."
+ */
+
+#ifndef LISTREPOSITORY_H
+#define LISTREPOSITORY_H
+
+#endif // LISTREPOSITORY_H
+
|
[-]
[+]
|
Added |
_service:tar_git:harbour-twablet-0.6.5.tar.bz2/src/lib/listrepositorycontainer.cpp
^
|
@@ -0,0 +1,38 @@
+/*
+ * Copyright (C) 2014 Lucien XU <sfietkonstantin@free.fr>
+ *
+ * You may use this file under the terms of the BSD license as follows:
+ *
+ * "Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * 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.
+ * * The names of its contributors may not be used to endorse or promote
+ * products derived from this software without specific prior written
+ * permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "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 COPYRIGHT
+ * OWNER OR CONTRIBUTORS 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."
+ */
+
+#include "listquerycontainer.h"
+
+ListQueryContainer::ListQueryContainer()
+{
+
+}
+
|
[-]
[+]
|
Added |
_service:tar_git:harbour-twablet-0.6.5.tar.bz2/src/lib/listrepositorycontainer.h
^
|
@@ -0,0 +1,42 @@
+/*
+ * Copyright (C) 2014 Lucien XU <sfietkonstantin@free.fr>
+ *
+ * You may use this file under the terms of the BSD license as follows:
+ *
+ * "Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * 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.
+ * * The names of its contributors may not be used to endorse or promote
+ * products derived from this software without specific prior written
+ * permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "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 COPYRIGHT
+ * OWNER OR CONTRIBUTORS 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."
+ */
+
+#ifndef LISTQUERYCONTAINER_H
+#define LISTQUERYCONTAINER_H
+
+
+class ListQueryContainer
+{
+public:
+ ListQueryContainer();
+};
+
+#endif // LISTQUERYCONTAINER_H
|
[-]
[+]
|
Added |
_service:tar_git:harbour-twablet-0.6.5.tar.bz2/src/lib/listrepositoryqueryhandler.cpp
^
|
@@ -0,0 +1,38 @@
+/*
+ * Copyright (C) 2015 Lucien XU <sfietkonstantin@free.fr>
+ *
+ * You may use this file under the terms of the BSD license as follows:
+ *
+ * "Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * 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.
+ * * The names of its contributors may not be used to endorse or promote
+ * products derived from this software without specific prior written
+ * permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "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 COPYRIGHT
+ * OWNER OR CONTRIBUTORS 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."
+ */
+
+#include "listrepositoryqueryhandler.h"
+
+ListRepositoryQueryHandler::ListRepositoryQueryHandler()
+{
+
+}
+
|
[-]
[+]
|
Added |
_service:tar_git:harbour-twablet-0.6.5.tar.bz2/src/lib/listrepositoryqueryhandler.h
^
|
@@ -0,0 +1,42 @@
+/*
+ * Copyright (C) 2015 Lucien XU <sfietkonstantin@free.fr>
+ *
+ * You may use this file under the terms of the BSD license as follows:
+ *
+ * "Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * 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.
+ * * The names of its contributors may not be used to endorse or promote
+ * products derived from this software without specific prior written
+ * permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "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 COPYRIGHT
+ * OWNER OR CONTRIBUTORS 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."
+ */
+
+#ifndef LISTREPOSITORYQUERYHANDLER_H
+#define LISTREPOSITORYQUERYHANDLER_H
+
+
+class ListRepositoryQueryHandler
+{
+public:
+ ListRepositoryQueryHandler();
+};
+
+#endif // LISTREPOSITORYQUERYHANDLER_H
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-twablet-0.6.5.tar.bz2/src/lib/private/repositoryquerycallback.h
^
|
(renamed from src/lib/private/listquerycallback.h)
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-twablet-0.6.5.tar.bz2/src/lib/private/repositoryqueryhandlerutil.cpp
^
|
(renamed from src/lib/private/listqueryhandlerutil.cpp)
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-twablet-0.6.5.tar.bz2/src/lib/private/repositoryqueryhandlerutil.h
^
|
(renamed from src/lib/private/listqueryhandlerutil.h)
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-twablet-0.6.5.tar.bz2/src/lib/qml/entitiesformatter.cpp
^
|
@@ -140,7 +140,7 @@
// Use HTML escaped to provide correct formatting for styled Label
QString escapedString {input};
escapedString.replace(QLatin1String{"<"}, QLatin1String{"<"});
- escapedString.replace(QLatin1String{"&rt;"}, QLatin1String{">"});
+ escapedString.replace(QLatin1String{">"}, QLatin1String{">"});
escapedString.replace(QLatin1String{"&"}, QLatin1String{"&"});
escapedString = escapedString.toHtmlEscaped();
|
[-]
[+]
|
Added |
_service:tar_git:harbour-twablet-0.6.5.tar.bz2/src/lib/qml/ilistrepositorycontainerobject.h
^
|
@@ -0,0 +1,36 @@
+/*
+ * Copyright (C) 2015 Lucien XU <sfietkonstantin@free.fr>
+ *
+ * You may use this file under the terms of the BSD license as follows:
+ *
+ * "Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * 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.
+ * * The names of its contributors may not be used to endorse or promote
+ * products derived from this software without specific prior written
+ * permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "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 COPYRIGHT
+ * OWNER OR CONTRIBUTORS 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."
+ */
+
+#ifndef ILISTREPOSITORYCONTAINEROBJECT
+#define ILISTREPOSITORYCONTAINEROBJECT
+
+#endif // ILISTREPOSITORYCONTAINEROBJECT
+
|
[-]
[+]
|
Added |
_service:tar_git:harbour-twablet-0.6.5.tar.bz2/src/lib/qml/listmodel.cpp
^
|
@@ -0,0 +1,38 @@
+/*
+ * Copyright (C) 2015 Lucien XU <sfietkonstantin@free.fr>
+ *
+ * You may use this file under the terms of the BSD license as follows:
+ *
+ * "Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * 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.
+ * * The names of its contributors may not be used to endorse or promote
+ * products derived from this software without specific prior written
+ * permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "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 COPYRIGHT
+ * OWNER OR CONTRIBUTORS 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."
+ */
+
+#include "listmodel.h"
+
+ListModel::ListModel()
+{
+
+}
+
|
[-]
[+]
|
Added |
_service:tar_git:harbour-twablet-0.6.5.tar.bz2/src/lib/qml/listmodel.h
^
|
@@ -0,0 +1,42 @@
+/*
+ * Copyright (C) 2015 Lucien XU <sfietkonstantin@free.fr>
+ *
+ * You may use this file under the terms of the BSD license as follows:
+ *
+ * "Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * 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.
+ * * The names of its contributors may not be used to endorse or promote
+ * products derived from this software without specific prior written
+ * permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "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 COPYRIGHT
+ * OWNER OR CONTRIBUTORS 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."
+ */
+
+#ifndef LISTMODEL_H
+#define LISTMODEL_H
+
+
+class ListModel
+{
+public:
+ ListModel();
+};
+
+#endif // LISTMODEL_H
|
[-]
[+]
|
Added |
_service:tar_git:harbour-twablet-0.6.5.tar.bz2/src/lib/qml/listmodelqueryobject.cpp
^
|
@@ -0,0 +1,38 @@
+/*
+ * Copyright (C) 2015 Lucien XU <sfietkonstantin@free.fr>
+ *
+ * You may use this file under the terms of the BSD license as follows:
+ *
+ * "Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * 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.
+ * * The names of its contributors may not be used to endorse or promote
+ * products derived from this software without specific prior written
+ * permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "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 COPYRIGHT
+ * OWNER OR CONTRIBUTORS 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."
+ */
+
+#include "listmodelqueryobject.h"
+
+ListModelQueryObject::ListModelQueryObject()
+{
+
+}
+
|
[-]
[+]
|
Added |
_service:tar_git:harbour-twablet-0.6.5.tar.bz2/src/lib/qml/listmodelqueryobject.h
^
|
@@ -0,0 +1,42 @@
+/*
+ * Copyright (C) 2015 Lucien XU <sfietkonstantin@free.fr>
+ *
+ * You may use this file under the terms of the BSD license as follows:
+ *
+ * "Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * 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.
+ * * The names of its contributors may not be used to endorse or promote
+ * products derived from this software without specific prior written
+ * permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "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 COPYRIGHT
+ * OWNER OR CONTRIBUTORS 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."
+ */
+
+#ifndef LISTMODELQUERYOBJECT_H
+#define LISTMODELQUERYOBJECT_H
+
+
+class ListModelQueryObject
+{
+public:
+ ListModelQueryObject();
+};
+
+#endif // LISTMODELQUERYOBJECT_H
|
[-]
[+]
|
Added |
_service:tar_git:harbour-twablet-0.6.5.tar.bz2/src/lib/qml/listobject.cpp
^
|
@@ -0,0 +1,38 @@
+/*
+ * Copyright (C) 2014 Lucien XU <sfietkonstantin@free.fr>
+ *
+ * You may use this file under the terms of the BSD license as follows:
+ *
+ * "Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * 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.
+ * * The names of its contributors may not be used to endorse or promote
+ * products derived from this software without specific prior written
+ * permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "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 COPYRIGHT
+ * OWNER OR CONTRIBUTORS 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."
+ */
+
+#include "listobject.h"
+
+ListObject::ListObject()
+{
+
+}
+
|
[-]
[+]
|
Added |
_service:tar_git:harbour-twablet-0.6.5.tar.bz2/src/lib/qml/listobject.h
^
|
@@ -0,0 +1,42 @@
+/*
+ * Copyright (C) 2014 Lucien XU <sfietkonstantin@free.fr>
+ *
+ * You may use this file under the terms of the BSD license as follows:
+ *
+ * "Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * 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.
+ * * The names of its contributors may not be used to endorse or promote
+ * products derived from this software without specific prior written
+ * permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "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 COPYRIGHT
+ * OWNER OR CONTRIBUTORS 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."
+ */
+
+#ifndef LISTOBJECT_H
+#define LISTOBJECT_H
+
+
+class ListObject
+{
+public:
+ ListObject();
+};
+
+#endif // LISTOBJECT_H
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-twablet-0.6.5.tar.bz2/src/lib/qml/usermodelquerywrapperobject.cpp
^
|
(renamed from src/lib/qml/userlistquerywrapperobject.cpp)
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-twablet-0.6.5.tar.bz2/src/lib/qml/usermodelquerywrapperobject.h
^
|
(renamed from src/lib/qml/userlistquerywrapperobject.h)
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-twablet-0.6.5.tar.bz2/src/lib/repositoryqueryhandlerfactory.cpp
^
|
(renamed from src/lib/listqueryhandlerfactory.cpp)
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-twablet-0.6.5.tar.bz2/src/lib/repositoryqueryhandlerfactory.h
^
|
(renamed from src/lib/listqueryhandlerfactory.h)
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-twablet-0.6.5.tar.bz2/src/lib/tweetrepositoryqueryhandler.cpp
^
|
(renamed from src/lib/tweetlistqueryhandler.cpp)
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-twablet-0.6.5.tar.bz2/src/lib/tweetrepositoryqueryhandler.h
^
|
(renamed from src/lib/tweetlistqueryhandler.h)
|
[-]
[+]
|
Added |
_service:tar_git:harbour-twablet-0.6.5.tar.bz2/src/lib/userrepositoryqueryhandler.cpp
^
|
@@ -0,0 +1,92 @@
+/*
+ * Copyright (C) 2014 Lucien XU <sfietkonstantin@free.fr>
+ *
+ * You may use this file under the terms of the BSD license as follows:
+ *
+ * "Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * 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.
+ * * The names of its contributors may not be used to endorse or promote
+ * products derived from this software without specific prior written
+ * permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "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 COPYRIGHT
+ * OWNER OR CONTRIBUTORS 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."
+ */
+
+#include "userlistqueryhandler.h"
+#include <QtCore/QJsonDocument>
+#include <QtCore/QJsonArray>
+#include <QtCore/QUrl>
+#include "private/listqueryhandlerutil.h"
+
+UserListQueryHandler::UserListQueryHandler()
+{
+}
+
+IListQueryHandler<User>::Ptr UserListQueryHandler::create()
+{
+ return Ptr(new UserListQueryHandler());
+}
+
+Query::Parameters UserListQueryHandler::additionalParameters(RequestType requestType) const
+{
+ Q_UNUSED(requestType);
+ Query::Parameters returned {};
+
+ switch (requestType) {
+ case Refresh:
+ Q_ASSERT_X(false, "UserListQueryHandler", "Refreshed is not implemented for User");
+ break;
+ case LoadMore:
+ if (!m_nextCursor.isEmpty()) {
+ returned.emplace("cursor", QUrl::toPercentEncoding(m_nextCursor));
+ }
+ break;
+ }
+ return returned;
+}
+
+bool UserListQueryHandler::treatReply(RequestType requestType, const QByteArray &data,
+ std::vector<User> &items, QString &errorMessage,
+ Placement &placement)
+{
+ Q_ASSERT_X(requestType == LoadMore, "UserListQueryHandler", "Refreshed is not implemented for User");
+ QJsonParseError error {-1, QJsonParseError::NoError};
+ QJsonDocument document {QJsonDocument::fromJson(data, &error)};
+ if (error.error != QJsonParseError::NoError) {
+ errorMessage = error.errorString();
+ placement = Discard;
+ return false;
+ }
+
+ const QJsonObject &root (document.object());
+ const QJsonArray &users (root.value(QLatin1String("users")).toArray());
+ items.reserve(users.size());
+ for (const QJsonValue &user : users) {
+ if (user.isObject()) {
+ items.emplace_back(user.toObject());
+ }
+ }
+
+ if (!items.empty()) {
+ m_nextCursor = root.value(QLatin1String("next_cursor_str")).toString();
+ placement = Append;
+ }
+ return true;
+}
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-twablet-0.6.5.tar.bz2/src/lib/userrepositoryqueryhandler.h
^
|
(renamed from src/lib/userlistqueryhandler.h)
|