This commit is contained in:
LubuWest 2019-01-09 22:03:16 +01:00
commit 63dfb9b197
70 changed files with 2829 additions and 1056 deletions

View file

@ -0,0 +1,60 @@
// This file is part of Friendiqa
// https://git.friendi.ca/lubuwest/Friendiqa
// Copyright (C) 2017 Marco R. <thomasschmidt45@gmx.net>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// In addition, as a special exception, the copyright holders give
// permission to link the code of portions of this program with the
// OpenSSL library under certain conditions as described in each
// individual source file, and distribute linked combinations including
// the two.
//
// You must obey the GNU General Public License in all respects for all
// of the code used other than OpenSSL. If you modify file(s) with this
// exception, you may extend this exception to your version of the
// file(s), but you are not obligated to do so. If you do not wish to do
// so, delete this exception statement from your version. If you delete
// this exception statement from all source files in the program, then
// also delete it here.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef ALARM_H
#define ALARM_H
#include <QObject>
class ALARM : public QObject
{
Q_OBJECT
//Q_PROPERTY(int alarmtime READ alarmtime WRITE setAlarm NOTIFY alarmChanged)
public:
static ALARM *instance();
explicit ALARM(QObject *parent = 0);
//int alarmtime() const;
signals:
void alarmChanged(QString url);
public slots:
void setAlarm(int time);
private:
int m_time;
};
#endif // UPDATENEWS_H

View file

@ -0,0 +1,76 @@
// This file is part of Friendiqa
// https://git.friendi.ca/lubuwest/Friendiqa
// Copyright (C) 2017 Marco R. <thomasschmidt45@gmx.net>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// In addition, as a special exception, the copyright holders give
// permission to link the code of portions of this program with the
// OpenSSL library under certain conditions as described in each
// individual source file, and distribute linked combinations including
// the two.
//
// You must obey the GNU General Public License in all respects for all
// of the code used other than OpenSSL. If you modify file(s) with this
// exception, you may extend this exception to your version of the
// file(s), but you are not obligated to do so. If you do not wish to do
// so, delete this exception statement from your version. If you delete
// this exception statement from all source files in the program, then
// also delete it here.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//#include <QtAndroidExtras/QAndroidJniObject>
//#include <QtAndroidExtras/QAndroidJniEnvironment>
#include "alarm.h"
#include <QtCore/QDebug>
ALARM *ALARM::instance()
{
static ALARM alarm;
return &alarm;
}
ALARM::ALARM(QObject *parent) : QObject(parent){}
void ALARM::setAlarm(int interval)
{
qDebug() << interval;
// auto activity = QtAndroid::androidActivity();
// auto packageManager = activity.callObjectMethod("getPackageManager",
// "()Landroid/content/pm/PackageManager;");
// auto activityIntent = packageManager.callObjectMethod("getLaunchIntentForPackage",
// "(Ljava/lang/String;)Landroid/content/Intent;",
// activity.callObjectMethod("getPackageName",
// "()Ljava/lang/String;").object());
// auto pendingIntent = QAndroidJniObject::callStaticObjectMethod("android/app/PendingIntent", "getActivity",
// "(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;",
// activity.object(), jint(0), activityIntent.object(),
// QAndroidJniObject::getStaticField<jint>("android/content/Intent",
// "FLAG_ACTIVITY_CLEAR_TOP"));
// auto alarmManager = activity.callObjectMethod("getSystemService",
// "(Ljava/lang/String;)Ljava/lang/Object;",
// QAndroidJniObject::getStaticObjectField("android/content/Context",
// "ALARM_SERVICE",
// "Ljava/lang/String;").object());
// alarmManager.callMethod<void>("set",
// "(IJLandroid/app/PendingIntent;)V",
// QAndroidJniObject::getStaticField<jint>("android/app/AlarmManager", "RTC"),
// jlong(QDateTime::currentMSecsSinceEpoch() + 100), pendingIntent.object());
}

View file

@ -68,12 +68,12 @@ int main(int argc, char *argv[]) {
view.rootContext()->setContextProperty("remoteauth", imageProvider);
auto offlineStoragePath=QUrl::fromLocalFile(view.engine()->offlineStorageDatabaseFilePath("Friendiqa"));
view.rootContext()->setContextProperty("offlineStoragePath", offlineStoragePath);
XHR* xhr = XHR::instance();
view.rootContext()->setContextProperty("xhr", xhr);
// XHR* xhr = XHR::instance();
// view.rootContext()->setContextProperty("xhr", xhr);
FILESYSTEM* filesystem = FILESYSTEM::instance();
view.rootContext()->setContextProperty("filesystem", filesystem);
// UPDATENEWS* updatenews = UPDATENEWS::instance();
// view.rootContext()->setContextProperty("updatenews", updatenews);
UPDATENEWS* updatenews = UPDATENEWS::instance();
view.rootContext()->setContextProperty("updatenews", updatenews);
view.setSource(QUrl("qrc:/qml/friendiqa.qml"));
view.show();
view.connect(view.rootContext()->engine(), SIGNAL(quit()), &app, SLOT(quit()));

View file

@ -1,4 +1,4 @@
// This file is part of Friendiqa
// This file is part of Friendiqa
// https://git.friendi.ca/lubuwest/Friendiqa
// Copyright (C) 2017 Marco R. <thomasschmidt45@gmx.net>
//
@ -45,7 +45,7 @@
#include <QSqlDatabase>
#include <QSqlError>
#include <QDateTime>
#include "xhr.h"
//#include "xhr.h"
UPDATENEWS *UPDATENEWS::instance()
@ -63,6 +63,7 @@ void UPDATENEWS::setUrl(QString url)
{
if (url!=m_url) {
m_url = url;
xhr.setUrl(url);
emit urlChanged(m_url);
}
}
@ -89,24 +90,26 @@ void UPDATENEWS::setDatabase()
void UPDATENEWS::login()
{
qDebug() << "login";
QSqlQuery query("SELECT * FROM config WHERE isActive=0",m_db);
qDebug() <<"size "<< query.size();
while (query.next())
{
username = query.value(1).toString();
QByteArray bpassword=query.value(2).toByteArray();
QString password=QByteArray::fromBase64(bpassword);
m_login=username+":"+password ;
//emit this->loginChanged(m_login);
xhr.setLogin(m_login);
m_url=query.value(0).toString();
xhr.setUrl(m_url);
m_imagedir=query.value(3).toString();
xhr.setImagedir(m_imagedir);
QString isActive=query.value(7).toString();
qDebug() << " username " << username<< password << m_url << isActive;
//UPDATENEWS::connect(&UPDATENEWS::getLogin,SIGNAL(loginChanged(QString)),this,SLOT(XHR::login(QString)));
updateInterval=query.value(5).toInt();
//UPDATENEWS::connect(&UPDATENEWS::getLogin,SIGNAL(loginChanged(QString)),this,SLOT(XHR::login(QString)));
m_api="/api/statuses/friends_timeline";
xhr.setApi(m_api);
if(updateInterval!=0){alarm.setAlarm(updateInterval);};
}
//return m_login;
}
@ -115,82 +118,84 @@ void UPDATENEWS::timeline()
QSqlQuery query("SELECT status_id FROM news WHERE username='"+ username +"' ORDER BY status_id DESC LIMIT 1",m_db);
if (query.isActive() && query.isSelect()){query.first();};
QString lastid=query.value(0).toString();
//query.finish();
qDebug() << lastid << query.at();
clearParams();
setParam("since_id",lastid);
setParam("count","50");
get();
QObject::connect(this,&UPDATENEWS::success,this,&UPDATENEWS::store);
xhr.clearParams();
xhr.setParam("since_id",lastid);
xhr.setParam("count","50");
xhr.get();
QObject::connect(&xhr,SIGNAL(success(QByteArray,QString)),this,SLOT(store(QByteArray,QString)));
QObject::connect(&xhr,SIGNAL(error(QString,QString,QString,int)),this,SLOT(showError(QString,QString,QString,int)));
}
void UPDATENEWS::store(QByteArray serverreply,QString apiname)
{
//qDebug() << serverreply;
QJsonDocument news;
QJsonParseError jsonerror;
news=QJsonDocument::fromJson(serverreply,&jsonerror);
qDebug() << news.isArray()<<news.isObject()<<news.isEmpty()<<jsonerror.errorString();
if (news.isArray()){
qDebug() << " isArray ";
//QJsonArray array = news.//news.toArray();
for (int i=0; i < news.array().count();i++){
QJsonValue newsitem=news[i];
QSqlQuery query(m_db);
query.prepare("INSERT INTO news (username,messagetype,text,created_at,in_reply_to_status_id,source,status_id,in_reply_to_user_id,geo,favorited,uid,statusnet_html,statusnet_conversation_id,friendica_activities,friendica_activities_self,attachments,friendica_owner) " "VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)");
query.bindValue(0,username);
query.bindValue(1,"0");
query.bindValue(2, newsitem["text"].toString().toUtf8().toBase64());
QString sourcedate=newsitem["created_at"].toString();
QString formateddate=sourcedate.mid(0,3)+", "+sourcedate.mid(8,3)+sourcedate.mid(4,3)+sourcedate.mid(25,5)+sourcedate.mid(10,15);
query.bindValue(3,QDateTime::fromString(formateddate,Qt::RFC2822Date).toMSecsSinceEpoch() );
if(newsitem["in_reply_to_status_id"]!=QJsonValue::Null){query.bindValue(4, newsitem["in_reply_to_status_id"].toInt());};
query.bindValue(5,newsitem["source"]);
query.bindValue(6,newsitem["id"].toInt());
if(newsitem["in_reply_to_user_id"]!=QJsonValue::Null){ query.bindValue(7,newsitem["in_reply_to_user_id"].toInt());};
query.bindValue(8,newsitem["geo"]);
query.bindValue( 9, newsitem["favorited"].toInt());
query.bindValue(10, newsitem["user"]["id"].toInt());
query.bindValue(11, newsitem["statusnet_html"].toString().toUtf8().toBase64());
query.bindValue(12, newsitem["statusnet_conversation_id"].toInt());
QJsonArray likeArray;QJsonArray dislikeArray;QJsonArray attendyesArray;QJsonArray attendnoArray;QJsonArray attendmaybeArray;
if (newsitem.toObject().contains("friendica_activities")){
for (int a=0; a < newsitem["friendica_activities"]["like"].toArray().count();a++){
likeArray.append(newsitem["friendica_activities"]["like"][a]["url"].toString());
}
for (int b=0; b < newsitem["friendica_activities"]["dislike"].toArray().count();b++){
dislikeArray.append(newsitem["friendica_activities"]["dislike"][b]["url"].toString());
}
for (int c=0; c < newsitem["friendica_activities"]["attendyes"].toArray().count();c++){
attendyesArray.append(newsitem["friendica_activities"]["attendyes"][c]["url"].toString());
}
for (int d=0; d < newsitem["friendica_activities"]["attendno"].toArray().count();d++){
attendnoArray.append(newsitem["friendica_activities"]["attendno"][d]["url"].toString());
}
for (int e = 0; e < newsitem["friendica_activities"]["attendmaybe"].toArray().count();e++){
attendmaybeArray.append(newsitem["friendica_activities"]["attendmaybe"][e]["url"].toString());
}
};
QJsonArray friendica_activities; friendica_activities={likeArray,dislikeArray,attendyesArray,attendnoArray,attendmaybeArray};
QJsonDocument activities; activities.setArray(friendica_activities);
query.bindValue(13,activities.toJson(QJsonDocument::Compact).toBase64());
query.bindValue(14,"[]");
for (int i=0; i < news.array().count();i++){
QJsonValue newsitem=news[i];
QSqlQuery query(m_db);
query.prepare("INSERT INTO news (username,messagetype,text,created_at,in_reply_to_status_id,source,status_id,in_reply_to_user_id,geo,favorited,uid,statusnet_html,statusnet_conversation_id,friendica_activities,friendica_activities_self,attachments,friendica_owner) " "VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)");
query.bindValue(0,username);
query.bindValue(1,"0");
query.bindValue(2, newsitem["text"].toString().toUtf8().toBase64());
QString sourcedate=newsitem["created_at"].toString();
QString formateddate=sourcedate.mid(0,3)+", "+sourcedate.mid(8,3)+sourcedate.mid(4,3)+sourcedate.mid(25,5)+sourcedate.mid(10,15);
query.bindValue(3,QDateTime::fromString(formateddate,Qt::RFC2822Date).toMSecsSinceEpoch() );
if(newsitem["in_reply_to_status_id"]!=QJsonValue::Null){query.bindValue(4, newsitem["in_reply_to_status_id"].toInt());};
query.bindValue(5,newsitem["source"]);
query.bindValue(6,newsitem["id"].toInt());
if(newsitem["in_reply_to_user_id"]!=QJsonValue::Null){ query.bindValue(7,newsitem["in_reply_to_user_id"].toInt());};
query.bindValue(8,newsitem["geo"]);
query.bindValue( 9, newsitem["favorited"].toInt());
query.bindValue(10, newsitem["user"]["id"].toInt());
query.bindValue(11, newsitem["statusnet_html"].toString().toUtf8().toBase64());
query.bindValue(12, newsitem["statusnet_conversation_id"].toInt());
QJsonArray likeArray;QJsonArray dislikeArray;QJsonArray attendyesArray;QJsonArray attendnoArray;QJsonArray attendmaybeArray;
if (newsitem.toObject().contains("friendica_activities")){
for (int a=0; a < newsitem["friendica_activities"]["like"].toArray().count();a++){
likeArray.append(newsitem["friendica_activities"]["like"][a]["url"].toString());
}
for (int b=0; b < newsitem["friendica_activities"]["dislike"].toArray().count();b++){
dislikeArray.append(newsitem["friendica_activities"]["dislike"][b]["url"].toString());
}
for (int c=0; c < newsitem["friendica_activities"]["attendyes"].toArray().count();c++){
attendyesArray.append(newsitem["friendica_activities"]["attendyes"][c]["url"].toString());
}
for (int d=0; d < newsitem["friendica_activities"]["attendno"].toArray().count();d++){
attendnoArray.append(newsitem["friendica_activities"]["attendno"][d]["url"].toString());
}
for (int e = 0; e < newsitem["friendica_activities"]["attendmaybe"].toArray().count();e++){
attendmaybeArray.append(newsitem["friendica_activities"]["attendmaybe"][e]["url"].toString());
}
};
QJsonArray friendica_activities; friendica_activities={likeArray,dislikeArray,attendyesArray,attendnoArray,attendmaybeArray};
QJsonDocument activities; activities.setArray(friendica_activities);
query.bindValue(13,activities.toJson(QJsonDocument::Compact).toBase64());
query.bindValue(14,"[]");
if (newsitem["attachments"]!=QJsonValue::Undefined){
query.bindValue(15, QJsonDocument(newsitem["attachments"].toArray()).toJson(QJsonDocument::Compact).toBase64());
};
if (newsitem["attachments"]!=QJsonValue::Undefined){
query.bindValue(15, QJsonDocument(newsitem["attachments"].toArray()).toJson(QJsonDocument::Compact).toBase64());
};
query.bindValue(16, newsitem["friendica_owner"]["url"]);
qDebug() << query.exec() <<query.lastError();
//query.finish();
}
query.bindValue(16, newsitem["friendica_owner"]["url"]);
query.exec() ;
}
}
else {emit this->error(m_api,QTextCodec::codecForName("utf-8")->toUnicode(serverreply));}
QList<QJsonValue> newcontacts=findNewContacts(news);
updateContacts(newcontacts);
startImagedownload();
connect(&xhr, SIGNAL(downloaded(QString, QString, QString, int)), this, SLOT(updateImageLocation(QString,QString, QString, int)));
emit updatesuccess();
}
void UPDATENEWS::updateImageLocation(QString downloadtype,QString imageurl, QString filename, int index){
if (downloadtype=="contactlist"){
QSqlQuery query("UPDATE contacts SET imageLocation='"+ filename +"' WHERE imageurl ='"+imageurl+ "' AND username = '" +username+"'",m_db);
query.exec();
}
}
QList <QJsonValue> UPDATENEWS::findNewContacts(QJsonDocument news){
QSqlQuery query("SELECT profile_image_url FROM contacts",m_db);
@ -199,16 +204,48 @@ QList <QJsonValue> UPDATENEWS::findNewContacts(QJsonDocument news){
imageurls.append(query.value(0).toString());
}
QList<QJsonValue> newcontacts;
QList<QString> newcontactimagelinks;
qDebug()<<news.array().count();
//qDebug()<<news.array().count();
for (int i=0; i<news.array().count();i++){
//main contacts
if(imageurls.contains(news[i]["user"]["profile_image_url"].toString()) || newcontactimagelinks.contains(news[i]["user"]["profile_image_url"].toString())){
qDebug()<<"vorhanden";
}
else{ qDebug()<<"newcontact" <<news[i]["user"];
else{
newcontacts.append(news[i]["user"]);
newcontactimagelinks.append(news[i]["user"]["profile_image_url"].toString());
newcontactnames.append(news[i]["user"]["screen_name"].toString());
}
//like/dislike contacts
if (news[i].toObject().contains("friendica_activities") ){
for (int a=0; a < news[i]["friendica_activities"]["like"].toArray().count();a++){
if(imageurls.contains(news[i]["friendica_activities"]["like"][a]["profile_image_url"].toString()) || newcontactimagelinks.contains(news[i]["friendica_activities"]["like"][a]["profile_image_url"].toString())){
}
else{
newcontacts.append(news[i]["friendica_activities"]["like"][a]);
newcontactimagelinks.append(news[i]["friendica_activities"]["like"][a]["profile_image_url"].toString());
newcontactnames.append(news[i]["friendica_activities"][a]["screen_name"].toString());
}
}
for (int b=0; b < news[i]["friendica_activities"]["dislike"].toArray().count();b++){
if(imageurls.contains(news[i]["friendica_activities"]["dislike"][b]["profile_image_url"].toString()) || newcontactimagelinks.contains(news[i]["friendica_activities"]["dislike"][b]["profile_image_url"].toString())){
}
else{
newcontacts.append(news[i]["friendica_activities"]["dislike"][b]);
newcontactimagelinks.append(news[i]["friendica_activities"]["dislike"][b]["profile_image_url"].toString());
newcontactnames.append(news[i]["friendica_activities"][b]["screen_name"].toString());
}
}
}
//owner contacts
if (news[i].toObject().contains("friendica_owner") ){
if(imageurls.contains(news[i]["friendica_owner"]["profile_image_url"].toString()) || newcontactimagelinks.contains(news[i]["friendica_owner"]["profile_image_url"].toString())){
}
else{
newcontacts.append(news[i]["friendica_owner"]);
newcontactimagelinks.append(news[i]["friendica_owner"]["profile_image_url"].toString());
newcontactnames.append(news[i]["friendica_owner"]["screen_name"].toString());
}
}
}
return newcontacts;
}
@ -219,42 +256,87 @@ void UPDATENEWS::updateContacts(QList<QJsonValue> contacts){
for (int i=0; i < contacts.count();i++){
QJsonValue contact=contacts[i];
QSqlQuery query(m_db);
qDebug() << "updatecontact " << contact["screen_name"];
QSqlQuery testquery("SELECT url FROM contacts WHERE username='"+ username +"' AND url='" + contact["url"].toString() +"'",m_db);
if (testquery.first()){
query.prepare("UPDATE contacts SET id=?, name=?, screen_name=?, location=?,imageAge=?,"
"profile_image_url=?, description=?, protected=?, followers_count=?,"
"friends_count=?, created_at=?, favourites_count=?, utc_offset=?, time_zone=?, statuses_count=?,"
"following=?, verified=?, statusnet_blocking=?, notifications=?, statusnet_profile_url=?, cid=?, network=?, timestamp=? "
" WHERE username='"+ username +"' AND url='" + contact["url"].toString() +"'");
query.bindValue(0, contact["id"].toInt());
query.bindValue(1, contact["name"].toString().toUtf8().toBase64());
query.bindValue(2, contact["screen_name"]);
query.bindValue(3, contact["location"]);
query.bindValue(4, currentTime);
query.bindValue(5, contact["profile_image_url"]);
if(contact["description"].isNull() ){query.bindValue(6,"");}else{query.bindValue(6, contact["description"].toString().toUtf8().toBase64());};
query.bindValue(7,contact["protected"].toBool());
query.bindValue(8,contact["followers_count"].toInt());
query.bindValue(9,contact["friends_count"].toInt());
QString sourcedate=contact["created_at"].toString();
QString formateddate=sourcedate.mid(0,3)+", "+sourcedate.mid(8,3)+sourcedate.mid(4,3)+sourcedate.mid(25,5)+sourcedate.mid(10,15);
query.bindValue(10,QDateTime::fromString(formateddate,Qt::RFC2822Date).toMSecsSinceEpoch() );
query.bindValue(11,contact["favorites_count"].toInt());
query.bindValue(12,contact["utc_offset"].toInt());
query.bindValue(13,contact["time_zone"].toString());
query.bindValue(14,contact["statuses_count"].toInt());
query.bindValue(15,contact["following"].toBool());
query.bindValue(16,contact["verfied"].toBool());
query.bindValue(17,contact["statusnet_blocking"].toBool());
query.bindValue(18,contact["notifications"].toBool());
query.bindValue(19,contact["statusnet_profile_url"]);
query.bindValue(20,contact["cid"].toInt());
query.bindValue(21,contact["network"]);
qint64 timestamp=0;
QString timestamphelper=contact["profile_image_url"].toString();
try {timestamp=timestamphelper.mid(timestamphelper.indexOf("?ts")+4,timestamphelper.length()).toUInt();} catch(...){};
query.bindValue(22,timestamp);
}
query.prepare("INSERT INTO contacts username, id, name, screen_name, location,imageAge, "
"profile_image_url, description, profile_image, url, protected, followers_count, "
else{
query.prepare("INSERT INTO contacts (username, id, name, screen_name, location,imageAge,"
"profile_image_url, description, profile_image, url, protected, followers_count,"
"friends_count, created_at, favourites_count, utc_offset, time_zone, statuses_count,"
" following, verified, statusnet_blocking, notifications, statusnet_profile_url,"
" cid, network, isFriend, timestamp"
"following, verified, statusnet_blocking, notifications, statusnet_profile_url, cid, network, isFriend, timestamp)"
"VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)");
query.bindValue(0,username);
query.bindValue(1, contact["id"]);
query.bindValue(2, contact["name"].toString().toUtf8().toBase64());
query.bindValue(3, contact["screen_name"]);
query.bindValue(4, contact["location"]);
query.bindValue(5, currentTime);
query.bindValue(6, contact["profile_image_url"]);
query.bindValue(7, contact["description"].toString().toUtf8().toBase64());
//query.bindValue(8,"")
query.bindValue(9, contact["url"]);
query.bindValue(10,contact["protected"]);
query.bindValue(11,contact["followers_count"]);
query.bindValue(12,contact["friends_count"]);
query.bindValue(13,contact["created_at"]);
query.bindValue(14,contact["favorites_count"]);
query.bindValue(15,contact["utc_offset"]);
query.bindValue(16,contact["time_zone"]);
query.bindValue(17,contact["statuses_count"]);
query.bindValue(18,contact["following"]);
query.bindValue(19,contact["verfied"]);
query.bindValue(20,contact["statusnet_blocking"]);
query.bindValue(21,contact["notifications"]);
query.bindValue(22,contact["statusnet_profile_url"]);
query.bindValue(23,contact["cid"]);
query.bindValue(24,contact["network"]);
query.bindValue(25, 1);
//query.bindValue(26,image_timestamp);
query.bindValue(0,username);
query.bindValue(1, contact["id"].toInt());
query.bindValue(2, contact["name"].toString().toUtf8().toBase64());
query.bindValue(3, contact["screen_name"]);
query.bindValue(4, contact["location"]);
query.bindValue(5, currentTime);
query.bindValue(6, contact["profile_image_url"]);
if(contact["description"].isNull() ){query.bindValue(7,"");}else{query.bindValue(7, contact["description"].toString().toUtf8().toBase64());};
query.bindValue(8,"none");
query.bindValue(9, contact["url"].toString());
query.bindValue(10,contact["protected"].toBool());
query.bindValue(11,contact["followers_count"].toInt());
query.bindValue(12,contact["friends_count"].toInt());
QString sourcedate=contact["created_at"].toString();
QString formateddate=sourcedate.mid(0,3)+", "+sourcedate.mid(8,3)+sourcedate.mid(4,3)+sourcedate.mid(25,5)+sourcedate.mid(10,15);
query.bindValue(13,QDateTime::fromString(formateddate,Qt::RFC2822Date).toMSecsSinceEpoch() );
query.bindValue(14,contact["favorites_count"].toInt());
query.bindValue(15,contact["utc_offset"].toInt());
query.bindValue(16,contact["time_zone"].toString());
query.bindValue(17,contact["statuses_count"].toInt());
query.bindValue(18,contact["following"].toBool());
query.bindValue(19,contact["verfied"].toBool());
query.bindValue(20,contact["statusnet_blocking"].toBool());
query.bindValue(21,contact["notifications"].toBool());
query.bindValue(22,contact["statusnet_profile_url"]);
query.bindValue(23,contact["cid"].toInt());
query.bindValue(24,contact["network"]);
query.bindValue(25, 0);
qint64 timestamp=0;
QString timestamphelper=contact["profile_image_url"].toString();
try {timestamp=timestamphelper.mid(timestamphelper.indexOf("?ts")+4,timestamphelper.length()).toUInt();} catch(...){};
query.bindValue(26,timestamp);
}
}
emit this->success(m_api);
}
QString UPDATENEWS::url() const
@ -262,80 +344,16 @@ QString UPDATENEWS::url() const
return m_url;
}
void UPDATENEWS::setParam(QString name, QString value)
void UPDATENEWS::startImagedownload()
{
params.insert(name, value);
xhr.setDownloadtype("contactlist");
xhr.setFilelist(newcontactimagelinks);
xhr.setContactlist(newcontactnames);
xhr.setImagedir(m_imagedir);
xhr.getlist();
}
void UPDATENEWS::clearParams()
void UPDATENEWS::showError(QString data, QString url,QString api, int code )
{
files.clear();
params.clear();
}
void UPDATENEWS::get()
{
QUrlQuery query;
QHashIterator<QString, QString> i(params);
while(i.hasNext()) {
i.next();
query.addQueryItem(i.key(), i.value());
}
QUrl requrl(m_url+m_api);
qDebug() << requrl;
requrl.setQuery(query);
QByteArray loginData = m_login.toLocal8Bit().toBase64();
QString headerData = "Basic " + loginData;
request.setRawHeader("Authorization", headerData.toLocal8Bit());
request.setUrl(requrl);
reply = manager.get(request);
connect(reply, &QNetworkReply::finished, this, &UPDATENEWS::onReplySuccess);
connect(reply, SIGNAL(error(QNetworkReply::NetworkError)), this, SLOT(onReplyError(QNetworkReply::NetworkError)));
connect(reply, &QNetworkReply::readyRead, this, &UPDATENEWS::onReadyRead);
connect(reply, &QNetworkReply::sslErrors, this, &UPDATENEWS::onSSLError);
}
void UPDATENEWS::onReplyError(QNetworkReply::NetworkError code)
{
qDebug() << code;
emit this->error( bufferToString(), m_url,m_api, (int) code);
buffer.clear();
reply->deleteLater();
}
void UPDATENEWS::onReplySuccess()
{
qDebug() << "!";
emit this->success( buffer, m_api);
buffer.clear();
// reply->deleteLater();
}
void UPDATENEWS::onReadyRead()
{
qDebug() << ".";
buffer += reply->readAll();
}
void UPDATENEWS::onSSLError(const QList<QSslError> &errors)
{
qDebug() << "XHR::onSSLError :" ;
QListIterator<QSslError> ierrs(errors);
while(ierrs.hasNext()) {
qDebug() << "\t" << ierrs.next().errorString();
}
}
QString UPDATENEWS::bufferToString()
{
return QTextCodec::codecForName("utf-8")->toUnicode(buffer);
emit this->error(api,data);
}

View file

@ -36,6 +36,7 @@
#include <QJsonObject>
#include <QSqlDatabase>
#include "xhr.h"
#include "alarm.h"
class UPDATENEWS : public QObject
{
@ -54,14 +55,15 @@ signals:
// void loginChanged(QString login);
void urlChanged(QString url);
void updatesuccess();
void success(QString api);
void error(QString api, QString content);
//void apiChanged(QString api);
//network
void success(QByteArray data, QString api);
void error(QString data, QString url,QString api, int code);
//network
// //network
// void success(QByteArray data, QString api);
// void error(QString data, QString url,QString api, int code);
// //network
public slots:
void setUrl(QString url);
@ -70,41 +72,50 @@ public slots:
void setDatabase();
void login();
void timeline();
//network
void onReplyError(QNetworkReply::NetworkError code);
void onReplySuccess();
void onReadyRead();
void onSSLError(const QList<QSslError> &errors);
void setParam(QString name, QString value);
void clearParams();
void get();
//network
void startImagedownload();
void updateImageLocation(QString downloadtype,QString imageurl, QString filename, int index);
void store(QByteArray serverreply,QString apiname);
void showError(QString data, QString url,QString api, int code);
// //network
// void onReplyError(QNetworkReply::NetworkError code);
// void onReplySuccess();
// void onReadyRead();
// void onSSLError(const QList<QSslError> &errors);
// void setParam(QString name, QString value);
// void clearParams();
// void get();
// //network
private:
QString m_url;
QString m_api;
QString m_imagedir;
QString m_login;
QString username;
QSqlDatabase m_db;
QList<QJsonValue> findNewContacts(QJsonDocument news);
int updateInterval;
//void timeline();
void store(QByteArray serverreply,QString apiname);
//void store(QByteArray serverreply,QString apiname);
void updateContacts(QList<QJsonValue> contacts);
XHR xhr;
ALARM alarm;
QList<QString> newcontactimagelinks;
QList<QString> newcontactnames;
//network
QHash<QString, QString> params;
QHash<QString, QString> files;
QByteArray buffer;
QNetworkAccessManager manager;
QNetworkRequest request;
QNetworkReply *reply;
QNetworkConfiguration nc;
QString bufferToString();
//network
// //network
// QHash<QString, QString> params;
// QHash<QString, QString> files;
// QByteArray buffer;
// QNetworkAccessManager manager;
// QNetworkRequest request;
// QNetworkReply *reply;
// QNetworkConfiguration nc;
// QString bufferToString();
// //network
};
#endif // UPDATENEWS_H

View file

@ -290,7 +290,8 @@ void XHR::onReplyError(QNetworkReply::NetworkError code)
void XHR::onReplySuccess()
{
qDebug() << "!";
emit this->success( bufferToString(), m_api);
//emit this->success( bufferToString(), m_api);
emit this->success( buffer, m_api);
buffer.clear();
// reply->deleteLater();
}

View file

@ -79,7 +79,7 @@ signals:
void networktypeChanged();
void downloaded(QString type, QString url, QString filename, int i);
void downloadedjson(QString type, QString url, QString filename, int i,QJsonObject jsonObject);
void success(QString data, QString api);
void success(QByteArray data, QString api);
void error(QString data, QString url,QString api, int code);
public slots:

View file

@ -20,7 +20,8 @@ SOURCES += common/friendiqa.cpp \
common/xhr.cpp \
common/filesystem.cpp \
common/remoteauthasyncimageprovider.cpp \
common/updatenews.cpp
common/updatenews.cpp \
common/alarmandroid.cpp
RESOURCES = application.qrc
@ -41,7 +42,8 @@ HEADERS += \
common/xhr.h \
common/filesystem.h \
common/remoteauthasyncimageprovider.h \
common/updatenews.h
common/updatenews.h \
common/alarm.h
DISTFILES += \
qml/calendarqml/*.qml \
@ -53,6 +55,3 @@ DISTFILES += \
qml/photoqml/*.qml \
qml/configqml/*.qml \
js/*.js \
qml/newsqml/Hashtag.qml \
qml/newsqml/NewsImage.qml \
qml/newsqml/NewsLink.qml

View file

@ -95,6 +95,20 @@ function friendicaWebRequest(url,rootwindow,callback) {
xhrequest.send();
}
function friendicaXmlRequest(url,rootwindow,callback) {
var xhrequest = new XMLHttpRequest();
xhrequest.onreadystatechange = function() {
if (xhrequest.readyState === XMLHttpRequest.HEADERS_RECEIVED) {}
else if(xhrequest.readyState === XMLHttpRequest.DONE) {
try{callback(xhrequest.responseXML)}
catch (e){showMessage("Error","API:\n" +url+" "+e+"\n Return: "+xhrequest.responseText, rootwindow)}
}
}
xhrequest.open("GET", url);
xhrequest.responseType ="document";
xhrequest.send();
}
function friendicaRemoteAuthRequest(login,url,c_url,rootwindow,callback) {
var xhrequest = new XMLHttpRequest();
xhrequest.onreadystatechange = function() {

View file

@ -465,7 +465,7 @@ function chatsfromdb(database,user,callback,stop_time){
helpernews.statusnet_html=Qt.atob(helpernews.statusnet_html);
helpernews.text=Qt.atob(helpernews.text);
helpernews.id=helpernews.status_id;
if (helpernews.attachments!==null){print(Qt.atob(helpernews.attachments));helpernews.attachments=JSON.parse(Qt.atob(helpernews.attachments))};
if (helpernews.attachments!==null){helpernews.attachments=JSON.parse(Qt.atob(helpernews.attachments))};
newsArray.push(helpernews);
}
callback(newsArray);

View file

@ -135,6 +135,21 @@ else{
if ((attachmentList.length==0) || (attachmentList[attachmentList.length-1].url!=ptvideohelper.url)){attachmentList.push(ptvideohelper)}
}
}
// if (newsitemobject.text.indexOf("https://www.youtube.com/watch")>-1){
// //print("message "+msg.options.showWebsiteForLinks);
// if (msg.options.showYoutube!="false"){
// var ythelper={mimetype:"video/youtube"}
// var yttext=newsitemobject.text;
// while (yttext.indexOf("https://www.youtube.com/watch")>-1){
// var ythelperstringposition=linktext.indexOf("watch?v=");
// var ytposend=findend(yttext,ythelperstringposition);
// ythelper.url=yttext.substring(yttext.lastIndexOf("http",linkhelperstringposition),linkposend);
// linktext=linktext.substring(linkhelperstringposition+5,linktext.length)
// if ((attachmentList.length==0) || (attachmentList[attachmentList.length-1].url!=linkhelper.url)){attachmentList.push(linkhelper)}
// }
// }
// }
// if (newsitemobject.text.indexOf(".html")>-1){
// //print("message "+msg.options.showWebsiteForLinks);
// if (msg.options.showWebsiteForLinks!="false"){

View file

@ -513,9 +513,6 @@ function updateView(viewtype){
//downloadNotice.text="xhr start "+Date.now()
switch(viewtype){
case "Conversations":
// updatenews.setDatabase();
// updatenews.login();
// updatenews.timeline();
var lastnews=Newsjs.getLastNews(login,db);
xhr.setLogin(login.username+":"+Qt.atob(login.password));
xhr.setUrl(login.server);
@ -525,9 +522,6 @@ function updateView(viewtype){
xhr.setParam("count",50)
break;
case "Timeline":
// updatenews.setDatabase();
// updatenews.login();
// updatenews.timeline();
var lastnews=Newsjs.getLastNews(login,db);
xhr.setLogin(login.username+":"+Qt.atob(login.password));
xhr.setUrl(login.server);
@ -565,6 +559,12 @@ function updateView(viewtype){
xhr.setApi("/api/favorites");
xhr.clearParams();
break;
case "Replies":
xhr.setLogin(login.username+":"+Qt.atob(login.password));
xhr.setUrl(login.server);
xhr.setApi("/api/statuses/replies");
xhr.clearParams();
break;
default:
var lastnews=Newsjs.getLastNews(login,db);
xhr.setLogin(login.username+":"+Qt.atob(login.password));
@ -575,8 +575,8 @@ function updateView(viewtype){
xhr.setParam("count",50)
newstab.newstabstatus="Conversations";
}
xhr.get();
xhr.get();
if (viewtype==="Conversations"){Newsjs.allchatsfromdb(db,login.username,function(temp){
newsStack.allchats=temp
})}

View file

@ -0,0 +1,45 @@
<html>
<head>
<title>-1</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
</head>
<body bgcolor="black" marginwidth="0" marginheight="0">
<div id="player"></div>
<script>
function getVideoId() {
return window.location.href.slice(window.location.href.indexOf('?') + 1);
}
var tag = document.createElement('script');
tag.src = "https://www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
var player;
function onYouTubeIframeAPIReady() {
player = new YT.Player('player', {
playerVars: { 'html5': 1, 'iv_load_policy': 3 },
frameborder: '0',
height: '100%',
width: '100%',
videoId: getVideoId(),
events: {
'onReady': onPlayerReady,
'onStateChange': onPlayerStateChange
}
});
}
function onPlayerReady(event) {
document.title = 0;
}
function onPlayerStateChange(event) {
if (event.data == YT.PlayerState.PLAYING) {
document.title = 1;
} else if (event.data == YT.PlayerState.ENDED || event.data == YT.PlayerState.PAUSED) {
document.title = 2;
}
}
</script>
</body>
</html>

View file

@ -93,99 +93,106 @@ StackView{
}
Text {
text: qsTr("Server")
x: 4*mm; y: 10*mm
text: qsTr("Server")
font.pixelSize:3*mm
x: 4*mm; y: 10*mm
}
Text {
text: qsTr("Nickname")
x: 4*mm; y: 20*mm
text: qsTr("Nickname")
font.pixelSize:3*mm
x: 4*mm; y: 20*mm
}
Text {
text: qsTr("Password")
x: 4*mm; y: 30*mm
font.pixelSize:3*mm
x: 4*mm; y: 30*mm
}
Text {
text: qsTr("Image dir.")
x: 4*mm; y: 40*mm
text: qsTr("Image dir.")
font.pixelSize:3*mm
x: 4*mm; y: 40*mm
}
Text {
text: qsTr("Max. News")
x: 4*mm; y: 50*mm
}
Text {
text: qsTr("News as")
x: 4*mm; y: 60*mm
Text {
text: qsTr("Max. News")
font.pixelSize:3*mm
x: 4*mm; y: 50*mm
}
Text {
text: qsTr("Interval (0=None)")
visible: false
x: 4*mm; y: 70*mm; width:20*mm;wrapMode: Text.Wrap
}
text: qsTr("News as")
font.pixelSize:3*mm
x: 4*mm; y: 60*mm
}
Text {
text: qsTr("Sync Interval (0=None)")
font.pixelSize:3*mm
//visible: false
x: 4*mm; y: 70*mm; //width:35*mm;wrapMode: Text.Wrap
}
// Text {
// Text {
// text: qsTr("Show Website")
// x: 4*mm; y: 70*mm; width: 20*mm
// }
// x: 4*mm; y:80*mm; width: 20*mm
// }
Image{
id:servericon
x:19*mm;y:10*mm
width:5*mm; height: 5*mm
visible: false
source:""
MouseArea{
anchors.fill:parent
onClicked:{
Service.showServerConfig(servername.text, configBackground, function(configString){
var serverconfigObject=Qt.createQmlObject(configString,configBackground,"serverconfigOutput");})
}
Image{
id:servericon
x:4*mm;y:13.5*mm
width:5*mm; height: 5*mm
visible: false
source:""
MouseArea{
anchors.fill:parent
onClicked:{
Service.showServerConfig(servername.text, configBackground, function(configString){
var serverconfigObject=Qt.createQmlObject(configString,configBackground,"serverconfigOutput");})
}
}
}
BlueButton{
id:serverSearchButton
text:"\uf002"
x:19*mm
y:10*mm
width: 5*mm; height:5*mm
visible: servericon.visible?false:true
onClicked:{Qt.openUrlExternally(Qt.resolvedUrl("https://dir.friendica.social/servers"))}
}
BlueButton{
id:serverSearchButton
text:"\uf002"
x:4*mm
y:13.5*mm
width: 5*mm; height:5*mm
visible: servericon.visible?false:true
onClicked:{Qt.openUrlExternally(Qt.resolvedUrl("https://dir.friendica.social/servers"))}
}
Rectangle{color: "light grey"; x: 25*mm; y: 10*mm; width: root.width/2; height: 5*mm;}
Flickable {
id: servernameFlickable
x: 25*mm; y: 10*mm; width: root.width/2; height: 5*mm;
contentWidth: servername.paintedWidth
contentHeight: servername.paintedHeight
clip: true
TextEdit {
id: servername
width: servernameFlickable.width
height: servernameFlickable.height
focus: true
text:"https://..."
onEditingFinished:{
Rectangle{color: "light grey"; x: 10*mm; y: 13.5*mm; width: root.width-12*mm; height: 5*mm;}
Flickable {
id: servernameFlickable
x: 10*mm; y: 13.5*mm; width: root.width-12*mm; height: 5*mm;
contentWidth: servername.paintedWidth
contentHeight: servername.paintedHeight
clip: true
TextEdit {
id: servername
width: servernameFlickable.width
height: servernameFlickable.height
focus: true
font.pixelSize:3*mm
text:"https://..."
onEditingFinished:{
if((servername.text).substring(0,14) =="https://...http"){
serverstring.text= (serverstring.text).substring(11)
}
configBackground.setServericon(servername.text)
}
onCursorRectangleChanged: Layoutjs.ensureVisibility(cursorRectangle,servernameFlickable)
}
}
}
}
Rectangle{
color: "light grey"
x: 25*mm; y: 20*mm; width: root.width/2-9*mm; height: 5*mm;
TextInput {
id: username
anchors.fill: parent
selectByMouse: true
Rectangle{
color: "light grey"
x: 4*mm; y: 23.5*mm; width: root.width-14*mm; height: 5*mm;
TextInput {
id: username
anchors.fill: parent
font.pixelSize:3*mm
selectByMouse: true
onEditingFinished:{
if (username.text.indexOf('@')>-1){
Helperjs.showMessage(qsTr("Error"),qsTr("Nicknames containing @ symbol currently not supported"),configBackground)
@ -201,84 +208,40 @@ StackView{
}
}
}
BlueButton {
x: root.width/2+18*mm; y: 20*mm; width:7*mm
text: "\uf234"
onClicked: {
configStack.push({item:"qrc:/qml/configqml/RegisterPage.qml",properties:{url:servername.text+"/register?nickname="+username.getText(0,username.length)}})
}
}
BlueButton {
x: root.width-9*mm; y: 23.5*mm; width:7*mm
text: "\uf234"
onClicked: {
configStack.push({item:"qrc:/qml/configqml/RegisterPage.qml",properties:{url:servername.text+"/register?nickname="+username.getText(0,username.length)}})
}
}
Rectangle{
color: "light grey"
x: 25*mm; y: 30*mm; width: root.width/2; height: 5*mm;
x: 4*mm; y: 33.5*mm; width: root.width-6*mm; height: 5*mm;
TextInput {
id: password
anchors.fill: parent
font.pixelSize:3*mm
selectByMouse: true
echoMode: TextInput.PasswordEchoOnEdit
}
}
Rectangle{color: "light grey"; x: 25*mm; y: 40*mm; width: root.width/2-9*mm; height: 5*mm;}
Rectangle{color: "light grey"; x: 4*mm; y: 43.5*mm; width: root.width-14*mm; height: 5*mm;}
Flickable {
id: imagestoreFlickable
x: 25*mm; y: 40*mm; width: root.width/2-9*mm; height: 5*mm;
x: 4*mm; y: 43.5*mm; width: root.width-14*mm; height: 5*mm;
clip: true
TextInput {
id: imagestore
width: imagestoreFlickable.width
height: imagestoreFlickable.height
font.pixelSize:3*mm
wrapMode: TextEdit.NoWrap
onCursorRectangleChanged: Layoutjs.ensureVisibility(cursorRectangle,imagestoreFlickable)
}
}
Slider{ id: maxNews
x:34*mm; y: 50*mm;width: root.width/3;height:5*mm
minimumValue: 0;maximumValue:2000; stepSize: 100
}
Rectangle{color: "light grey"; x: 25*mm; y: 50*mm; width: 9*mm; height: 5*mm;
TextEdit{id:maxNewsText;
anchors.fill: parent
verticalAlignment:TextEdit.AlignRight
text:maxNews.value
focus: true
selectByMouse: true
}
}
Rectangle{
x: 25*mm; y: 60*mm; width: root.width/2; height: 5*mm;
color:"light grey"
Text{
id: newsTypeField
anchors.fill: parent
text:"Conversations"
}
MouseArea{
anchors.fill:parent
onClicked:newstypemenu.popup()
}
}
Slider{ id: messageIntervalSlider
visible: false
x:37*mm; y: 70*mm;width: root.width/3;height:5*mm
minimumValue: 0;maximumValue:24; stepSize: 0.5
}
Rectangle{
visible:false
x: 25*mm; y: 70*mm; width: 9*mm; height: 5*mm;
TextEdit{
id: messageIntervalField
anchors.fill: parent
verticalAlignment:TextEdit.AlignRight
text:messageIntervalSlider.value
focus: true
selectByMouse: true
}
}
FileDialog {
id: imagestoreDialog
@ -290,20 +253,71 @@ StackView{
imagestoreString=imagestoreString.replace(/^(file:\/{2})/,"")+"/"
imagestore.text=imagestoreString
}
}
}
BlueButton {
x: root.width/2+18*mm; y: 40*mm; width: 7*mm; height: 5*mm;
x: root.width-9*mm; y: 43.5*mm; width: 7*mm; height: 5*mm;
text: "..."
onClicked:
{imagestoreDialog.open()}
}
Slider{ id: maxNews
x:19*mm; y: 53.5*mm;width: root.width/2;height:5*mm
minimumValue: 0;maximumValue:2000; stepSize: 100
}
Rectangle{color: "light grey"; x: 4*mm; y: 53.5*mm; width: 9*mm; height: 5*mm;
TextEdit{id:maxNewsText;
anchors.fill: parent
font.pixelSize:3*mm
verticalAlignment:TextEdit.AlignRight
text:maxNews.value
focus: true
selectByMouse: true
}
}
Rectangle{
x: 4*mm; y: 63.5*mm; width: newsTypeField.contentWidth+2*mm; height: 5*mm;
color:"light grey"
Text{
id: newsTypeField
anchors.fill: parent
font.pixelSize:3*mm
text:"Conversations"
}
MouseArea{
anchors.fill:parent
onClicked:newstypemenu.popup()
}
}
Slider{ id: messageIntervalSlider
x:22*mm; y: 73.5*mm;width: root.width/2;height:5*mm
minimumValue: 0;maximumValue:120; stepSize: 15
}
Rectangle{
x: 4*mm; y: 73.5*mm; width: 9*mm; height: 5*mm;
TextEdit{
id: messageIntervalField
anchors.fill: parent
font.pixelSize:3*mm
verticalAlignment:TextEdit.AlignRight
text:messageIntervalSlider.value
focus: true
selectByMouse: true
}
}
Text{x: 14*mm; y: 73.5*mm; width: 5*mm; height: 5*mm;
font.pixelSize:3*mm
text:qsTr("Min.")
}
// CheckBox{
// id:showwebsiteCheckbox
// x:35*mm;y:70*mm
// x:35*mm;y:80*mm
// onClicked:{
// if (checked==true){
// Service.updateglobaloptions(root.db,"showWebsiteForLinks","true")
@ -314,11 +328,10 @@ StackView{
// root.globaloptions.showWebsiteForLinks="false"
// }
// }
// }
BlueButton {
x: 25*mm; y: 78*mm
x: 4*mm; y: 83.5*mm
text: qsTr("Confirm")
onClicked:{
var userconfig={server: servername.text, username: username.text, password:Qt.btoa(password.text), imagestore:imagestore.text,maxnews:maxNewsText.text,interval: messageIntervalField.text, newsViewType:newsTypeField.text};
@ -352,7 +365,10 @@ StackView{
root.login=userconfig;
root.news=[];
},"isActive",0);
Service.requestProfile(userconfig,db,root,function(nc){root.newContacts=nc})
Service.requestProfile(userconfig,db,root,function(nc){root.newContacts=nc});
if(osSettings.osType=="Android" && userconfig.timerInterval !=0){
alarm.setAlarm(userconfig.timerInterval);
}
Helperjs.showMessage(qsTr("Success"),qsTr("Name")+": "+credentials.name+"\nScreen Name: "+credentials.screen_name,root)
}
});
@ -382,7 +398,7 @@ StackView{
imagestore.text="";
maxNews.value=0;
newsTypeField.text="Conversations";
messageIntervalSlider.value=0;
messageIntervalSlider.value=30;
userButton.text=qsTr("User");
Helperjs.readData(db,"config","",function(storedUsers){
storedUsers.sort(function(obj1, obj2) {
@ -405,7 +421,7 @@ StackView{
imagestore.text=""
maxNews.value=0
newsTypeField.text="Conversations"
messageIntervalSlider.value=0
messageIntervalSlider.value=30
userButton.text=qsTr("User")
}
}
@ -449,14 +465,15 @@ StackView{
if( obj.isActive==0){userButton.fontColor='black'} else {userButton.fontColor='grey'}},"isActive",0
)
})
//Service.readGlobaloptions(db,function(go){
// Service.readGlobaloptions(db,function(go){
// if (root.globaloptions.showWebsiteForLinks!="false"){showwebsiteCheckbox.checked=true}
//})
// })
}
catch (e){
catch (e){print(e)
Helperjs.friendicaWebRequest("https://dir.friendica.social/servers/surprise",configBackground,function(html){
var baseurl=html.substring(html.indexOf("baseurl")+11,html.indexOf('"',html.indexOf("baseurl")+11))
var bpos=html.indexOf("baseurl");
var baseurl=html.substring(html.indexOf("http",bpos),html.indexOf('"',html.indexOf("http",bpos)));
servername.text=baseurl
})}
}

View file

@ -43,7 +43,7 @@ Rectangle{
textFormat: Text.RichText
width: parent.width
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
text: "<b>Friendiqa v0.3.4 </b><br>Licensed under GPL 3 with the exception of OpenSSL <br> "+
text: "<b>Friendiqa v0.4 </b><br>Licensed under GPL 3 with the exception of OpenSSL <br> "+
"Profile <a href='https://freunde.ma-nic.de/profile/friendiqa'>https://freunde.ma-nic.de/profile/friendiqa</a><br>"+
"Sourcecode: <a href='https://git.friendi.ca/LubuWest/Friendiqa'>https://git.friendi.ca/LubuWest/Friendiqa</a><br>"+
"Most of C++ code by <a href='https://kirgroup.com/profile/fabrixxm'>Fabio</a><br>"+

View file

@ -36,6 +36,7 @@ QtObject{
property int appHeight: Screen.desktopAvailableHeight
property int backKey: Qt.Key_Back
//property string attachImageDir:filesystem.cameraPath+"/"
property string osType: "Android"
property string imagePickQml: "ImagePicker"
property string imagePicker:'import QtQuick 2.0; import "qrc:/qml/genericqml";'+
imagePickQml+'{multiple : true;onReady: {attachImageURLs.push(imageUrl);'+

View file

@ -34,6 +34,7 @@ QtObject{
property real appWidth: 500
property real appHeight: 500
property int backKey: Qt.Key_Escape
property string osType: "Android"
//property string attachImageDir:filesystem.homePath+"/Pictures/"
property string imagePickQml: "ImagePickerLinux"
}

View file

@ -100,18 +100,18 @@ TabView{
}
Connections{
target:xhr
onDownloaded:{
if(type=="contactlist"){
var database=LocalStorage.openDatabaseSync(root.db[0],root.db[1],root.db[2],root.db[3]);
var result;
database.transaction( function(tx) {
result = tx.executeSql('UPDATE contacts SET profile_image="'+filename+'" where profile_image_url="'+url+'"');
})
}
}
}
// Connections{
// target:xhr
// onDownloaded:{
// if(type=="contactlist"){
// var database=LocalStorage.openDatabaseSync(root.db[0],root.db[1],root.db[2],root.db[3]);
// var result;
// database.transaction( function(tx) {
// result = tx.executeSql('UPDATE contacts SET profile_image="'+filename+'" where profile_image_url="'+url+'"');
// })
// }
// }
// }
FontLoader{id: fontAwesome; source: "qrc:/images/fontawesome-webfont.ttf"}
@ -194,8 +194,10 @@ TabView{
Component.onCompleted: {
Service.readGlobaloptions(db,function(go){globaloptions=go})
//print(xhr.networktype);
if(osSettings.imagePickQml=="ImagePicker"){var component = Qt.createComponent("qrc:/qml/genericqml/IntentReceiver.qml");
var IntentReceiverQml = component.createObject(root)
if(osSettings.osType=="Android"){
var component = Qt.createComponent("qrc:/qml/genericqml/IntentReceiver.qml");
var IntentReceiverQml = component.createObject(root);
}
}
}

View file

@ -38,6 +38,10 @@ Item {
Component.onCompleted: {
SystemDispatcher.setInitialized();
print("timer " + login.timerInterval)
if (login.timerInterval !=0){
alarm.setAlarm(login.timerInterval);
}
}
}

View file

@ -45,8 +45,23 @@ Rectangle{
// WebView {id:htmlview;
// anchors.fill: parent
// }
Component.onCompleted: //Helperjs.friendicaWebRequest(url,parent,function(html){
//print(html);
htmlview.text="Text <iframe src='"+url+"' width = '300px' height = '300px'>"
//})
Component.onCompleted:{
// Helperjs.friendicaWebRequest(url,parent,function(document){
// print(document);
//// var metas = document.getElementsByTagName('meta'); //get all the meta tag elements
//// //iterate through them
//// for (i=0; i<metas.length; i++) {
//// if (metas[i].getAttribute("name") == "keywords") {
//// print(metas[i].getAttribute("content"));
//// }
//// else if (metas[i].getAttribute("name") == "description") {
//// console.log(metas[i].getAttribute("content"));
//// }
//// }
// //print(html);
// htmlview.text=""
// })
}
}

View file

@ -40,6 +40,8 @@ import "qrc:/js/helper.js" as Helperjs
import "qrc:/js/service.js" as Service
import AndroidNative 1.0
Item {
Connections{
target:newstab
@ -59,6 +61,25 @@ Item {
}
}
// Connections{
// target:xhr
// onError:{
// Helperjs.showMessage(qsTr("Network Error"),"API:\n" +login.server+api+"\n Return: \n"+data,root);
// }
// onSuccess:{
// if (api=="/api/statuses/friends_timeline"){
// // downloadNotice.text=downloadNotice.text+ "\n xhr finished "+Date.now();
// //Service.processNews(api,data);
// if(login.newsViewType=="Timeline"){
// Newsjs.newsfromdb(db,login.username,function(dbnews){showNews(dbnews)})}
// else{Newsjs.chatsfromdb(db,login.username,function(dbnews){
// showNews(dbnews);
// })}
// }
// }
// }
Timer {id:replytimer; interval: 1000; running: false; repeat: false
onTriggered: {
if(newstab.newstabstatus=="Conversation"){
@ -221,6 +242,14 @@ Item {
Service.updateView("Favorites")
}
}
QC2.Action {
text: qsTr("Replies")
onTriggered:{
newsStack.updateMethodNews="refresh";
newstab.newstabstatus="Replies";
Service.updateView("Replies")
}
}
QC2.Action {
text: qsTr("Public timeline")
onTriggered:{

View file

@ -0,0 +1,100 @@
// This file is part of Friendiqa
// https://git.friendi.ca/lubuwest/Friendiqa
// Copyright (C) 2017 Marco R. <thomasschmidt45@gmx.net>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// In addition, as a special exception, the copyright holders give
// permission to link the code of portions of this program with the
// OpenSSL library under certain conditions as described in each
// individual source file, and distribute linked combinations including
// the two.
//
// You must obey the GNU General Public License in all respects for all
// of the code used other than OpenSSL. If you modify file(s) with this
// exception, you may extend this exception to your version of the
// file(s), but you are not obligated to do so. If you do not wish to do
// so, delete this exception statement from your version. If you delete
// this exception statement from all source files in the program, then
// also delete it here.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
import QtQuick 2.8
import "qrc:/js/helper.js" as Helperjs
//import QtWebView 1.1
Rectangle{
color:"transparent"
width:newscolumn.width;
height:newscolumn.width/4*3
property string url:""//htmlview.text
WebView {
id: webView
anchors.fill: parent
opacity: 0
url: "qrc:///content/player.html?" + currentVideo.vId
Behavior on opacity { NumberAnimation { duration: 200 } }
onLoadingChanged: {
switch (loadRequest.status)
{
case WebView.LoadSucceededStatus:
opacity = 1
return
case WebView.LoadStartedStatus:
case WebView.LoadStoppedStatus:
break
case WebView.LoadFailedStatus:
topInfo.text = "Failed to load the requested video"
break
}
opacity = 0
}
onTitleChanged: {
currentVideo.status = 1 * title
if (title == videoStatus.paused || title == videoStatus.ready)
panel.state = "list"
else if (title == videoStatus.playing)
panel.state = "hidden"
}
}
Text{id:htmlview
textFormat:Text.RichText
}
// WebView {id:htmlview;
// anchors.fill: parent
// }
Component.onCompleted:{
// Helperjs.friendicaWebRequest(url,parent,function(document){
// print(document);
//// var metas = document.getElementsByTagName('meta'); //get all the meta tag elements
//// //iterate through them
//// for (i=0; i<metas.length; i++) {
//// if (metas[i].getAttribute("name") == "keywords") {
//// print(metas[i].getAttribute("content"));
//// }
//// else if (metas[i].getAttribute("name") == "description") {
//// console.log(metas[i].getAttribute("content"));
//// }
//// }
// //print(html);
// htmlview.text=""
// })
}
}

View file

@ -134,11 +134,8 @@ Item {
MouseArea{
anchors.fill:parent
onClicked: {
conversationsymbol.color="black";
newsView.contentY+=newsitem.height;
var component = Qt.createComponent("qrc:/qml/newsqml/Conversation.qml");
var conversationItem = component.createObject(friendicaActivities,{"news":newsitemobject.chatArray});
showConversation(index,newsitemobject);
newsStack.push("qrc:/qml/newsqml/Conversation.qml");
showConversation(index,newsitemobject)
}
}
}
@ -187,10 +184,10 @@ Item {
var component = Qt.createComponent("qrc:/qml/newsqml/NewsImage.qml");
var imageQml = component.createObject(messageColumn,{"source":newsitemobject.attachmentList[attachments].url,"mimetype":newsitemobject.attachmentList[attachments].mimetype});
}
// else if(newsitemobject.attachmentList[attachments].mimetype=="text/html"){
// var component = Qt.createComponent("qrc:/qml/newsqml/NewsLink.qml");
// var linkQml = component.createObject(messageColumn,{"url":newsitemobject.attachmentList[attachments].url});
// }
else if(newsitemobject.attachmentList[attachments].mimetype=="text/html"){
var component = Qt.createComponent("qrc:/qml/newsqml/NewsLink.qml");
var linkQml = component.createObject(messageColumn,{"url":newsitemobject.attachmentList[attachments].url});
}
else {//print(newsitemobject.attachmentList[attachments].url+" Type: "+newsitemobject.attachmentList[attachments].mimetype)
var component = Qt.createComponent("qrc:/qml/newsqml/NewsVideo.qml");
var videoQml = component.createObject(messageColumn,{"source":newsitemobject.attachmentList[attachments].url,"mimetype":newsitemobject.attachmentList[attachments].mimetype});
@ -464,14 +461,6 @@ Item {
})
}
}
MenuItem {
text: qsTr("Post")
onTriggered: {
Helperjs.friendicaPostRequest(root.login,"/item","preview=1&"+encodeURIComponent(newsitemobject.text),"POST",root,function(reply){
print(reply)
})
}
}
//MenuItem{
// text:qsTr("Show on website")

View file

@ -18,8 +18,8 @@
<name>ConfigTab</name>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="69"/>
<location filename="../qml/configqml/ConfigTab.qml" line="351"/>
<location filename="../qml/configqml/ConfigTab.qml" line="374"/>
<location filename="../qml/configqml/ConfigTab.qml" line="402"/>
<location filename="../qml/configqml/ConfigTab.qml" line="425"/>
<source>User</source>
<translation>Name</translation>
</message>
@ -29,38 +29,38 @@
<translation>Server</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="100"/>
<location filename="../qml/configqml/ConfigTab.qml" line="101"/>
<source>Nickname</source>
<translation>Kurzname</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="105"/>
<location filename="../qml/configqml/ConfigTab.qml" line="107"/>
<source>Password</source>
<translation>Passwort</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="109"/>
<location filename="../qml/configqml/ConfigTab.qml" line="112"/>
<source>Image dir.</source>
<translation>Bildverz.</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="114"/>
<location filename="../qml/configqml/ConfigTab.qml" line="118"/>
<source>Max. News</source>
<translation>Max. Nachr.</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="118"/>
<location filename="../qml/configqml/ConfigTab.qml" line="123"/>
<source>News as</source>
<translation>Anzeige</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="122"/>
<source>Interval (0=None)</source>
<translation>Intervall (0=keins)</translation>
<translation type="vanished">Intervall (0=keins)</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="304"/>
<location filename="../qml/configqml/ConfigTab.qml" line="328"/>
<location filename="../qml/configqml/ConfigTab.qml" line="198"/>
<location filename="../qml/configqml/ConfigTab.qml" line="350"/>
<location filename="../qml/configqml/ConfigTab.qml" line="377"/>
<source>Error</source>
<translation>Fehler</translation>
</message>
@ -69,22 +69,22 @@
<translation type="vanished">Name auf der Seite nicht registriert!</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="289"/>
<location filename="../qml/configqml/ConfigTab.qml" line="335"/>
<source>Confirm</source>
<translation>Bestätigen</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="293"/>
<location filename="../qml/configqml/ConfigTab.qml" line="339"/>
<source>No server given! </source>
<translation>Kein Server angegeben!</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="294"/>
<location filename="../qml/configqml/ConfigTab.qml" line="340"/>
<source>No nickname given! </source>
<translation>Kein Kurzname angegeben!</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="295"/>
<location filename="../qml/configqml/ConfigTab.qml" line="341"/>
<source>Nickname not registered at given server! </source>
<translation>Name auf der Seite nicht registriert!</translation>
</message>
@ -93,42 +93,57 @@
<translation type="vanished">Kein Nutzername angegeben!</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="296"/>
<location filename="../qml/configqml/ConfigTab.qml" line="128"/>
<source>Sync Interval (0=None)</source>
<translation>Akt.-intervall (0=keine)</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="198"/>
<source>Nicknames containing @ symbol currently not supported</source>
<translation>Kurznamen mit @ Zeichen werden derzeit nicht unterstützt.</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="315"/>
<source>Min.</source>
<translation>Min.</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="342"/>
<source>No password given! </source>
<translation>Kein Passwort angegeben!</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="297"/>
<location filename="../qml/configqml/ConfigTab.qml" line="343"/>
<source>No image directory given!</source>
<translation>Kein Verzeichnis für Bilder angegeben!</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="298"/>
<location filename="../qml/configqml/ConfigTab.qml" line="344"/>
<source>No maximum news number given!</source>
<translation>Maximale News-Anzahl nicht angegeben!</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="304"/>
<location filename="../qml/configqml/ConfigTab.qml" line="350"/>
<source>Wrong password!</source>
<translation>Falsches Passwort!</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="323"/>
<location filename="../qml/configqml/ConfigTab.qml" line="372"/>
<source>Success</source>
<translation>Bestätigt</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="323"/>
<location filename="../qml/configqml/ConfigTab.qml" line="372"/>
<source>Name</source>
<translation>Name</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="389"/>
<location filename="../qml/configqml/ConfigTab.qml" line="440"/>
<source>Timeline</source>
<translation>Chronologisch</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="393"/>
<location filename="../qml/configqml/ConfigTab.qml" line="444"/>
<source>Conversations</source>
<translation>Unterhaltungen</translation>
</message>
@ -182,27 +197,27 @@
<translation>Kontaktanfrage</translation>
</message>
<message>
<location filename="../qml/newsqml/ContactPage.qml" line="152"/>
<location filename="../qml/newsqml/ContactPage.qml" line="151"/>
<source>Description</source>
<translation>Beschreibung</translation>
</message>
<message>
<location filename="../qml/newsqml/ContactPage.qml" line="152"/>
<location filename="../qml/newsqml/ContactPage.qml" line="151"/>
<source>Location</source>
<translation>Ort</translation>
</message>
<message>
<location filename="../qml/newsqml/ContactPage.qml" line="152"/>
<location filename="../qml/newsqml/ContactPage.qml" line="151"/>
<source>Posts</source>
<translation>Beiträge</translation>
</message>
<message>
<location filename="../qml/newsqml/ContactPage.qml" line="153"/>
<location filename="../qml/newsqml/ContactPage.qml" line="152"/>
<source>URL</source>
<translation>Profilseite</translation>
</message>
<message>
<location filename="../qml/newsqml/ContactPage.qml" line="154"/>
<location filename="../qml/newsqml/ContactPage.qml" line="153"/>
<source>Created at</source>
<translation>Erstellt</translation>
</message>
@ -309,12 +324,12 @@
<translation type="vanished">Lade Profilbild für </translation>
</message>
<message>
<location filename="../qml/newsqml/NewsTab.qml" line="330"/>
<location filename="../qml/newsqml/NewsTab.qml" line="359"/>
<source>More</source>
<translation>Mehr</translation>
</message>
<message>
<location filename="../qml/newsqml/NewsTab.qml" line="200"/>
<location filename="../qml/newsqml/NewsTab.qml" line="221"/>
<source>Timeline</source>
<translation>Chronologisch</translation>
</message>
@ -323,42 +338,47 @@
<translation type="vanished">Fehler</translation>
</message>
<message>
<location filename="../qml/newsqml/NewsTab.qml" line="217"/>
<location filename="../qml/newsqml/NewsTab.qml" line="238"/>
<source>Favorites</source>
<translation>Markierte News</translation>
</message>
<message>
<location filename="../qml/newsqml/NewsTab.qml" line="209"/>
<location filename="../qml/newsqml/NewsTab.qml" line="230"/>
<source>Conversations</source>
<translation>Unterhaltungen</translation>
</message>
<message>
<location filename="../qml/newsqml/NewsTab.qml" line="54"/>
<location filename="../qml/newsqml/NewsTab.qml" line="56"/>
<source>Network Error</source>
<translation>Netzwerk-Fehler</translation>
</message>
<message>
<location filename="../qml/newsqml/NewsTab.qml" line="225"/>
<location filename="../qml/newsqml/NewsTab.qml" line="246"/>
<source>Replies</source>
<translation>Interaktionen</translation>
</message>
<message>
<location filename="../qml/newsqml/NewsTab.qml" line="254"/>
<source>Public timeline</source>
<translation>Gemeinschaft</translation>
</message>
<message>
<location filename="../qml/newsqml/NewsTab.qml" line="234"/>
<location filename="../qml/newsqml/NewsTab.qml" line="263"/>
<source>Direct Messages</source>
<translation>Direktnachrichten</translation>
</message>
<message>
<location filename="../qml/newsqml/NewsTab.qml" line="242"/>
<location filename="../qml/newsqml/NewsTab.qml" line="271"/>
<source>Notifications</source>
<translation>Meldungen</translation>
</message>
<message>
<location filename="../qml/newsqml/NewsTab.qml" line="251"/>
<location filename="../qml/newsqml/NewsTab.qml" line="280"/>
<source>Group news</source>
<translation>News Gruppe</translation>
</message>
<message>
<location filename="../qml/newsqml/NewsTab.qml" line="259"/>
<location filename="../qml/newsqml/NewsTab.qml" line="288"/>
<source>Quit</source>
<translation>Schliessen</translation>
</message>
@ -391,60 +411,65 @@
<translation> Kommentare</translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="281"/>
<location filename="../qml/newsqml/Newsitem.qml" line="283"/>
<source>Attending: </source>
<translation>Teilnahme: </translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="403"/>
<location filename="../qml/newsqml/Newsitem.qml" line="405"/>
<source>Reply</source>
<translation>Antworten</translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="411"/>
<location filename="../qml/newsqml/Newsitem.qml" line="413"/>
<source>DM</source>
<translation>Direktnachricht</translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="417"/>
<location filename="../qml/newsqml/Newsitem.qml" line="419"/>
<source>Repost</source>
<translation>Teilen</translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="420"/>
<location filename="../qml/newsqml/Newsitem.qml" line="422"/>
<source>Success!</source>
<translation>Erledigt!</translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="425"/>
<location filename="../qml/newsqml/Newsitem.qml" line="427"/>
<source>Conversation</source>
<translation>Unterhaltung</translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="435"/>
<location filename="../qml/newsqml/Newsitem.qml" line="437"/>
<source>Attending</source>
<translation>Teilnahme</translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="437"/>
<location filename="../qml/newsqml/Newsitem.qml" line="439"/>
<source>yes</source>
<translation>ja</translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="442"/>
<location filename="../qml/newsqml/Newsitem.qml" line="444"/>
<source>maybe</source>
<translation>vielleicht</translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="447"/>
<location filename="../qml/newsqml/Newsitem.qml" line="449"/>
<source>no</source>
<translation>nein</translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="454"/>
<location filename="../qml/newsqml/Newsitem.qml" line="456"/>
<source>Delete</source>
<translation>Löschen</translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="465"/>
<source>Post</source>
<translation></translation>
</message>
</context>
<context>
<name>PermissionDialog</name>
@ -676,37 +701,37 @@
<translation>Homepage</translation>
</message>
<message>
<location filename="../qml/contactqml/ProfileComponent.qml" line="176"/>
<location filename="../qml/contactqml/ProfileComponent.qml" line="177"/>
<source>Update</source>
<translation>Aktualisieren</translation>
</message>
<message>
<location filename="../qml/contactqml/ProfileComponent.qml" line="208"/>
<location filename="../qml/contactqml/ProfileComponent.qml" line="209"/>
<source>profile id</source>
<translation>Profil-Nummer</translation>
</message>
<message>
<location filename="../qml/contactqml/ProfileComponent.qml" line="232"/>
<location filename="../qml/contactqml/ProfileComponent.qml" line="233"/>
<source>Description</source>
<translation>Beschreibung</translation>
</message>
<message>
<location filename="../qml/contactqml/ProfileComponent.qml" line="232"/>
<location filename="../qml/contactqml/ProfileComponent.qml" line="233"/>
<source>Location</source>
<translation>Ort</translation>
</message>
<message>
<location filename="../qml/contactqml/ProfileComponent.qml" line="232"/>
<location filename="../qml/contactqml/ProfileComponent.qml" line="233"/>
<source>Posts</source>
<translation>Beiträge</translation>
</message>
<message>
<location filename="../qml/contactqml/ProfileComponent.qml" line="233"/>
<location filename="../qml/contactqml/ProfileComponent.qml" line="234"/>
<source>URL</source>
<translation>Profilseite</translation>
</message>
<message>
<location filename="../qml/contactqml/ProfileComponent.qml" line="234"/>
<location filename="../qml/contactqml/ProfileComponent.qml" line="235"/>
<source>Created at</source>
<translation>Erstellt</translation>
</message>
@ -802,66 +827,66 @@
<translation>vielleicht</translation>
</message>
<message>
<location filename="../js/newsworker.js" line="143"/>
<location filename="../js/newsworker.js" line="172"/>
<source>seconds</source>
<translation>Sekunden</translation>
</message>
<message>
<location filename="../js/newsworker.js" line="143"/>
<location filename="../js/newsworker.js" line="144"/>
<location filename="../js/newsworker.js" line="145"/>
<location filename="../js/newsworker.js" line="146"/>
<location filename="../js/newsworker.js" line="147"/>
<location filename="../js/newsworker.js" line="148"/>
<location filename="../js/newsworker.js" line="149"/>
<location filename="../js/newsworker.js" line="150"/>
<location filename="../js/newsworker.js" line="151"/>
<location filename="../js/newsworker.js" line="152"/>
<location filename="../js/newsworker.js" line="172"/>
<location filename="../js/newsworker.js" line="173"/>
<location filename="../js/newsworker.js" line="174"/>
<location filename="../js/newsworker.js" line="175"/>
<location filename="../js/newsworker.js" line="176"/>
<location filename="../js/newsworker.js" line="177"/>
<location filename="../js/newsworker.js" line="178"/>
<location filename="../js/newsworker.js" line="179"/>
<location filename="../js/newsworker.js" line="180"/>
<location filename="../js/newsworker.js" line="181"/>
<source>ago</source>
<translation>her</translation>
</message>
<message>
<location filename="../js/newsworker.js" line="144"/>
<location filename="../js/newsworker.js" line="173"/>
<source>minute</source>
<translation>Minute</translation>
</message>
<message>
<location filename="../js/newsworker.js" line="145"/>
<location filename="../js/newsworker.js" line="174"/>
<source>minutes</source>
<translation>Minuten</translation>
</message>
<message>
<location filename="../js/newsworker.js" line="146"/>
<location filename="../js/newsworker.js" line="175"/>
<source>hour</source>
<translation>Stunde</translation>
</message>
<message>
<location filename="../js/newsworker.js" line="147"/>
<location filename="../js/newsworker.js" line="176"/>
<source>hours</source>
<translation>Stunden</translation>
</message>
<message>
<location filename="../js/newsworker.js" line="148"/>
<location filename="../js/newsworker.js" line="177"/>
<source>day</source>
<translation>Tag</translation>
</message>
<message>
<location filename="../js/newsworker.js" line="149"/>
<location filename="../js/newsworker.js" line="178"/>
<source>days</source>
<translation>Tage</translation>
</message>
<message>
<location filename="../js/newsworker.js" line="150"/>
<location filename="../js/newsworker.js" line="179"/>
<source>month</source>
<translation>Monat</translation>
</message>
<message>
<location filename="../js/newsworker.js" line="151"/>
<location filename="../js/newsworker.js" line="180"/>
<source>months</source>
<translation>Monate</translation>
</message>
<message>
<location filename="../js/newsworker.js" line="152"/>
<location filename="../js/newsworker.js" line="181"/>
<source>years</source>
<translation></translation>
</message>
@ -873,12 +898,12 @@
<translation type="vanished">Fehler</translation>
</message>
<message>
<location filename="../js/service.js" line="363"/>
<location filename="../js/service.js" line="390"/>
<source>Undefined Array Error</source>
<translation>Antwort-Array ungültig</translation>
</message>
<message>
<location filename="../js/service.js" line="366"/>
<location filename="../js/service.js" line="393"/>
<source>JSON status Error</source>
<translation>Server-Antwort: Fehler</translation>
</message>

View file

@ -18,8 +18,8 @@
<name>ConfigTab</name>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="69"/>
<location filename="../qml/configqml/ConfigTab.qml" line="351"/>
<location filename="../qml/configqml/ConfigTab.qml" line="374"/>
<location filename="../qml/configqml/ConfigTab.qml" line="402"/>
<location filename="../qml/configqml/ConfigTab.qml" line="425"/>
<source>User</source>
<translation>Usuario</translation>
</message>
@ -29,58 +29,58 @@
<translation>Servidor</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="100"/>
<location filename="../qml/configqml/ConfigTab.qml" line="101"/>
<source>Nickname</source>
<translation>Usuario</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="105"/>
<location filename="../qml/configqml/ConfigTab.qml" line="107"/>
<source>Password</source>
<translation>Contraseña</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="109"/>
<location filename="../qml/configqml/ConfigTab.qml" line="112"/>
<source>Image dir.</source>
<translation>Dir. de imágenes</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="114"/>
<location filename="../qml/configqml/ConfigTab.qml" line="118"/>
<source>Max. News</source>
<translation> Max. de noticias.</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="118"/>
<location filename="../qml/configqml/ConfigTab.qml" line="123"/>
<source>News as</source>
<translation>Noticias como</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="122"/>
<source>Interval (0=None)</source>
<translation>Intervalo (0=ningún)</translation>
<translation type="vanished">Intervalo (0=ningún)</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="304"/>
<location filename="../qml/configqml/ConfigTab.qml" line="328"/>
<location filename="../qml/configqml/ConfigTab.qml" line="198"/>
<location filename="../qml/configqml/ConfigTab.qml" line="350"/>
<location filename="../qml/configqml/ConfigTab.qml" line="377"/>
<source>Error</source>
<translation>Error</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="289"/>
<location filename="../qml/configqml/ConfigTab.qml" line="335"/>
<source>Confirm</source>
<translation>Confirmar</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="293"/>
<location filename="../qml/configqml/ConfigTab.qml" line="339"/>
<source>No server given! </source>
<translation>¡Servidor no encontrado!</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="294"/>
<location filename="../qml/configqml/ConfigTab.qml" line="340"/>
<source>No nickname given! </source>
<translation>¡Usuario incorrecto!</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="295"/>
<location filename="../qml/configqml/ConfigTab.qml" line="341"/>
<source>Nickname not registered at given server! </source>
<translation>¡Usuario incorrecto!</translation>
</message>
@ -89,42 +89,57 @@
<translation type="vanished">¡Usuario incorrecto!</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="296"/>
<location filename="../qml/configqml/ConfigTab.qml" line="128"/>
<source>Sync Interval (0=None)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="198"/>
<source>Nicknames containing @ symbol currently not supported</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="315"/>
<source>Min.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="342"/>
<source>No password given! </source>
<translation>¡Contraseña incorrecta!</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="297"/>
<location filename="../qml/configqml/ConfigTab.qml" line="343"/>
<source>No image directory given!</source>
<translation>¡No se ha encontrado el directorio de imágenes!</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="298"/>
<location filename="../qml/configqml/ConfigTab.qml" line="344"/>
<source>No maximum news number given!</source>
<translation>¡ máximo de noticias incorrecto!</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="304"/>
<location filename="../qml/configqml/ConfigTab.qml" line="350"/>
<source>Wrong password!</source>
<translation>¡Contraseña incorrecta!</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="323"/>
<location filename="../qml/configqml/ConfigTab.qml" line="372"/>
<source>Success</source>
<translation>éxito!</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="323"/>
<location filename="../qml/configqml/ConfigTab.qml" line="372"/>
<source>Name</source>
<translation>Nombre</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="389"/>
<location filename="../qml/configqml/ConfigTab.qml" line="440"/>
<source>Timeline</source>
<translation>Cronología</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="393"/>
<location filename="../qml/configqml/ConfigTab.qml" line="444"/>
<source>Conversations</source>
<translation>Conversaciones</translation>
</message>
@ -178,27 +193,27 @@
<translation>Conectar</translation>
</message>
<message>
<location filename="../qml/newsqml/ContactPage.qml" line="152"/>
<location filename="../qml/newsqml/ContactPage.qml" line="151"/>
<source>Description</source>
<translation>Descripción</translation>
</message>
<message>
<location filename="../qml/newsqml/ContactPage.qml" line="152"/>
<location filename="../qml/newsqml/ContactPage.qml" line="151"/>
<source>Location</source>
<translation>Localización</translation>
</message>
<message>
<location filename="../qml/newsqml/ContactPage.qml" line="152"/>
<location filename="../qml/newsqml/ContactPage.qml" line="151"/>
<source>Posts</source>
<translation>Mensajes</translation>
</message>
<message>
<location filename="../qml/newsqml/ContactPage.qml" line="153"/>
<location filename="../qml/newsqml/ContactPage.qml" line="152"/>
<source>URL</source>
<translation>URL</translation>
</message>
<message>
<location filename="../qml/newsqml/ContactPage.qml" line="154"/>
<location filename="../qml/newsqml/ContactPage.qml" line="153"/>
<source>Created at</source>
<translation>Creado en</translation>
</message>
@ -294,12 +309,12 @@
<translation type="vanished">Descargar la imagen del perfil para </translation>
</message>
<message>
<location filename="../qml/newsqml/NewsTab.qml" line="330"/>
<location filename="../qml/newsqml/NewsTab.qml" line="359"/>
<source>More</source>
<translation>Mas</translation>
</message>
<message>
<location filename="../qml/newsqml/NewsTab.qml" line="200"/>
<location filename="../qml/newsqml/NewsTab.qml" line="221"/>
<source>Timeline</source>
<translation>Cronología</translation>
</message>
@ -308,42 +323,47 @@
<translation type="obsolete">Error</translation>
</message>
<message>
<location filename="../qml/newsqml/NewsTab.qml" line="217"/>
<location filename="../qml/newsqml/NewsTab.qml" line="238"/>
<source>Favorites</source>
<translation>Favoritos</translation>
</message>
<message>
<location filename="../qml/newsqml/NewsTab.qml" line="209"/>
<location filename="../qml/newsqml/NewsTab.qml" line="230"/>
<source>Conversations</source>
<translation>Conversaciones</translation>
</message>
<message>
<location filename="../qml/newsqml/NewsTab.qml" line="54"/>
<location filename="../qml/newsqml/NewsTab.qml" line="56"/>
<source>Network Error</source>
<translation>Fallo de red</translation>
</message>
<message>
<location filename="../qml/newsqml/NewsTab.qml" line="225"/>
<location filename="../qml/newsqml/NewsTab.qml" line="246"/>
<source>Replies</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/newsqml/NewsTab.qml" line="254"/>
<source>Public timeline</source>
<translation>Cronología pública</translation>
</message>
<message>
<location filename="../qml/newsqml/NewsTab.qml" line="234"/>
<location filename="../qml/newsqml/NewsTab.qml" line="263"/>
<source>Direct Messages</source>
<translation>Mensaje directo</translation>
</message>
<message>
<location filename="../qml/newsqml/NewsTab.qml" line="242"/>
<location filename="../qml/newsqml/NewsTab.qml" line="271"/>
<source>Notifications</source>
<translation>Notificaciones</translation>
</message>
<message>
<location filename="../qml/newsqml/NewsTab.qml" line="251"/>
<location filename="../qml/newsqml/NewsTab.qml" line="280"/>
<source>Group news</source>
<translation>Grupos</translation>
</message>
<message>
<location filename="../qml/newsqml/NewsTab.qml" line="259"/>
<location filename="../qml/newsqml/NewsTab.qml" line="288"/>
<source>Quit</source>
<translation>Salida</translation>
</message>
@ -376,60 +396,65 @@
<translation> comentarios</translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="281"/>
<location filename="../qml/newsqml/Newsitem.qml" line="283"/>
<source>Attending: </source>
<translation>Asistiendo: </translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="403"/>
<location filename="../qml/newsqml/Newsitem.qml" line="405"/>
<source>Reply</source>
<translation>Respuesta</translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="411"/>
<location filename="../qml/newsqml/Newsitem.qml" line="413"/>
<source>DM</source>
<translation>Mensaje directo</translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="417"/>
<location filename="../qml/newsqml/Newsitem.qml" line="419"/>
<source>Repost</source>
<translation>Volver a publicar</translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="420"/>
<location filename="../qml/newsqml/Newsitem.qml" line="422"/>
<source>Success!</source>
<translation>éxito!</translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="425"/>
<location filename="../qml/newsqml/Newsitem.qml" line="427"/>
<source>Conversation</source>
<translation>Conversación</translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="435"/>
<location filename="../qml/newsqml/Newsitem.qml" line="437"/>
<source>Attending</source>
<translation>Asistiendo</translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="437"/>
<location filename="../qml/newsqml/Newsitem.qml" line="439"/>
<source>yes</source>
<translation>si</translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="442"/>
<location filename="../qml/newsqml/Newsitem.qml" line="444"/>
<source>maybe</source>
<translation>quizás</translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="447"/>
<location filename="../qml/newsqml/Newsitem.qml" line="449"/>
<source>no</source>
<translation>no</translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="454"/>
<location filename="../qml/newsqml/Newsitem.qml" line="456"/>
<source>Delete</source>
<translation>Borrar</translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="465"/>
<source>Post</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>PermissionDialog</name>
@ -661,37 +686,37 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/contactqml/ProfileComponent.qml" line="176"/>
<location filename="../qml/contactqml/ProfileComponent.qml" line="177"/>
<source>Update</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/contactqml/ProfileComponent.qml" line="208"/>
<location filename="../qml/contactqml/ProfileComponent.qml" line="209"/>
<source>profile id</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/contactqml/ProfileComponent.qml" line="232"/>
<location filename="../qml/contactqml/ProfileComponent.qml" line="233"/>
<source>Description</source>
<translation type="unfinished">Descripción</translation>
</message>
<message>
<location filename="../qml/contactqml/ProfileComponent.qml" line="232"/>
<location filename="../qml/contactqml/ProfileComponent.qml" line="233"/>
<source>Location</source>
<translation type="unfinished">Localización</translation>
</message>
<message>
<location filename="../qml/contactqml/ProfileComponent.qml" line="232"/>
<location filename="../qml/contactqml/ProfileComponent.qml" line="233"/>
<source>Posts</source>
<translation type="unfinished">Mensajes</translation>
</message>
<message>
<location filename="../qml/contactqml/ProfileComponent.qml" line="233"/>
<location filename="../qml/contactqml/ProfileComponent.qml" line="234"/>
<source>URL</source>
<translation type="unfinished">URL</translation>
</message>
<message>
<location filename="../qml/contactqml/ProfileComponent.qml" line="234"/>
<location filename="../qml/contactqml/ProfileComponent.qml" line="235"/>
<source>Created at</source>
<translation type="unfinished">Creado en</translation>
</message>
@ -787,66 +812,66 @@
<translation>quizás</translation>
</message>
<message>
<location filename="../js/newsworker.js" line="143"/>
<location filename="../js/newsworker.js" line="172"/>
<source>seconds</source>
<translation>Segundos</translation>
</message>
<message>
<location filename="../js/newsworker.js" line="143"/>
<location filename="../js/newsworker.js" line="144"/>
<location filename="../js/newsworker.js" line="145"/>
<location filename="../js/newsworker.js" line="146"/>
<location filename="../js/newsworker.js" line="147"/>
<location filename="../js/newsworker.js" line="148"/>
<location filename="../js/newsworker.js" line="149"/>
<location filename="../js/newsworker.js" line="150"/>
<location filename="../js/newsworker.js" line="151"/>
<location filename="../js/newsworker.js" line="152"/>
<location filename="../js/newsworker.js" line="172"/>
<location filename="../js/newsworker.js" line="173"/>
<location filename="../js/newsworker.js" line="174"/>
<location filename="../js/newsworker.js" line="175"/>
<location filename="../js/newsworker.js" line="176"/>
<location filename="../js/newsworker.js" line="177"/>
<location filename="../js/newsworker.js" line="178"/>
<location filename="../js/newsworker.js" line="179"/>
<location filename="../js/newsworker.js" line="180"/>
<location filename="../js/newsworker.js" line="181"/>
<source>ago</source>
<translation>hace</translation>
</message>
<message>
<location filename="../js/newsworker.js" line="144"/>
<location filename="../js/newsworker.js" line="173"/>
<source>minute</source>
<translation>Minuto</translation>
</message>
<message>
<location filename="../js/newsworker.js" line="145"/>
<location filename="../js/newsworker.js" line="174"/>
<source>minutes</source>
<translation>Minutos</translation>
</message>
<message>
<location filename="../js/newsworker.js" line="146"/>
<location filename="../js/newsworker.js" line="175"/>
<source>hour</source>
<translation>Hora</translation>
</message>
<message>
<location filename="../js/newsworker.js" line="147"/>
<location filename="../js/newsworker.js" line="176"/>
<source>hours</source>
<translation>Horas</translation>
</message>
<message>
<location filename="../js/newsworker.js" line="148"/>
<location filename="../js/newsworker.js" line="177"/>
<source>day</source>
<translation>Dia</translation>
</message>
<message>
<location filename="../js/newsworker.js" line="149"/>
<location filename="../js/newsworker.js" line="178"/>
<source>days</source>
<translation>Dias</translation>
</message>
<message>
<location filename="../js/newsworker.js" line="150"/>
<location filename="../js/newsworker.js" line="179"/>
<source>month</source>
<translation>Mes</translation>
</message>
<message>
<location filename="../js/newsworker.js" line="151"/>
<location filename="../js/newsworker.js" line="180"/>
<source>months</source>
<translation>Meses</translation>
</message>
<message>
<location filename="../js/newsworker.js" line="152"/>
<location filename="../js/newsworker.js" line="181"/>
<source>years</source>
<translation>Años</translation>
</message>
@ -858,12 +883,12 @@
<translation type="obsolete">Error</translation>
</message>
<message>
<location filename="../js/service.js" line="363"/>
<location filename="../js/service.js" line="390"/>
<source>Undefined Array Error</source>
<translation></translation>
</message>
<message>
<location filename="../js/service.js" line="366"/>
<location filename="../js/service.js" line="393"/>
<source>JSON status Error</source>
<translation></translation>
</message>

View file

@ -18,8 +18,8 @@
<name>ConfigTab</name>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="69"/>
<location filename="../qml/configqml/ConfigTab.qml" line="351"/>
<location filename="../qml/configqml/ConfigTab.qml" line="374"/>
<location filename="../qml/configqml/ConfigTab.qml" line="402"/>
<location filename="../qml/configqml/ConfigTab.qml" line="425"/>
<source>User</source>
<translation>Utente</translation>
</message>
@ -29,58 +29,58 @@
<translation>Server</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="100"/>
<location filename="../qml/configqml/ConfigTab.qml" line="101"/>
<source>Nickname</source>
<translation>Utente</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="105"/>
<location filename="../qml/configqml/ConfigTab.qml" line="107"/>
<source>Password</source>
<translation>Password</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="109"/>
<location filename="../qml/configqml/ConfigTab.qml" line="112"/>
<source>Image dir.</source>
<translation>Directory immagini</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="114"/>
<location filename="../qml/configqml/ConfigTab.qml" line="118"/>
<source>Max. News</source>
<translation> Max. di notizie</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="118"/>
<location filename="../qml/configqml/ConfigTab.qml" line="123"/>
<source>News as</source>
<translation>News come</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="122"/>
<source>Interval (0=None)</source>
<translation>Intervallo (0=nessuno)</translation>
<translation type="vanished">Intervallo (0=nessuno)</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="304"/>
<location filename="../qml/configqml/ConfigTab.qml" line="328"/>
<location filename="../qml/configqml/ConfigTab.qml" line="198"/>
<location filename="../qml/configqml/ConfigTab.qml" line="350"/>
<location filename="../qml/configqml/ConfigTab.qml" line="377"/>
<source>Error</source>
<translation>Errore</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="289"/>
<location filename="../qml/configqml/ConfigTab.qml" line="335"/>
<source>Confirm</source>
<translation>Conferma</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="293"/>
<location filename="../qml/configqml/ConfigTab.qml" line="339"/>
<source>No server given! </source>
<translation>Nessun server inserito!</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="294"/>
<location filename="../qml/configqml/ConfigTab.qml" line="340"/>
<source>No nickname given! </source>
<translation>Nessun utente inserito!</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="295"/>
<location filename="../qml/configqml/ConfigTab.qml" line="341"/>
<source>Nickname not registered at given server! </source>
<translation></translation>
</message>
@ -89,42 +89,57 @@
<translation type="vanished">Nessun utente inserito!</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="296"/>
<location filename="../qml/configqml/ConfigTab.qml" line="128"/>
<source>Sync Interval (0=None)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="198"/>
<source>Nicknames containing @ symbol currently not supported</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="315"/>
<source>Min.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="342"/>
<source>No password given! </source>
<translation>Nessuna password inserita!</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="297"/>
<location filename="../qml/configqml/ConfigTab.qml" line="343"/>
<source>No image directory given!</source>
<translation>Nessuna directory immagini inserita!</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="298"/>
<location filename="../qml/configqml/ConfigTab.qml" line="344"/>
<source>No maximum news number given!</source>
<translation>Nessun numero massimo di news inserito!</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="304"/>
<location filename="../qml/configqml/ConfigTab.qml" line="350"/>
<source>Wrong password!</source>
<translation></translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="323"/>
<location filename="../qml/configqml/ConfigTab.qml" line="372"/>
<source>Success</source>
<translation>Ha funzionato!</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="323"/>
<location filename="../qml/configqml/ConfigTab.qml" line="372"/>
<source>Name</source>
<translation></translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="389"/>
<location filename="../qml/configqml/ConfigTab.qml" line="440"/>
<source>Timeline</source>
<translation>Cronologia</translation>
</message>
<message>
<location filename="../qml/configqml/ConfigTab.qml" line="393"/>
<location filename="../qml/configqml/ConfigTab.qml" line="444"/>
<source>Conversations</source>
<translation>Conversazioni</translation>
</message>
@ -178,27 +193,27 @@
<translation>Connetti</translation>
</message>
<message>
<location filename="../qml/newsqml/ContactPage.qml" line="152"/>
<location filename="../qml/newsqml/ContactPage.qml" line="151"/>
<source>Description</source>
<translation>Descrizione</translation>
</message>
<message>
<location filename="../qml/newsqml/ContactPage.qml" line="152"/>
<location filename="../qml/newsqml/ContactPage.qml" line="151"/>
<source>Location</source>
<translation>Località</translation>
</message>
<message>
<location filename="../qml/newsqml/ContactPage.qml" line="152"/>
<location filename="../qml/newsqml/ContactPage.qml" line="151"/>
<source>Posts</source>
<translation>Messaggi</translation>
</message>
<message>
<location filename="../qml/newsqml/ContactPage.qml" line="153"/>
<location filename="../qml/newsqml/ContactPage.qml" line="152"/>
<source>URL</source>
<translation>URL</translation>
</message>
<message>
<location filename="../qml/newsqml/ContactPage.qml" line="154"/>
<location filename="../qml/newsqml/ContactPage.qml" line="153"/>
<source>Created at</source>
<translation>Creato il</translation>
</message>
@ -294,12 +309,12 @@
<translation type="vanished">Download immagine profilo per </translation>
</message>
<message>
<location filename="../qml/newsqml/NewsTab.qml" line="330"/>
<location filename="../qml/newsqml/NewsTab.qml" line="359"/>
<source>More</source>
<translation>Ancora</translation>
</message>
<message>
<location filename="../qml/newsqml/NewsTab.qml" line="200"/>
<location filename="../qml/newsqml/NewsTab.qml" line="221"/>
<source>Timeline</source>
<translation>Cronologia</translation>
</message>
@ -308,42 +323,47 @@
<translation type="obsolete">Errore</translation>
</message>
<message>
<location filename="../qml/newsqml/NewsTab.qml" line="217"/>
<location filename="../qml/newsqml/NewsTab.qml" line="238"/>
<source>Favorites</source>
<translation>Favoriti</translation>
</message>
<message>
<location filename="../qml/newsqml/NewsTab.qml" line="209"/>
<location filename="../qml/newsqml/NewsTab.qml" line="230"/>
<source>Conversations</source>
<translation>Conversazioni</translation>
</message>
<message>
<location filename="../qml/newsqml/NewsTab.qml" line="54"/>
<location filename="../qml/newsqml/NewsTab.qml" line="56"/>
<source>Network Error</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/newsqml/NewsTab.qml" line="225"/>
<location filename="../qml/newsqml/NewsTab.qml" line="246"/>
<source>Replies</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/newsqml/NewsTab.qml" line="254"/>
<source>Public timeline</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/newsqml/NewsTab.qml" line="234"/>
<location filename="../qml/newsqml/NewsTab.qml" line="263"/>
<source>Direct Messages</source>
<translation>Messaggio diretto</translation>
</message>
<message>
<location filename="../qml/newsqml/NewsTab.qml" line="242"/>
<location filename="../qml/newsqml/NewsTab.qml" line="271"/>
<source>Notifications</source>
<translation>Notifiche</translation>
</message>
<message>
<location filename="../qml/newsqml/NewsTab.qml" line="251"/>
<location filename="../qml/newsqml/NewsTab.qml" line="280"/>
<source>Group news</source>
<translation>Gruppi</translation>
</message>
<message>
<location filename="../qml/newsqml/NewsTab.qml" line="259"/>
<location filename="../qml/newsqml/NewsTab.qml" line="288"/>
<source>Quit</source>
<translation type="unfinished"></translation>
</message>
@ -376,60 +396,65 @@
<translation> commenti</translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="281"/>
<location filename="../qml/newsqml/Newsitem.qml" line="283"/>
<source>Attending: </source>
<translation>Attendi: </translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="403"/>
<location filename="../qml/newsqml/Newsitem.qml" line="405"/>
<source>Reply</source>
<translation>Risposta</translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="411"/>
<location filename="../qml/newsqml/Newsitem.qml" line="413"/>
<source>DM</source>
<translation>Messaggio diretto</translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="417"/>
<location filename="../qml/newsqml/Newsitem.qml" line="419"/>
<source>Repost</source>
<translation>Condividi</translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="420"/>
<location filename="../qml/newsqml/Newsitem.qml" line="422"/>
<source>Success!</source>
<translation>Ha funzionato!</translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="425"/>
<location filename="../qml/newsqml/Newsitem.qml" line="427"/>
<source>Conversation</source>
<translation>Conversazione</translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="435"/>
<location filename="../qml/newsqml/Newsitem.qml" line="437"/>
<source>Attending</source>
<translation>Attendi</translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="437"/>
<location filename="../qml/newsqml/Newsitem.qml" line="439"/>
<source>yes</source>
<translation>si</translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="442"/>
<location filename="../qml/newsqml/Newsitem.qml" line="444"/>
<source>maybe</source>
<translation>potrebbe</translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="447"/>
<location filename="../qml/newsqml/Newsitem.qml" line="449"/>
<source>no</source>
<translation>no</translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="454"/>
<location filename="../qml/newsqml/Newsitem.qml" line="456"/>
<source>Delete</source>
<translation>Cancella</translation>
</message>
<message>
<location filename="../qml/newsqml/Newsitem.qml" line="465"/>
<source>Post</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>PermissionDialog</name>
@ -661,37 +686,37 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/contactqml/ProfileComponent.qml" line="176"/>
<location filename="../qml/contactqml/ProfileComponent.qml" line="177"/>
<source>Update</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/contactqml/ProfileComponent.qml" line="208"/>
<location filename="../qml/contactqml/ProfileComponent.qml" line="209"/>
<source>profile id</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/contactqml/ProfileComponent.qml" line="232"/>
<location filename="../qml/contactqml/ProfileComponent.qml" line="233"/>
<source>Description</source>
<translation type="unfinished">Descrizione</translation>
</message>
<message>
<location filename="../qml/contactqml/ProfileComponent.qml" line="232"/>
<location filename="../qml/contactqml/ProfileComponent.qml" line="233"/>
<source>Location</source>
<translation type="unfinished">Località</translation>
</message>
<message>
<location filename="../qml/contactqml/ProfileComponent.qml" line="232"/>
<location filename="../qml/contactqml/ProfileComponent.qml" line="233"/>
<source>Posts</source>
<translation type="unfinished">Messaggi</translation>
</message>
<message>
<location filename="../qml/contactqml/ProfileComponent.qml" line="233"/>
<location filename="../qml/contactqml/ProfileComponent.qml" line="234"/>
<source>URL</source>
<translation type="unfinished">URL</translation>
</message>
<message>
<location filename="../qml/contactqml/ProfileComponent.qml" line="234"/>
<location filename="../qml/contactqml/ProfileComponent.qml" line="235"/>
<source>Created at</source>
<translation type="unfinished">Creato il</translation>
</message>
@ -787,66 +812,66 @@
<translation>potrebbe</translation>
</message>
<message>
<location filename="../js/newsworker.js" line="143"/>
<location filename="../js/newsworker.js" line="172"/>
<source>seconds</source>
<translation>secondi</translation>
</message>
<message>
<location filename="../js/newsworker.js" line="143"/>
<location filename="../js/newsworker.js" line="144"/>
<location filename="../js/newsworker.js" line="145"/>
<location filename="../js/newsworker.js" line="146"/>
<location filename="../js/newsworker.js" line="147"/>
<location filename="../js/newsworker.js" line="148"/>
<location filename="../js/newsworker.js" line="149"/>
<location filename="../js/newsworker.js" line="150"/>
<location filename="../js/newsworker.js" line="151"/>
<location filename="../js/newsworker.js" line="152"/>
<location filename="../js/newsworker.js" line="172"/>
<location filename="../js/newsworker.js" line="173"/>
<location filename="../js/newsworker.js" line="174"/>
<location filename="../js/newsworker.js" line="175"/>
<location filename="../js/newsworker.js" line="176"/>
<location filename="../js/newsworker.js" line="177"/>
<location filename="../js/newsworker.js" line="178"/>
<location filename="../js/newsworker.js" line="179"/>
<location filename="../js/newsworker.js" line="180"/>
<location filename="../js/newsworker.js" line="181"/>
<source>ago</source>
<translation>fa</translation>
</message>
<message>
<location filename="../js/newsworker.js" line="144"/>
<location filename="../js/newsworker.js" line="173"/>
<source>minute</source>
<translation>minuti</translation>
</message>
<message>
<location filename="../js/newsworker.js" line="145"/>
<location filename="../js/newsworker.js" line="174"/>
<source>minutes</source>
<translation>minuti</translation>
</message>
<message>
<location filename="../js/newsworker.js" line="146"/>
<location filename="../js/newsworker.js" line="175"/>
<source>hour</source>
<translation>ora</translation>
</message>
<message>
<location filename="../js/newsworker.js" line="147"/>
<location filename="../js/newsworker.js" line="176"/>
<source>hours</source>
<translation>ore</translation>
</message>
<message>
<location filename="../js/newsworker.js" line="148"/>
<location filename="../js/newsworker.js" line="177"/>
<source>day</source>
<translation>giorno</translation>
</message>
<message>
<location filename="../js/newsworker.js" line="149"/>
<location filename="../js/newsworker.js" line="178"/>
<source>days</source>
<translation>giorni</translation>
</message>
<message>
<location filename="../js/newsworker.js" line="150"/>
<location filename="../js/newsworker.js" line="179"/>
<source>month</source>
<translation>mese</translation>
</message>
<message>
<location filename="../js/newsworker.js" line="151"/>
<location filename="../js/newsworker.js" line="180"/>
<source>months</source>
<translation>mesi</translation>
</message>
<message>
<location filename="../js/newsworker.js" line="152"/>
<location filename="../js/newsworker.js" line="181"/>
<source>years</source>
<translation>anni</translation>
</message>
@ -858,12 +883,12 @@
<translation type="obsolete">Errore</translation>
</message>
<message>
<location filename="../js/service.js" line="363"/>
<location filename="../js/service.js" line="390"/>
<source>Undefined Array Error</source>
<translation></translation>
</message>
<message>
<location filename="../js/service.js" line="366"/>
<location filename="../js/service.js" line="393"/>
<source>JSON status Error</source>
<translation></translation>
</message>