Коммит ee27e5f1 создал по автору vladislav.larionov's avatar vladislav.larionov
Просмотр файлов

Remove Docviewer licenses

владелец 480a1449
......@@ -3,7 +3,7 @@
## Copyright (C) 2023 Open Mobile Platform LLC.
## Contact: https://community.omprussia.ru/open-source
##
## This file is part of the DocumentConverter project.
## This file is part of the OfficeViewer project.
##
## Redistribution and use in source and binary forms,
## with or without modification, are permitted provided
......@@ -51,16 +51,14 @@ SOURCES += \
src/filtermodel.cpp \
src/documentlistmodel.cpp \
src/trackerdocumentprovider.cpp \
src/documentprovider.cpp \
src/licensestatus.cpp
src/documentprovider.cpp
HEADERS += \
src/converter.h \
src/filtermodel.h \
src/documentlistmodel.h \
src/trackerdocumentprovider.h \
src/documentprovider.h \
src/licensestatus.h
src/documentprovider.h
INCLUDEPATH += \
LibreOfficeKit
......@@ -69,13 +67,11 @@ LIBS += -ldl
DISTFILES += \
qml/OfficeViewer.qml \
qml/dialogs/AcceptLicenseDialog.qml \
qml/images/Documents.svg \
qml/cover/CoverPage.qml \
qml/cover/CoverFileItem.qml \
qml/pages/FileListPage.qml \
qml/pages/SortTypeSelectionPage.qml \
licenses/*.txt
qml/pages/SortTypeSelectionPage.qml
AURORAAPP_ICONS = 86x86 108x108 128x128 172x172
......@@ -95,10 +91,6 @@ translations.files = $$TRANSLATIONS
INSTALLS += \
translations
licenses.path = /usr/share/$$TARGET
licenses.files = licenses
INSTALLS += licenses
SUPPORT_MIMETYPES = "$$system(cat $$IN_PWD/ru.auroraos.OfficeViewer.desktop | grep MimeType)"
SUPPORT_MIMETYPES ~= s/MimeType=//
SUPPORT_MIMETYPES ~= s/;$//
......
END USER LICENSE AGREEMENT
IMPORTANT! BEFORE USING THE SOFTWARE COVERED WITH THIS END USER LICENSE AGREEMENT. IF YOU DO NOT AGREE TO THE TERMS OF THIS LICENSE AGREEMENT, YOU ARE NOT RIGHT TO USE THE SOFTWARE FOR ANY PURPOSE.
1. DEFINITIONS
"Company" - Limited Liability Company "Open Mobile Platform", 420500, Republic of Tatarstan, Verkhneuslonsky District, Moscow, st. Innopolis, st. University,
7, office 59, OGRN 1161690087020.
"Software" - the "Documents" application, which is designed to display documents in the following formats: *.rtf, *.doc, *.docx, *.xls, *.xlsx, *.ppt, *.pptx, *.txt, *.ods, *.odt, *.odp, *.csv.
A “device” is a hardware system (physical or virtual) with built-in storage on which software can run.
"License Agreement" - the right granted to you by the Company to use the software functionality under the terms of the GNU Public License, version 2 in accordance with the terms of this License Agreement.
“End User” is any legal entity (organization) that has acquired the Software for its own use and not for sale.
"User" - an individual who directly operates the Software for the purposes and in the manner established by the End User.
This License Agreement is a legal agreement between you (hereinafter referred to as the End User) and the Company.
2. LICENSE
2.1. Subject to the terms below, the Company will license you worldwide perpetual software licenses under the GNU General Public License, version 2 (GNU General Public License v.2).
3. RIGHTS TO SOFTWARE
3.1. The Software is owned by the Company and other companies operating under copyright and other applicable laws. Ownership of the software, as well as any copies, modifications
or the merger remains with the Company and other licensors, depending on the applicable license.
4. LIMITATIONS
4.1. The end user does not have the right to name in the name of the software, distributed with the software, copyright marks (copyright notice) or other indications of the Company or others.
5. PERSONAL DATA
5.1. The Company hereby informs that in the process of using the Software functionality by the End Device, it does not collect and process User data.
6. LIMITATION OF LICENSE AGREEMENT
6.1. The Software is provided on an "as is" (as is) basis. The Company does not provide any warranty for the error-free and uninterrupted operation of the Software, meets the specific goals and expectations of the End User, and does not provide any other, directly in this License Agreement.
6.2. To the maximum extent permitted by the current legislation, the Company is not responsible for any direct or indirect consequences of any use or inability to use the software / or damage caused to the End User and / or third parties as a result of any use or non-use of the software, including due to software errors or malfunctions.
7. UPDATES / NEW VERSIONS OF SOFTWARE.
7.1. Updates of this software, updating for its improvement, are carried out in the form of releasing new versions of the software.
7.2. The end user is notified and agrees that the Company does not guarantee the provision of software updates obtained under the License Agreement.
ЛИЦЕНЗИОННОЕ СОГЛАШЕНИЕ С КОНЕЧНЫМ ПОЛЬЗОВАТЕЛЕМ
ВАЖНО! ПЕРЕД ИСПОЛЬЗОВАНИЕМ ПРОГРАММНОГО ОБЕСПЕЧЕНИЯ, К КОТОРОМУ ПРИЛАГАЕТСЯ ДАННОЕ ЛИЦЕНЗИОННОЕ СОГЛАШЕНИЕ С КОНЕЧНЫМ ПОЛЬЗОВАТЕЛЕМ (ДАЛЕЕ ПО ТЕКСТУ – «ЛИЦЕНЗИОННОЕ СОГЛАШЕНИЕ»), ПОЖАЛУЙСТА, ВНИМАТЕЛЬНО ПРОЧИТАЙТЕ НИЖЕСЛЕДУЮЩИЕ УСЛОВИЯ. ЕСЛИ ВЫ НЕ СОГЛАШАЕТЕСЬ С УСЛОВИЯМИ НАСТОЯЩЕГО ЛИЦЕНЗИОННОГО СОГЛАШЕНИЯ, ТО ВЫ НЕ ИМЕЕТЕ ПРАВА ИСПОЛЬЗОВАТЬ ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ В КАКИХ-ЛИБО ЦЕЛЯХ.
1. ОПРЕДЕЛЕНИЯ
«Компания» – общество с ограниченной ответственностью «Открытая мобильная платформа» (ООО «Открытая мобильная платформа»), 420500, Республика Татарстан, Верхнеуслонский район, г. Иннополис, ул. Университетская,
д. 7, офис 59, ОГРН 1161690087020.
«ПО» – приложение «Документы», которое предназначено для отображения документов следующих форматов: *.rtf, *.doc, *.docx, *.xls, *.xlsx, *.ppt, *.pptx, *.txt, *.ods, *.odt, *.odp, *.csv.
«Устройство» – это аппаратная система (физическая или виртуальная) со встроенным запоминающим устройством, на которой может быть запущено ПО.
«Лицензионное соглашение» – предоставляемое Вам Компанией право на использование функциональности ПО на условиях Общественной лицензией GNU, версия 2 в соответствии с условиями настоящего Лицензионного соглашения.
«Конечный пользователь» – любое юридическое лицо (организация), которое приобрело ПО для собственного использования и не для продажи.
«Пользователь» – физическое лицо, непосредственно осуществляющее эксплуатацию ПО в целях и порядке, определяемом Конечным пользователем.
Настоящее Лицензионное соглашение является юридическим соглашением между Вами (далее по тексту – Конечный пользователь) и Компанией.
2. ЛИЦЕНЗИЯ
2.1. Согласно приведенным ниже условиям, Компания предоставляет Вам бессрочную лицензию для всех стран мира на ПО в соответствии с Общественной лицензией GNU, версия 2 (GNU General Public License v.2).
3. ПРАВА НА ПО
3.1. ПО находится в собственности Компании и других лицензиаров и защищены законодательством об авторских правах и другим применимым законодательством. Право собственности на ПО, а также любые копии, модификации
или слияния остается у Компании и других лицензиаров, в зависимости от применимой лицензии.
4. ОГРАНИЧЕНИЯ
4.1. Конечный пользователь не вправе изменять наименование ПО, изменять и/или удалять присутствующие в ПО или иных материалах, распространяемых с ПО, знаки охраны авторского права (copyright notice) или иные указания на Компанию или иных лиц.
5. ПЕРСОНАЛЬНЫЕ ДАННЫЕ
5.1. Компания настоящим информирует, что в процессе использования Конечным пользователем функциональности ПО не осуществляет сбор и обработку персональных данных Пользователей.
6. ОГРАНИЧЕНИЕ ОТВЕТСТВЕННОСТИ ПО ЛИЦЕНЗИОННОМУ СОГЛАШЕНИЮ
6.1. ПО предоставляется на условиях «как есть» (as is). Компания не предоставляет никаких гарантий в отношении безошибочной и бесперебойной работы ПО, соответствия ПО конкретным целям и ожиданиям Конечного пользователя, а также не предоставляют никаких иных гарантий, прямо не указанных в настоящем Лицензионном соглашении.
6.2. В максимальной степени, допустимой действующим законодательством, Компания не несёт никакой ответственности за какие-либо прямые или косвенные последствия какого-либо использования или невозможности использования ПО и/или ущерб, причиненный Конечному пользователю и/или третьим сторонам в результате какого-либо использования или неиспользования ПО, в том числе из-за возможных ошибок или сбоев в работе ПО.
7. ОБНОВЛЕНИЯ/НОВЫЕ ВЕРСИИ ПО
7.1. Обновления настоящего ПО, направленные на его улучшение, могут осуществляться в форме выпуска новых версий ПО.
7.2. Конечный пользователь настоящим уведомлен и согласен с тем, что Компания не гарантирует предоставление обновления ПО, полученного по настоящему Лицензионному соглашению.
......@@ -26,7 +26,6 @@ import Nemo.Configuration 1.0
import Nemo.DBus 2.0
import Sailfish.Share 1.0
import Aurora.Office.Files 1.0
import Aurora.Office.License 1.0
import ru.omp.docviewer 1.0
Page {
......@@ -41,7 +40,6 @@ Page {
property string deletingSource
property bool _firstActive: true
property Dialog _licenseDialog
function deleteSource(source) {
pageStack.pop()
......@@ -65,13 +63,6 @@ Page {
allowedOrientations: Orientation.All
onStatusChanged: {
if (_firstActive && status == PageStatus.Active && !licenseStatus.isAccepted) {
_firstActive = false
_licenseDialog = pageStack.push("../dialogs/AcceptLicenseDialog.qml", PageStackAction.Immediate)
}
}
onSearchEnabledChanged: {
if (pageStack.currentPage.status === PageStatus.Active) {
if (searchEnabled) {
......@@ -375,10 +366,6 @@ Page {
DocumentPage { }
}
LicenseStatus {
id: licenseStatus
}
ConfigurationValue {
id: timeFormatConfig
key: "/sailfish/i18n/lc_timeformat24h"
......@@ -390,36 +377,10 @@ Page {
applicationWindow.activate()
return
}
if (pageStack.depth > 1) {
if (_licenseDialog === null) {
while (pageStack.depth > 1) {
pageStack.pop(undefined, PageStackAction.Immediate)
}
openDocument(url, true, false)
applicationWindow.activate()
} else {
_licenseDialog.acceptDestinationAction = PageStackAction.Replace
_licenseDialog.acceptDestinationProperties = {
path: url,
trackerDocumentProvider: provider,
}
_licenseDialog.acceptDestination = "ru.omp.docviewer.DocumentPage"
_licenseDialog.acceptDestinationInstance.statusChanged.connect(_documetPageReturn)
applicationWindow.activate()
}
} else {
openDocument(url, true, false)
applicationWindow.activate()
}
openDocument(url, true, false)
applicationWindow.activate()
}
function _documetPageReturn() {
if (_licenseDialog.acceptDestinationInstance.status === PageStatus.Active) {
_licenseDialog.acceptDestinationInstance.statusChanged.disconnect(_documetPageReturn)
_licenseDialog = null
}
}
service: "ru.omp.DocViewer"
path: "/ru/omp/docviewer"
......
Нет предварительного просмотра для этого типа файлов
......@@ -52,7 +52,6 @@
#include "documentprovider.h"
#include "filtermodel.h"
#include "trackerdocumentprovider.h"
#include "licensestatus.h"
int main(int argc, char *argv[])
{
......@@ -76,7 +75,6 @@ int main(int argc, char *argv[])
qmlRegisterType<DocumentListModel>("Aurora.Office.Files", 1, 0, "DocumentListModel");
qmlRegisterType<FilterModel>("Aurora.Office.Files", 1, 0, "FilterModel");
qmlRegisterType<TrackerDocumentProvider>("Aurora.Office.Files", 1, 0, "TrackerDocumentProvider");
qmlRegisterType<LicenseStatus>("Aurora.Office.License", 1, 0, "LicenseStatus");
QScopedPointer<QQuickView> view(Aurora::Application::createView());
view->setSource(Aurora::Application::pathTo(QStringLiteral("qml/OfficeViewer.qml")));
......
......@@ -3,7 +3,7 @@
## Copyright (C) 2023 Open Mobile Platform LLC.
## Contact: https://community.omprussia.ru/open-source
##
## This file is part of the DocumentConverter project.
## This file is part of the OfficeViewer project.
##
## Redistribution and use in source and binary forms,
## with or without modification, are permitted provided
......
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать