Commit 01f005b6 authored by Karel Slaný's avatar Karel Slaný

Mostly updated copyright statement in modified files.

parent 147ab012
......@@ -525,7 +525,7 @@ MsgInfo *Files::zfoData(const QVariant &attachModelVariant,
QString idStr, annot, htmlDescr, emailBody;
bool ret = parseXmlData(&type, &idStr, &annot, &htmlDescr,
FileListModel::modelFromVariant(attachModelVariant),
FileListModel::fromVariant(attachModelVariant),
&emailBody, getXmlFromCms(rawZfoData));
return ret ?
......@@ -559,7 +559,7 @@ void Files::sendAttachmentEmailZfo(const QVariant &attachModelVariant,
/* Obtain pointer to attachment model. */
const FileListModel *attachModel =
FileListModel::modelFromVariant(attachModelVariant);
FileListModel::fromVariant(attachModelVariant);
if (attachModel == Q_NULLPTR) {
Q_ASSERT(0);
return;
......@@ -717,7 +717,7 @@ void Files::saveAttachmentsToDiskZfo(const QVariant &attachModelVariant,
/* Obtain pointer to attachment model. */
const FileListModel *attachModel =
FileListModel::modelFromVariant(attachModelVariant);
FileListModel::fromVariant(attachModelVariant);
if (attachModel == Q_NULLPTR) {
Q_ASSERT(0);
return;
......
......@@ -110,7 +110,7 @@ public:
*/
Q_INVOKABLE
bool deleteAttachmentsFromDb(const QString &userName, qint64 msgId);
//
/*!
* @brief Checks whether file is readable.
*
......
......@@ -353,9 +353,7 @@ int main(int argc, char *argv[])
}
/*
* Show dialogue with files to be opened.
*
* TODO -- Modify the app to display the content.
* Open files passed via command line.
*/
if (!cmdLineFileNames.isEmpty()) {
foreach (const QString &filePath, cmdLineFileNames) {
......
/*
* Copyright (C) 2014-2016 CZ.NIC
* Copyright (C) 2014-2017 CZ.NIC
*
* 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
......@@ -45,7 +45,6 @@ Messages::Messages(QObject *parent) : QObject(parent)
{
}
/* ========================================================================= */
/*
* Slot: Clear message model in QML.
......
......@@ -205,7 +205,7 @@ void FileListModel::clearAll(void)
endResetModel();
}
FileListModel *FileListModel::modelFromVariant(
FileListModel *FileListModel::fromVariant(
const QVariant &attachModelVariant)
{
if (!attachModelVariant.canConvert<QObject *>()) {
......
......@@ -152,12 +152,13 @@ public:
* @note Some weird stuff happens in QML when passing attachment model
* directly as constant reference. Wrong constructors are called
* and no data are passed. That's because we are using a QVariant.
* This function does not allocate a new model.
*
* @param[in] attachModelVariant QVariant holding attachment model.
* @return Pointer to model if it could be acquired, Q_NULLPTR else.
*/
static
FileListModel *modelFromVariant(const QVariant &attachModelVariant);
FileListModel *fromVariant(const QVariant &attachModelVariant);
/*!
* @brief Set content from database.
......
/*
* Copyright (C) 2014-2016 CZ.NIC
* Copyright (C) 2014-2017 CZ.NIC
*
* 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
......
/*
* Copyright (C) 2014-2016 CZ.NIC
* Copyright (C) 2014-2017 CZ.NIC
*
* 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
......@@ -39,7 +39,7 @@ class DbWrapper : public QObject {
Q_OBJECT
public:
DbWrapper(QObject *parent = 0);
DbWrapper(QObject *parent = Q_NULLPTR);
~DbWrapper(void);
/*!
......
/*
* Copyright (C) 2014-2016 CZ.NIC
* Copyright (C) 2014-2017 CZ.NIC
*
* 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
......@@ -29,15 +29,15 @@
#include "src/settings.h"
#include "src/widgets/paste_input_dialogue.h"
IsdsWrapper::IsdsWrapper(QObject *parent) : QObject(parent)
IsdsWrapper::IsdsWrapper(QObject *parent)
: QObject(parent)
{
}
IsdsWrapper::~IsdsWrapper()
IsdsWrapper::~IsdsWrapper(void)
{
}
/* ========================================================================= */
/*
* Slot: Download complete message.
......
/*
* Copyright (C) 2014-2016 CZ.NIC
* Copyright (C) 2014-2017 CZ.NIC
*
* 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
......@@ -38,8 +38,8 @@ class IsdsWrapper : public QObject {
Q_OBJECT
public:
explicit IsdsWrapper(QObject *parent = 0);
~IsdsWrapper();
explicit IsdsWrapper(QObject *parent = Q_NULLPTR);
~IsdsWrapper(void);
/* Methods which are calling from QML */
Q_INVOKABLE void syncAllAccounts(void);
......
/*
* Copyright (C) 2014-2016 CZ.NIC
* Copyright (C) 2014-2017 CZ.NIC
*
* 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
......@@ -21,7 +21,6 @@
* the two.
*/
#include <QDebug>
#include <QFileInfo>
......@@ -38,7 +37,6 @@ const QSet<QString> knowExp = QSet<QString> () <<
"odt" << "pdf" << "png" << "ppt" << "pptx" << "rtf" << "tiff" <<
"txt" << "wav" << "xls" << "xlsx" << "xml" << "zfo";
XmlLayer::XmlLayer(QObject *parent)
: QObject(parent)
{
......@@ -48,7 +46,6 @@ XmlLayer::~XmlLayer(void)
{
}
/* ========================================================================= */
/*
* Func: Connect and login to ISDS.
......
/*
* Copyright (C) 2014-2016 CZ.NIC
* Copyright (C) 2014-2017 CZ.NIC
*
* 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
......@@ -47,7 +47,7 @@ class XmlLayer : public QObject {
public:
XmlLayer(QObject *parent = 0);
XmlLayer(QObject *parent = Q_NULLPTR);
~XmlLayer(void);
/*!
......
/*
* Copyright (C) 2014-2015 CZ.NIC
* Copyright (C) 2014-2017 CZ.NIC
*
* 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
......@@ -21,7 +21,6 @@
* the two.
*/
#include <QDebug>
#include <QDir>
#include <QFile>
......
/*
* Copyright (C) 2014-2015 CZ.NIC
* Copyright (C) 2014-2017 CZ.NIC
*
* 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
......@@ -21,7 +21,6 @@
* the two.
*/
#ifndef _FILE_DB_H_
#define _FILE_DB_H_
......@@ -178,5 +177,4 @@ private:
QList<class SQLiteTbl *> listOfTables(void);
};
#endif /* _FILE_DB_H_ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment