Remove submodules

This commit is contained in:
Alex Spataru 2021-01-09 16:47:35 -08:00
parent f3bd37242d
commit 9017590100
240 changed files with 23917 additions and 44 deletions

9
.gitmodules vendored
View File

@ -1,9 +0,0 @@
[submodule "libs/QSimpleUpdater"]
path = libs/QSimpleUpdater
url = https://github.com/alex-spataru/QSimpleUpdater
[submodule "libs/qtcsv"]
path = libs/qtcsv
url = https://github.com/iamantony/qtcsv
[submodule "libs/CuteLogger"]
path = libs/CuteLogger
url = https://github.com/dept2/CuteLogger

View File

@ -23,21 +23,6 @@ Furthermore, this approach can be extended to almost any type of project that in
##### Requirements
The only requirement to compile the application is to have [Qt](http://www.qt.io/download-open-source/) installed in your system. The desktop application will compile with Qt 5.15 or greater.
### Cloning this repository
This repository makes use of [`git submodule`](https://git-scm.com/docs/git-submodule). In order to clone it, you have two options:
One-liner:
git clone --recursive https://github.com/Serial-Studio/Serial-Studio
Normal procedure:
git clone https://github.com/Serial-Studio/Serial-Studio
cd Serial-Studio
git submodule init
git submodule update
###### Compiling the application

View File

@ -23,21 +23,6 @@ Además, este enfoque se puede extender a casi cualquier tipo de proyecto que im
##### Requisitos
El único requisito para compilar la aplicación es tener [Qt](http://www.qt.io/download-open-source/) instalado en su sistema. La aplicación se compilará con Qt 5.15 o superior.
### Clonado de este repositorio
Este repositorio hace uso de [`git submodule`](https://git-scm.com/docs/git-submodule). Para clonarlo, tiene dos opciones:
Comando breve:
git clone --recursive https://github.com/Serial-Studio/Serial-Studio
Procedimiento normal:
git clone https://github.com/Serial-Studio/Serial-Studio
cd Serial-Studio
git submodule init
git submodule update
###### Compilación

@ -1 +0,0 @@
Subproject commit 5ae6b9ac13e0cc2821d236e3542a83990b63c95c

42
libs/CuteLogger/.gitignore vendored Normal file
View File

@ -0,0 +1,42 @@
# C++ objects and libs
*.slo
*.lo
*.o
*.a
*.la
*.lai
*.so
*.so.*
*.dll
*.dylib
# Temporary files
*~
# Qt-es
moc_*.cpp
qrc_*.cpp
*-build-*
# CMake and qmake
.qmake.stash
CMakeFiles/
CMakeCache.txt
cmake_install.cmake
Makefile
Makefile.Debug
Makefile.Release
# Generated doxygen documentation
doc/
# IDE
*.pro.user
*.pro.user.*
CMakeLists.txt.user

View File

@ -0,0 +1,12 @@
dist: xenial
language: cpp
compiler: gcc
addons:
apt:
packages:
- qt5-default
script:
- cmake ./ -DCMAKE_BUILD_TYPE=Debug -DENABLE_TESTS=ON
- make -j4
- ./basictest

View File

@ -0,0 +1,56 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.11)
SET(CMAKE_CXX_STANDARD 11)
SET(CMAKE_CXX_STANDARD_REQUIRED ON)
PROJECT(CuteLogger)
FIND_PACKAGE(Qt5Core REQUIRED)
ADD_DEFINITIONS(-DCUTELOGGER_LIBRARY)
INCLUDE_DIRECTORIES(BEFORE include)
SET(sources
src/Logger.cpp
src/AbstractAppender.cpp
src/AbstractStringAppender.cpp
src/ConsoleAppender.cpp
src/FileAppender.cpp
src/RollingFileAppender.cpp
)
SET(includes
include/Logger.h
include/FileAppender.h
include/CuteLogger_global.h
include/ConsoleAppender.h
include/AbstractStringAppender.h
include/AbstractAppender.h
include/RollingFileAppender.h
)
# OutputDebugAppender is only for Windows systems
IF(WIN32)
SET(sources ${sources} src/OutputDebugAppender.cpp)
SET(includes ${includes} include/OutputDebugAppender.h)
ENDIF(WIN32)
SET(library_target CuteLogger)
ADD_LIBRARY(${library_target} SHARED ${sources} ${includes})
TARGET_LINK_LIBRARIES(${library_target} Qt5::Core)
TARGET_INCLUDE_DIRECTORIES(${library_target} PUBLIC include)
INSTALL(TARGETS ${library_target} DESTINATION lib)
SET(ENABLE_TESTS OFF CACHE BOOL "Enable building CuteLogger tests")
IF (ENABLE_TESTS)
SET(CMAKE_AUTOMOC ON)
FIND_PACKAGE(Qt5Test REQUIRED)
ADD_EXECUTABLE(basictest test/basictest.cpp)
TARGET_LINK_LIBRARIES(basictest Qt5::Core Qt5::Test CuteLogger)
ENDIF ()

View File

@ -0,0 +1,38 @@
QT -= gui
TARGET = CuteLogger
TEMPLATE = lib
DEFINES += CUTELOGGER_LIBRARY
INCLUDEPATH += ./include
SOURCES += src/Logger.cpp \
src/AbstractAppender.cpp \
src/AbstractStringAppender.cpp \
src/ConsoleAppender.cpp \
src/FileAppender.cpp \
src/RollingFileAppender.cpp
HEADERS += include/Logger.h \
include/CuteLogger_global.h \
include/AbstractAppender.h \
include/AbstractStringAppender.h \
include/ConsoleAppender.h \
include/FileAppender.h \
include/RollingFileAppender.h
win32 {
SOURCES += src/OutputDebugAppender.cpp
HEADERS += include/OutputDebugAppender.h
}
android {
SOURCES += src/AndroidAppender.cpp
HEADERS += include/AndroidAppender.h
}
unix {
target.path = /usr/lib
INSTALLS += target
}

View File

@ -0,0 +1,32 @@
import qbs
DynamicLibrary {
name: "CuteLogger"
files: [ "src/*", "include/*" ]
excludeFiles: [ "src/OutputDebugAppender.*", "src/AndroidAppender.*" ]
Group {
name: "windows-OutputDebugAppender"
condition: qbs.targetOS == "windows"
files: [ "src/OutputDebugAppender.cpp", "include/OutputDebugAppender.h" ]
}
Depends { name: "cpp" }
cpp.includePaths: "include"
cpp.defines: "CUTELOGGER_LIBRARY"
Depends { name: "Qt.core" }
Export {
Depends { name: "cpp" }
cpp.includePaths: "include"
}
Group {
qbs.install: true
qbs.installDir: "lib"
fileTagsFilter: "dynamiclibrary"
}
}

1813
libs/CuteLogger/Doxyfile Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,504 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
[This is the first released version of the Lesser GPL. It also counts
as the successor of the GNU Library Public License, version 2, hence
the version number 2.1.]
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
Licenses are intended to guarantee your freedom to share and change
free software--to make sure the software is free for all its users.
This license, the Lesser General Public License, applies to some
specially designated software packages--typically libraries--of the
Free Software Foundation and other authors who decide to use it. You
can use it too, but we suggest you first think carefully about whether
this license or the ordinary General Public License is the better
strategy to use in any particular case, based on the explanations below.
When we speak of free software, we are referring to freedom of use,
not price. Our General Public Licenses are designed to make sure that
you have the freedom to distribute copies of free software (and charge
for this service if you wish); that you receive source code or can get
it if you want it; that you can change the software and use pieces of
it in new free programs; and that you are informed that you can do
these things.
To protect your rights, we need to make restrictions that forbid
distributors to deny you these rights or to ask you to surrender these
rights. These restrictions translate to certain responsibilities for
you if you distribute copies of the library or if you modify it.
For example, if you distribute copies of the library, whether gratis
or for a fee, you must give the recipients all the rights that we gave
you. You must make sure that they, too, receive or can get the source
code. If you link other code with the library, you must provide
complete object files to the recipients, so that they can relink them
with the library after making changes to the library and recompiling
it. And you must show them these terms so they know their rights.
We protect your rights with a two-step method: (1) we copyright the
library, and (2) we offer you this license, which gives you legal
permission to copy, distribute and/or modify the library.
To protect each distributor, we want to make it very clear that
there is no warranty for the free library. Also, if the library is
modified by someone else and passed on, the recipients should know
that what they have is not the original version, so that the original
author's reputation will not be affected by problems that might be
introduced by others.
Finally, software patents pose a constant threat to the existence of
any free program. We wish to make sure that a company cannot
effectively restrict the users of a free program by obtaining a
restrictive license from a patent holder. Therefore, we insist that
any patent license obtained for a version of the library must be
consistent with the full freedom of use specified in this license.
Most GNU software, including some libraries, is covered by the
ordinary GNU General Public License. This license, the GNU Lesser
General Public License, applies to certain designated libraries, and
is quite different from the ordinary General Public License. We use
this license for certain libraries in order to permit linking those
libraries into non-free programs.
When a program is linked with a library, whether statically or using
a shared library, the combination of the two is legally speaking a
combined work, a derivative of the original library. The ordinary
General Public License therefore permits such linking only if the
entire combination fits its criteria of freedom. The Lesser General
Public License permits more lax criteria for linking other code with
the library.
We call this license the "Lesser" General Public License because it
does Less to protect the user's freedom than the ordinary General
Public License. It also provides other free software developers Less
of an advantage over competing non-free programs. These disadvantages
are the reason we use the ordinary General Public License for many
libraries. However, the Lesser license provides advantages in certain
special circumstances.
For example, on rare occasions, there may be a special need to
encourage the widest possible use of a certain library, so that it becomes
a de-facto standard. To achieve this, non-free programs must be
allowed to use the library. A more frequent case is that a free
library does the same job as widely used non-free libraries. In this
case, there is little to gain by limiting the free library to free
software only, so we use the Lesser General Public License.
In other cases, permission to use a particular library in non-free
programs enables a greater number of people to use a large body of
free software. For example, permission to use the GNU C Library in
non-free programs enables many more people to use the whole GNU
operating system, as well as its variant, the GNU/Linux operating
system.
Although the Lesser General Public License is Less protective of the
users' freedom, it does ensure that the user of a program that is
linked with the Library has the freedom and the wherewithal to run
that program using a modified version of the Library.
The precise terms and conditions for copying, distribution and
modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, whereas the latter must
be combined with the library in order to run.
GNU LESSER GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library or other
program which contains a notice placed by the copyright holder or
other authorized party saying it may be distributed under the terms of
this Lesser General Public License (also called "this License").
Each licensee is addressed as "you".
A "library" means a collection of software functions and/or data
prepared so as to be conveniently linked with application programs
(which use some of those functions and data) to form executables.
The "Library", below, refers to any such software library or work
which has been distributed under these terms. A "work based on the
Library" means either the Library or any derivative work under
copyright law: that is to say, a work containing the Library or a
portion of it, either verbatim or with modifications and/or translated
straightforwardly into another language. (Hereinafter, translation is
included without limitation in the term "modification".)
"Source code" for a work means the preferred form of the work for
making modifications to it. For a library, complete source code means
all the source code for all modules it contains, plus any associated
interface definition files, plus the scripts used to control compilation
and installation of the library.
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running a program using the Library is not restricted, and output from
such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.
1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an
appropriate copyright notice and disclaimer of warranty; keep intact
all the notices that refer to this License and to the absence of any
warranty; and distribute a copy of this License along with the
Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.
2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) The modified work must itself be a software library.
b) You must cause the files modified to carry prominent notices
stating that you changed the files and the date of any change.
c) You must cause the whole of the work to be licensed at no
charge to all third parties under the terms of this License.
d) If a facility in the modified Library refers to a function or a
table of data to be supplied by an application program that uses
the facility, other than as an argument passed when the facility
is invoked, then you must make a good faith effort to ensure that,
in the event an application does not supply such function or
table, the facility still operates, and performs whatever part of
its purpose remains meaningful.
(For example, a function in a library to compute square roots has
a purpose that is entirely well-defined independent of the
application. Therefore, Subsection 2d requires that any
application-supplied function or table used by this function must
be optional: if the application does not supply it, the square
root function must still compute square roots.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Library,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Library, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote
it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Library.
In addition, mere aggregation of another work not based on the Library
with the Library (or with a work based on the Library) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may opt to apply the terms of the ordinary GNU General Public
License instead of this License to a given copy of the Library. To do
this, you must alter all the notices that refer to this License, so
that they refer to the ordinary GNU General Public License, version 2,
instead of to this License. (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.
Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.
This option is useful when you wish to copy part of the code of
the Library into a program that is not a library.
4. You may copy and distribute the Library (or a portion or
derivative of it, under Section 2) in object code or executable form
under the terms of Sections 1 and 2 above provided that you accompany
it with the complete corresponding machine-readable source code, which
must be distributed under the terms of Sections 1 and 2 above on a
medium customarily used for software interchange.
If distribution of object code is made by offering access to copy
from a designated place, then offering equivalent access to copy the
source code from the same place satisfies the requirement to
distribute the source code, even though third parties are not
compelled to copy the source along with the object code.
5. A program that contains no derivative of any portion of the
Library, but is designed to work with the Library by being compiled or
linked with it, is called a "work that uses the Library". Such a
work, in isolation, is not a derivative work of the Library, and
therefore falls outside the scope of this License.
However, linking a "work that uses the Library" with the Library
creates an executable that is a derivative of the Library (because it
contains portions of the Library), rather than a "work that uses the
library". The executable is therefore covered by this License.
Section 6 states terms for distribution of such executables.
When a "work that uses the Library" uses material from a header file
that is part of the Library, the object code for the work may be a
derivative work of the Library even though the source code is not.
Whether this is true is especially significant if the work can be
linked without the Library, or if the work is itself a library. The
threshold for this to be true is not precisely defined by law.
If such an object file uses only numerical parameters, data
structure layouts and accessors, and small macros and small inline
functions (ten lines or less in length), then the use of the object
file is unrestricted, regardless of whether it is legally a derivative
work. (Executables containing this object code plus portions of the
Library will still fall under Section 6.)
Otherwise, if the work is a derivative of the Library, you may
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.
6. As an exception to the Sections above, you may also combine or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
under terms of your choice, provided that the terms permit
modification of the work for the customer's own use and reverse
engineering for debugging such modifications.
You must give prominent notice with each copy of the work that the
Library is used in it and that the Library and its use are covered by
this License. You must supply a copy of this License. If the work
during execution displays copyright notices, you must include the
copyright notice for the Library among them, as well as a reference
directing the user to the copy of this License. Also, you must do one
of these things:
a) Accompany the work with the complete corresponding
machine-readable source code for the Library including whatever
changes were used in the work (which must be distributed under
Sections 1 and 2 above); and, if the work is an executable linked
with the Library, with the complete machine-readable "work that
uses the Library", as object code and/or source code, so that the
user can modify the Library and then relink to produce a modified
executable containing the modified Library. (It is understood
that the user who changes the contents of definitions files in the
Library will not necessarily be able to recompile the application
to use the modified definitions.)
b) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (1) uses at run time a
copy of the library already present on the user's computer system,
rather than copying library functions into the executable, and (2)
will operate properly with a modified version of the library, if
the user installs one, as long as the modified version is
interface-compatible with the version that the work was made with.
c) Accompany the work with a written offer, valid for at
least three years, to give the same user the materials
specified in Subsection 6a, above, for a charge no more
than the cost of performing this distribution.
d) If distribution of the work is made by offering access to copy
from a designated place, offer equivalent access to copy the above
specified materials from the same place.
e) Verify that the user has already received a copy of these
materials or that you have already sent this user a copy.
For an executable, the required form of the "work that uses the
Library" must include any data and utility programs needed for
reproducing the executable from it. However, as a special exception,
the materials to be distributed need not include anything that is
normally distributed (in either source or binary form) with the major
components (compiler, kernel, and so on) of the operating system on
which the executable runs, unless that component itself accompanies
the executable.
It may happen that this requirement contradicts the license
restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.
7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
library, provided that the separate distribution of the work based on
the Library and of the other library facilities is otherwise
permitted, and provided that you do these two things:
a) Accompany the combined library with a copy of the same work
based on the Library, uncombined with any other library
facilities. This must be distributed under the terms of the
Sections above.
b) Give prominent notice with the combined library of the fact
that part of it is a work based on the Library, and explaining
where to find the accompanying uncombined form of the same work.
8. You may not copy, modify, sublicense, link with, or distribute
the Library except as expressly provided under this License. Any
attempt otherwise to copy, modify, sublicense, link with, or
distribute the Library is void, and will automatically terminate your
rights under this License. However, parties who have received copies,
or rights, from you under this License will not have their licenses
terminated so long as such parties remain in full compliance.
9. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Library or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Library (or any work based on the
Library), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Library or works based on it.
10. Each time you redistribute the Library (or any work based on the
Library), the recipient automatically receives a license from the
original licensor to copy, distribute, link with or modify the Library
subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties with
this License.
11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Library at all. For example, if a patent
license would not permit royalty-free redistribution of the Library by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Library.
If any portion of this section is held invalid or unenforceable under any
particular circumstance, the balance of the section is intended to apply,
and the section as a whole is intended to apply in other circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
12. If the distribution and/or use of the Library is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Library under this License may add
an explicit geographical distribution limitation excluding those countries,
so that distribution is permitted only in or among countries not thus
excluded. In such case, this License incorporates the limitation as if
written in the body of this License.
13. The Free Software Foundation may publish revised and/or new
versions of the Lesser General Public License from time to time.
Such new versions will be similar in spirit to the present version,
but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Library
specifies a version number of this License which applies to it and
"any later version", you have the option of following the terms and
conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.
14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
copyrighted by the Free Software Foundation, write to the Free
Software Foundation; we sometimes make exceptions for this. Our
decision will be guided by the two goals of preserving the free status
of all derivatives of our free software and of promoting the sharing
and reuse of software generally.
NO WARRANTY
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Libraries
If you develop a new library, and you want it to be of the greatest
possible use to the public, we recommend making it free software that
everyone can redistribute and change. You can do so by permitting
redistribution under these terms (or, alternatively, under the terms of the
ordinary General Public License).
To apply these terms, attach the following notices to the library. It is
safest to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least the
"copyright" line and a pointer to where the full notice is found.
<one line to give the library's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library 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
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Also add information on how to contact you by electronic and paper mail.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the library, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
<signature of Ty Coon>, 1 April 1990
Ty Coon, President of Vice
That's all there is to it!

62
libs/CuteLogger/README.md Normal file
View File

@ -0,0 +1,62 @@
# CuteLogger
[![Build Status](https://travis-ci.org/dept2/CuteLogger.svg?branch=master)](https://travis-ci.org/dept2/CuteLogger)
Simple, convinient and thread safe logger for Qt-based C++ apps
## Features
- Logs pretty much everything: file name, source line, function signature
- Flexible appender system: log to [file](http://dept2.github.io/CuteLogger/class_file_appender.html), [console](http://dept2.github.io/CuteLogger/class_console_appender.html) or even Android logcat, add custom appenders, customize output format
- Compatible with Qt builtin types. Can be used as a drop-in replacement for qDebug etc.
- Supports [measuring timing](http://dept2.github.io/CuteLogger/_logger_8h.html#af018c228deac1e43b4428889b89dbd13) for an operations
- Supports [log categories](http://dept2.github.io/CuteLogger/_logger_8h.html#a5a9579044777cb4de48b4dbb416b007d), able to log all messages from a class/namespace to custom category
- Thread safe
## Documentation
[Doxygen docs available](http://dept2.github.io/CuteLogger/)
## Short example
```cpp
#include <QCoreApplication>
#include <Logger.h>
#include <ConsoleAppender.h>
int main(int argc, char* argv[])
{
QCoreApplication app(argc, argv);
...
ConsoleAppender* consoleAppender = new ConsoleAppender;
consoleAppender->setFormat("[%{type:-7}] <%{Function}> %{message}\n");
cuteLogger->registerAppender(consoleAppender);
...
LOG_INFO("Starting the application");
int result = app.exec();
...
if (result)
LOG_WARNING() << "Something went wrong." << "Result code is" << result;
return result;
}
```
## Adding CuteLogger to your project
Add this repo as a git submodule to your project.
```bash
git submodule add git@github.com:dept2/CuteLogger.git CuteLogger
```
Include it to your CMakeLists.txt file:
```cmake
...
ADD_SUBDIRECTORY(Logger)
...
TARGET_LINK_LIBRARIES(${your_target} ... CuteLogger)
```
Include `Logger.h` and one or several appenders of your choice:
```cpp
#include <Logger.h>
#include <ConsoleAppender.h>
```

View File

@ -0,0 +1,49 @@
/*
Copyright (c) 2010 Boris Moiseev (cyberbobs at gmail dot com)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License version 2.1
as published by the Free Software Foundation and appearing in the file
LICENSE.LGPL included in the packaging of this file.
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 Lesser General Public License for more details.
*/
#ifndef ABSTRACTAPPENDER_H
#define ABSTRACTAPPENDER_H
// Local
#include "CuteLogger_global.h"
#include <Logger.h>
// Qt
#include <QMutex>
class CUTELOGGERSHARED_EXPORT AbstractAppender
{
public:
AbstractAppender();
virtual ~AbstractAppender();
Logger::LogLevel detailsLevel() const;
void setDetailsLevel(Logger::LogLevel level);
void setDetailsLevel(const QString& level);
void write(const QDateTime& timeStamp, Logger::LogLevel logLevel, const char* file, int line, const char* function,
const QString& category, const QString& message);
protected:
virtual void append(const QDateTime& timeStamp, Logger::LogLevel logLevel, const char* file, int line,
const char* function, const QString& category, const QString& message) = 0;
private:
QMutex m_writeMutex;
Logger::LogLevel m_detailsLevel;
mutable QMutex m_detailsLevelMutex;
};
#endif // ABSTRACTAPPENDER_H

View File

@ -0,0 +1,46 @@
/*
Copyright (c) 2010 Boris Moiseev (cyberbobs at gmail dot com)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License version 2.1
as published by the Free Software Foundation and appearing in the file
LICENSE.LGPL included in the packaging of this file.
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 Lesser General Public License for more details.
*/
#ifndef ABSTRACTSTRINGAPPENDER_H
#define ABSTRACTSTRINGAPPENDER_H
// Local
#include "CuteLogger_global.h"
#include <AbstractAppender.h>
// Qt
#include <QReadWriteLock>
class CUTELOGGERSHARED_EXPORT AbstractStringAppender : public AbstractAppender
{
public:
AbstractStringAppender();
virtual QString format() const;
void setFormat(const QString&);
static QString stripFunctionName(const char*);
protected:
QString formattedString(const QDateTime& timeStamp, Logger::LogLevel logLevel, const char* file, int line,
const char* function, const QString& category, const QString& message) const;
private:
static QByteArray qCleanupFuncinfo(const char*);
QString m_format;
mutable QReadWriteLock m_formatLock;
};
#endif // ABSTRACTSTRINGAPPENDER_H

View File

@ -0,0 +1,21 @@
#ifndef ANDROIDAPPENDER_H
#define ANDROIDAPPENDER_H
// Local
#include <AbstractStringAppender.h>
class AndroidAppender : public AbstractStringAppender
{
public:
AndroidAppender();
static int androidLogPriority(Logger::LogLevel);
protected:
void append(const QDateTime& timeStamp, Logger::LogLevel logLevel, const char* file, int line,
const char* function, const QString& category, const QString& message);
};
#endif // ANDROIDAPPENDER_H

View File

@ -0,0 +1,36 @@
/*
Copyright (c) 2010 Boris Moiseev (cyberbobs at gmail dot com)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License version 2.1
as published by the Free Software Foundation and appearing in the file
LICENSE.LGPL included in the packaging of this file.
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 Lesser General Public License for more details.
*/
#ifndef CONSOLEAPPENDER_H
#define CONSOLEAPPENDER_H
#include "CuteLogger_global.h"
#include <AbstractStringAppender.h>
class CUTELOGGERSHARED_EXPORT ConsoleAppender : public AbstractStringAppender
{
public:
ConsoleAppender();
virtual QString format() const;
void ignoreEnvironmentPattern(bool ignore);
protected:
virtual void append(const QDateTime& timeStamp, Logger::LogLevel logLevel, const char* file, int line,
const char* function, const QString& category, const QString& message);
private:
bool m_ignoreEnvPattern;
};
#endif // CONSOLEAPPENDER_H

View File

@ -0,0 +1,14 @@
#ifndef CUTELOGGER_GLOBAL_H
#define CUTELOGGER_GLOBAL_H
#include <QtCore/qglobal.h>
#if defined(CUTELOGGER_LIBRARY)
# define CUTELOGGERSHARED_EXPORT Q_DECL_EXPORT
#elif defined(CUTELOGGER_SRC)
# define CUTELOGGERSHARED_EXPORT
#else
# define CUTELOGGERSHARED_EXPORT Q_DECL_IMPORT
#endif
#endif // CUTELOGGER_GLOBAL_H

View File

@ -0,0 +1,49 @@
/*
Copyright (c) 2010 Boris Moiseev (cyberbobs at gmail dot com)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License version 2.1
as published by the Free Software Foundation and appearing in the file
LICENSE.LGPL included in the packaging of this file.
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 Lesser General Public License for more details.
*/
#ifndef FILEAPPENDER_H
#define FILEAPPENDER_H
// Logger
#include "CuteLogger_global.h"
#include <AbstractStringAppender.h>
// Qt
#include <QFile>
#include <QTextStream>
class CUTELOGGERSHARED_EXPORT FileAppender : public AbstractStringAppender
{
public:
FileAppender(const QString& fileName = QString());
~FileAppender();
QString fileName() const;
void setFileName(const QString&);
bool reopenFile();
protected:
virtual void append(const QDateTime& timeStamp, Logger::LogLevel logLevel, const char* file, int line,
const char* function, const QString& category, const QString& message);
bool openFile();
void closeFile();
private:
QFile m_logFile;
QTextStream m_logStream;
mutable QMutex m_logFileMutex;
};
#endif // FILEAPPENDER_H

View File

@ -0,0 +1,237 @@
/*
Copyright (c) 2012 Boris Moiseev (cyberbobs at gmail dot com)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License version 2.1
as published by the Free Software Foundation and appearing in the file
LICENSE.LGPL included in the packaging of this file.
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 Lesser General Public License for more details.
*/
#ifndef LOGGER_H
#define LOGGER_H
// Qt
#include <QString>
#include <QDebug>
#include <QDateTime>
// Local
#include "CuteLogger_global.h"
class AbstractAppender;
class Logger;
CUTELOGGERSHARED_EXPORT Logger* cuteLoggerInstance();
#define cuteLogger cuteLoggerInstance()
#define LOG_TRACE CuteMessageLogger(cuteLoggerInstance(), Logger::Trace, __FILE__, __LINE__, Q_FUNC_INFO).write
#define LOG_DEBUG CuteMessageLogger(cuteLoggerInstance(), Logger::Debug, __FILE__, __LINE__, Q_FUNC_INFO).write
#define LOG_INFO CuteMessageLogger(cuteLoggerInstance(), Logger::Info, __FILE__, __LINE__, Q_FUNC_INFO).write
#define LOG_WARNING CuteMessageLogger(cuteLoggerInstance(), Logger::Warning, __FILE__, __LINE__, Q_FUNC_INFO).write
#define LOG_ERROR CuteMessageLogger(cuteLoggerInstance(), Logger::Error, __FILE__, __LINE__, Q_FUNC_INFO).write
#define LOG_FATAL CuteMessageLogger(cuteLoggerInstance(), Logger::Fatal, __FILE__, __LINE__, Q_FUNC_INFO).write
#define LOG_CTRACE(category) CuteMessageLogger(cuteLoggerInstance(), Logger::Trace, __FILE__, __LINE__, Q_FUNC_INFO, category).write()
#define LOG_CDEBUG(category) CuteMessageLogger(cuteLoggerInstance(), Logger::Debug, __FILE__, __LINE__, Q_FUNC_INFO, category).write()
#define LOG_CINFO(category) CuteMessageLogger(cuteLoggerInstance(), Logger::Info, __FILE__, __LINE__, Q_FUNC_INFO, category).write()
#define LOG_CWARNING(category) CuteMessageLogger(cuteLoggerInstance(), Logger::Warning, __FILE__, __LINE__, Q_FUNC_INFO, category).write()
#define LOG_CERROR(category) CuteMessageLogger(cuteLoggerInstance(), Logger::Error, __FILE__, __LINE__, Q_FUNC_INFO, category).write()
#define LOG_CFATAL(category) CuteMessageLogger(cuteLoggerInstance(), Logger::Fatal, __FILE__, __LINE__, Q_FUNC_INFO, category).write()
#define LOG_TRACE_TIME LoggerTimingHelper loggerTimingHelper(cuteLoggerInstance(), Logger::Trace, __FILE__, __LINE__, Q_FUNC_INFO); loggerTimingHelper.start
#define LOG_DEBUG_TIME LoggerTimingHelper loggerTimingHelper(cuteLoggerInstance(), Logger::Debug, __FILE__, __LINE__, Q_FUNC_INFO); loggerTimingHelper.start
#define LOG_INFO_TIME LoggerTimingHelper loggerTimingHelper(cuteLoggerInstance(), Logger::Info, __FILE__, __LINE__, Q_FUNC_INFO); loggerTimingHelper.start
#define LOG_ASSERT(cond) ((!(cond)) ? cuteLoggerInstance()->writeAssert(__FILE__, __LINE__, Q_FUNC_INFO, #cond) : qt_noop())
#define LOG_ASSERT_X(cond, msg) ((!(cond)) ? cuteLoggerInstance()->writeAssert(__FILE__, __LINE__, Q_FUNC_INFO, msg) : qt_noop())
#if (__cplusplus >= 201103L)
#include <functional>
#define LOG_CATEGORY(category) \
Logger customCuteLoggerInstance{category};\
std::function<Logger*()> cuteLoggerInstance = [&customCuteLoggerInstance]() {\
return &customCuteLoggerInstance;\
};\
#define LOG_GLOBAL_CATEGORY(category) \
Logger customCuteLoggerInstance{category, true};\
std::function<Logger*()> cuteLoggerInstance = [&customCuteLoggerInstance]() {\
return &customCuteLoggerInstance;\
};\
#else
#define LOG_CATEGORY(category) \
Logger* cuteLoggerInstance()\
{\
static Logger customCuteLoggerInstance(category);\
return &customCuteLoggerInstance;\
}\
#define LOG_GLOBAL_CATEGORY(category) \
Logger* cuteLoggerInstance()\
{\
static Logger customCuteLoggerInstance(category);\
customCuteLoggerInstance.logToGlobalInstance(category, true);\
return &customCuteLoggerInstance;\
}\
#endif
class LoggerPrivate;
class CUTELOGGERSHARED_EXPORT Logger
{
Q_DISABLE_COPY(Logger)
public:
Logger();
Logger(const QString& defaultCategory, bool writeToGlobalInstance = false);
~Logger();
//! Describes the possible severity levels of the log records
enum LogLevel
{
Trace, //!< Trace level. Can be used for mostly unneeded records used for internal code tracing.
Debug, //!< Debug level. Useful for non-necessary records used for the debugging of the software.
Info, //!< Info level. Can be used for informational records, which may be interesting for not only developers.
Warning, //!< Warning. May be used to log some non-fatal warnings detected by your application.
Error, //!< Error. May be used for a big problems making your application work wrong but not crashing.
Fatal //!< Fatal. Used for unrecoverable errors, crashes the application right after the log record is written.
};
//! Sets the timing display mode for the LOG_TRACE_TIME, LOG_DEBUG_TIME and LOG_INFO_TIME macros
enum TimingMode
{
TimingAuto, //!< Show time in seconds, if it exceeds 10s (default)
TimingMs //!< Always use milliseconds to display
};
static QString levelToString(LogLevel logLevel);
static LogLevel levelFromString(const QString& s);
static Logger* globalInstance();
void registerAppender(AbstractAppender* appender);
void registerCategoryAppender(const QString& category, AbstractAppender* appender);
void removeAppender(AbstractAppender* appender);
void logToGlobalInstance(const QString& category, bool logToGlobal = false);
void setDefaultCategory(const QString& category);
QString defaultCategory() const;
void write(const QDateTime& timeStamp, LogLevel logLevel, const char* file, int line, const char* function, const char* category,
const QString& message);
void write(LogLevel logLevel, const char* file, int line, const char* function, const char* category, const QString& message);
void writeAssert(const char* file, int line, const char* function, const char* condition);
private:
void write(const QDateTime& timeStamp, LogLevel logLevel, const char* file, int line, const char* function, const char* category,
const QString& message, bool fromLocalInstance);
Q_DECLARE_PRIVATE(Logger)
LoggerPrivate* d_ptr;
};
class CUTELOGGERSHARED_EXPORT CuteMessageLogger
{
Q_DISABLE_COPY(CuteMessageLogger)
public:
CuteMessageLogger(Logger* l, Logger::LogLevel level, const char* file, int line, const char* function)
: m_l(l),
m_level(level),
m_file(file),
m_line(line),
m_function(function),
m_category(nullptr)
{}
CuteMessageLogger(Logger* l, Logger::LogLevel level, const char* file, int line, const char* function, const char* category)
: m_l(l),
m_level(level),
m_file(file),
m_line(line),
m_function(function),
m_category(category)
{}
~CuteMessageLogger();
void write(const char* msg, ...)
#if defined(Q_CC_GNU) && !defined(__INSURE__)
# if defined(Q_CC_MINGW) && !defined(Q_CC_CLANG)
__attribute__ ((format (gnu_printf, 2, 3)))
# else
__attribute__ ((format (printf, 2, 3)))
# endif
#endif
;
void write(const QString& msg);
QDebug write();
private:
Logger* m_l;
Logger::LogLevel m_level;
const char* m_file;
int m_line;
const char* m_function;
const char* m_category;
QString m_message;
};
class CUTELOGGERSHARED_EXPORT LoggerTimingHelper
{
Q_DISABLE_COPY(LoggerTimingHelper)
public:
inline explicit LoggerTimingHelper(Logger* l, Logger::LogLevel logLevel, const char* file, int line,
const char* function)
: m_logger(l),
m_logLevel(logLevel),
m_timingMode(Logger::TimingAuto),
m_file(file),
m_line(line),
m_function(function)
{}
void start(const char* msg, ...)
#if defined(Q_CC_GNU) && !defined(__INSURE__)
# if defined(Q_CC_MINGW) && !defined(Q_CC_CLANG)
__attribute__ ((format (gnu_printf, 2, 3)))
# else
__attribute__ ((format (printf, 2, 3)))
# endif
#endif
;
void start(const QString& msg = QString());
void start(Logger::TimingMode mode, const QString& msg);
~LoggerTimingHelper();
private:
Logger* m_logger;
QTime m_time;
Logger::LogLevel m_logLevel;
Logger::TimingMode m_timingMode;
const char* m_file;
int m_line;
const char* m_function;
QString m_block;
};
#endif // LOGGER_H

View File

@ -0,0 +1,29 @@
/*
Copyright (c) 2010 Karl-Heinz Reichel (khreichel at googlemail dot com)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License version 2.1
as published by the Free Software Foundation and appearing in the file
LICENSE.LGPL included in the packaging of this file.
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 Lesser General Public License for more details.
*/
#ifndef OUTPUTDEBUGAPPENDER_H
#define OUTPUTDEBUGAPPENDER_H
#include "CuteLogger_global.h"
#include <AbstractStringAppender.h>
class CUTELOGGERSHARED_EXPORT OutputDebugAppender : public AbstractStringAppender
{
protected:
virtual void append(const QDateTime& timeStamp, Logger::LogLevel logLevel, const char* file, int line,
const char* function, const QString& category, const QString& message);
};
#endif // OUTPUTDEBUGAPPENDER_H

View File

@ -0,0 +1,77 @@
#ifndef ROLLINGFILEAPPENDER_H
#define ROLLINGFILEAPPENDER_H
#include <QDateTime>
#include <FileAppender.h>
/*!
* \brief The RollingFileAppender class extends FileAppender so that the underlying file is rolled over at a user chosen frequency.
*
* The class is based on Log4Qt.DailyRollingFileAppender class (http://log4qt.sourceforge.net/)
* and has the same date pattern format.
*
* For example, if the fileName is set to /foo/bar and the DatePattern set to the daily rollover ('.'yyyy-MM-dd'.log'), on 2014-02-16 at midnight,
* the logging file /foo/bar.log will be copied to /foo/bar.2014-02-16.log and logging for 2014-02-17 will continue in /foo/bar
* until it rolls over the next day.
*
* The logFilesLimit parameter is used to automatically delete the oldest log files in the directory during rollover
* (so no more than logFilesLimit recent log files exist in the directory at any moment).
* \sa setDatePattern(DatePattern), setLogFilesLimit(int)
*/
class CUTELOGGERSHARED_EXPORT RollingFileAppender : public FileAppender
{
public:
/*!
* The enum DatePattern defines constants for date patterns.
* \sa setDatePattern(DatePattern)
*/
enum DatePattern
{
/*! The minutely date pattern string is "'.'yyyy-MM-dd-hh-mm". */
MinutelyRollover = 0,
/*! The hourly date pattern string is "'.'yyyy-MM-dd-hh". */
HourlyRollover,
/*! The half-daily date pattern string is "'.'yyyy-MM-dd-a". */
HalfDailyRollover,
/*! The daily date pattern string is "'.'yyyy-MM-dd". */
DailyRollover,
/*! The weekly date pattern string is "'.'yyyy-ww". */
WeeklyRollover,
/*! The monthly date pattern string is "'.'yyyy-MM". */
MonthlyRollover
};
Q_ENUMS(DatePattern)
RollingFileAppender(const QString& fileName = QString());
DatePattern datePattern() const;
void setDatePattern(DatePattern datePattern);
void setDatePattern(const QString& datePattern);
QString datePatternString() const;
void setLogFilesLimit(int limit);
int logFilesLimit() const;
protected:
virtual void append(const QDateTime& timeStamp, Logger::LogLevel logLevel, const char* file, int line,
const char* function, const QString& category, const QString& message);
private:
void rollOver();
void computeRollOverTime();
void computeFrequency();
void removeOldFiles();
void setDatePatternString(const QString& datePatternString);
QString m_datePatternString;
DatePattern m_frequency;
QDateTime m_rollOverTime;
QString m_rollOverSuffix;
int m_logFilesLimit;
mutable QMutex m_rollingMutex;
};
#endif // ROLLINGFILEAPPENDER_H

View File

@ -0,0 +1,147 @@
/*
Copyright (c) 2010 Boris Moiseev (cyberbobs at gmail dot com)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License version 2.1
as published by the Free Software Foundation and appearing in the file
LICENSE.LGPL included in the packaging of this file.
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 Lesser General Public License for more details.
*/
// Local
#include "AbstractAppender.h"
// Qt
#include <QMutexLocker>
/**
* \class AbstractAppender
*
* \brief The AbstractAppender class provides an abstract base class for writing a log entries.
*
* The AbstractAppender class is the base interface class for all log appenders that could be used with Logger.
*
* AbstractAppender provides a common implementation for the thread safe, mutex-protected logging of application
* messages, such as ConsoleAppender, FileAppender or something else. AbstractAppender is abstract and can not be
* instantiated, but you can use any of its subclasses or create a custom log appender at your choice.
*
* Appenders are the logical devices that is aimed to be attached to Logger object by calling
* Logger::registerAppender(). On each log record call from the application Logger object sequentially calls write()
* function on all the appenders registered in it.
*
* You can subclass AbstractAppender to implement a logging target of any kind you like. It may be the external logging
* subsystem (for example, syslog in *nix), XML file, SQL database entries, D-Bus messages or anything else you can
* imagine.
*
* For the simple non-structured plain text logging (for example, to a plain text file or to the console output) you may
* like to subclass the AbstractStringAppender instead of AbstractAppender, which will give you a more convinient way to
* control the format of the log output.
*
* \sa AbstractStringAppender
* \sa Logger::registerAppender()
*/
//! Constructs a AbstractAppender object.
AbstractAppender::AbstractAppender()
: m_detailsLevel(Logger::Debug)
{}
//! Destructs the AbstractAppender object.
AbstractAppender::~AbstractAppender()
{}
//! Returns the current details level of appender.
/**
* Log records with a log level lower than a current detailsLevel() will be silently ignored by appender and would not
* be sent to its append() function.
*
* It provides additional logging flexibility, allowing you to set the different severity levels for different types
* of logs.
*
* \note This function is thread safe.
*
* \sa setDetailsLevel()
* \sa Logger::LogLevel
*/
Logger::LogLevel AbstractAppender::detailsLevel() const
{
QMutexLocker locker(&m_detailsLevelMutex);
return m_detailsLevel;
}
//! Sets the current details level of appender.
/**
* Default details level is Logger::Debug
*
* \note This function is thread safe.
*
* \sa detailsLevel()
* \sa Logger::LogLevel
*/
void AbstractAppender::setDetailsLevel(Logger::LogLevel level)
{
QMutexLocker locker(&m_detailsLevelMutex);
m_detailsLevel = level;
}
//! Sets the current details level of appender
/**
* This function is provided for convenience, it behaves like an above function.
*
* \sa detailsLevel()
* \sa Logger::LogLevel
*/
void AbstractAppender::setDetailsLevel(const QString& level)
{
setDetailsLevel(Logger::levelFromString(level));
}
//! Tries to write the log record to this logger
/**
* This is the function called by Logger object to write a log message to the appender.
*
* \note This function is thread safe.
*
* \sa Logger::write()
* \sa detailsLevel()
*/
void AbstractAppender::write(const QDateTime& timeStamp, Logger::LogLevel logLevel, const char* file, int line,
const char* function, const QString& category, const QString& message)
{
if (logLevel >= detailsLevel())
{
QMutexLocker locker(&m_writeMutex);
append(timeStamp, logLevel, file, line, function, category, message);
}
}
/**
* \fn virtual void AbstractAppender::append(const QDateTime& timeStamp, Logger::LogLevel logLevel, const char* file,
* int line, const char* function, const QString& message)
*
* \brief Writes the log record to the logger instance
*
* This function is called every time when user tries to write a message to this AbstractAppender instance using
* the write() function. Write function works as proxy and transfers only the messages with log level more or equal
* to the current logLevel().
*
* Overload this function when you are implementing a custom appender.
*
* \note This function is not needed to be thread safe because it is never called directly by Logger object. The
* write() function works as a proxy and protects this function from concurrent access.
*
* \sa Logger::write()
*/

View File

@ -0,0 +1,459 @@
/*
Copyright (c) 2010 Boris Moiseev (cyberbobs at gmail dot com) Nikolay Matyunin (matyunin.n at gmail dot com)
Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License version 2.1
as published by the Free Software Foundation and appearing in the file
LICENSE.LGPL included in the packaging of this file.
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 Lesser General Public License for more details.
*/
// Local
#include "AbstractStringAppender.h"
// Qt
#include <QReadLocker>
#include <QWriteLocker>
#include <QDateTime>
#include <QRegExp>
#include <QCoreApplication>
#include <QThread>
/**
* \class AbstractStringAppender
*
* \brief The AbstractStringAppender class provides a convinient base for appenders working with plain text formatted
* logs.
*
* AbstractSringAppender is the simple extension of the AbstractAppender class providing the convinient way to create
* custom log appenders working with a plain text formatted log targets.
*
* It have the formattedString() protected function that formats the logging arguments according to a format set with
* setFormat().
*
* This class can not be directly instantiated because it contains pure virtual function inherited from AbstractAppender
* class.
*
* For more detailed description of customizing the log output format see the documentation on the setFormat() function.
*/
const char formattingMarker = '%';
//! Constructs a new string appender object
AbstractStringAppender::AbstractStringAppender()
: m_format(QLatin1String("%{time}{yyyy-MM-ddTHH:mm:ss.zzz} [%{type:-7}] <%{function}> %{message}\n"))
{}
//! Returns the current log format string.
/**
* The default format is set to "%{time}{yyyy-MM-ddTHH:mm:ss.zzz} [%{type:-7}] <%{function}> %{message}\n". You can set a different log record
* format using the setFormat() function.
*
* \sa setFormat(const QString&)
*/
QString AbstractStringAppender::format() const
{
QReadLocker locker(&m_formatLock);
return m_format;
}
//! Sets the logging format for writing strings to the log target with this appender.
/**
* The string format seems to be very common to those developers who have used a standart sprintf function.
*
* Log output format is a simple QString with the special markers (starting with % sign) which will be replaced with
* it's internal meaning when writing a log record.
*
* Controlling marker begins with the percent sign (%) which is followed by the command inside {} brackets
* (the command describes, what will be put to log record instead of marker).
* Optional field width argument may be specified right after the command (through the colon symbol before the closing bracket)
* Some commands requires an additional formatting argument (in the second {} brackets).
*
* Field width argument works almost identically to the \c QString::arg() \c fieldWidth argument (and uses it
* internally). For example, \c "%{type:-7}" will be replaced with the left padded debug level of the message
* (\c "Debug ") or something. For the more detailed description of it you may consider to look to the Qt
* Reference Documentation.
*
* Supported marker commands are:
* \arg \c %{time} - timestamp. You may specify your custom timestamp format using the second {} brackets after the marker,
* timestamp format here will be similiar to those used in QDateTime::toString() function. For example,
* "%{time}{dd-MM-yyyy, HH:mm}" may be replaced with "17-12-2010, 20:17" depending on current date and time.
* The default format used here is "HH:mm:ss.zzz".
* \arg \c %{type} - Log level. Possible log levels are shown in the Logger::LogLevel enumerator.
* \arg \c %{Type} - Uppercased log level.
* \arg \c %{typeOne} - One letter log level.
* \arg \c %{TypeOne} - One uppercase letter log level.
* \arg \c %{File} - Full source file name (with path) of the file that requested log recording. Uses the \c __FILE__
* preprocessor macro.
* \arg \c %{file} - Short file name (with stripped path).
* \arg \c %{line} - Line number in the source file. Uses the \c __LINE__ preprocessor macro.
* \arg \c %{Function} - Name of function that called on of the LOG_* macros. Uses the \c Q_FUNC_INFO macro provided with
* Qt.
* \arg \c %{function} - Similiar to the %{Function}, but the function name is stripped using stripFunctionName
* \arg \c %{message} - The log message sent by the caller.
* \arg \c %{category} - The log category.
* \arg \c %{appname} - Application name (returned by QCoreApplication::applicationName() function).
* \arg \c %{pid} - Application pid (returned by QCoreApplication::applicationPid() function).
* \arg \c %{threadid} - ID of current thread.
* \arg \c %% - Convinient marker that is replaced with the single \c % mark.
*
* \note Format doesn't add \c '\\n' to the end of the format line. Please consider adding it manually.
*
* \sa format()
* \sa stripFunctionName()
* \sa Logger::LogLevel
*/
void AbstractStringAppender::setFormat(const QString& format)
{
QWriteLocker locker(&m_formatLock);
m_format = format;
}
//! Strips the long function signature (as added by Q_FUNC_INFO macro)
/**
* The string processing drops the returning type, arguments and template parameters of function. It is definitely
* useful for enchancing the log output readability.
* \return stripped function name
*/
QString AbstractStringAppender::stripFunctionName(const char* name)
{
return QString::fromLatin1(qCleanupFuncinfo(name));
}
// The function was backported from Qt5 sources (qlogging.h)
QByteArray AbstractStringAppender::qCleanupFuncinfo(const char* name)
{
QByteArray info(name);
// Strip the function info down to the base function name
// note that this throws away the template definitions,
// the parameter types (overloads) and any const/volatile qualifiers.
if (info.isEmpty())
return info;
int pos;
// skip trailing [with XXX] for templates (gcc)
pos = info.size() - 1;
if (info.endsWith(']')) {
while (--pos) {
if (info.at(pos) == '[')
info.truncate(pos);
}
}
bool hasLambda = false;
QRegExp lambdaRegex("::<lambda\\(.*\\)>");
int lambdaIndex = lambdaRegex.indexIn(QString::fromLatin1(info));
if (lambdaIndex != -1)
{
hasLambda = true;
info.remove(lambdaIndex, lambdaRegex.matchedLength());
}
// operator names with '(', ')', '<', '>' in it
static const char operator_call[] = "operator()";
static const char operator_lessThan[] = "operator<";
static const char operator_greaterThan[] = "operator>";
static const char operator_lessThanEqual[] = "operator<=";
static const char operator_greaterThanEqual[] = "operator>=";
// canonize operator names
info.replace("operator ", "operator");
// remove argument list
forever {
int parencount = 0;
pos = info.lastIndexOf(')');
if (pos == -1) {
// Don't know how to parse this function name
return info;
}
// find the beginning of the argument list
--pos;
++parencount;
while (pos && parencount) {
if (info.at(pos) == ')')
++parencount;
else if (info.at(pos) == '(')
--parencount;
--pos;
}
if (parencount != 0)
return info;
info.truncate(++pos);
if (info.at(pos - 1) == ')') {
if (info.indexOf(operator_call) == pos - (int)strlen(operator_call))
break;
// this function returns a pointer to a function
// and we matched the arguments of the return type's parameter list
// try again
info.remove(0, info.indexOf('('));
info.chop(1);
continue;
} else {
break;
}
}
if (hasLambda)
info.append("::lambda");
// find the beginning of the function name
int parencount = 0;
int templatecount = 0;
--pos;
// make sure special characters in operator names are kept
if (pos > -1) {
switch (info.at(pos)) {
case ')':
if (info.indexOf(operator_call) == pos - (int)strlen(operator_call) + 1)
pos -= 2;
break;
case '<':
if (info.indexOf(operator_lessThan) == pos - (int)strlen(operator_lessThan) + 1)
--pos;
break;
case '>':
if (info.indexOf(operator_greaterThan) == pos - (int)strlen(operator_greaterThan) + 1)
--pos;
break;
case '=': {
int operatorLength = (int)strlen(operator_lessThanEqual);
if (info.indexOf(operator_lessThanEqual) == pos - operatorLength + 1)
pos -= 2;
else if (info.indexOf(operator_greaterThanEqual) == pos - operatorLength + 1)
pos -= 2;
break;
}
default:
break;
}
}
while (pos > -1) {
if (parencount < 0 || templatecount < 0)
return info;
char c = info.at(pos);
if (c == ')')
++parencount;
else if (c == '(')
--parencount;
else if (c == '>')
++templatecount;
else if (c == '<')
--templatecount;
else if (c == ' ' && templatecount == 0 && parencount == 0)
break;
--pos;
}
info = info.mid(pos + 1);
// remove trailing '*', '&' that are part of the return argument
while ((info.at(0) == '*')
|| (info.at(0) == '&'))
info = info.mid(1);
// we have the full function name now.
// clean up the templates
while ((pos = info.lastIndexOf('>')) != -1) {
if (!info.contains('<'))
break;
// find the matching close
int end = pos;
templatecount = 1;
--pos;
while (pos && templatecount) {
char c = info.at(pos);
if (c == '>')
++templatecount;
else if (c == '<')
--templatecount;
--pos;
}
++pos;
info.remove(pos, end - pos + 1);
}
return info;
}
//! Returns the string to record to the logging target, formatted according to the format().
/**
* \sa format()
* \sa setFormat(const QString&)
*/
QString AbstractStringAppender::formattedString(const QDateTime& timeStamp, Logger::LogLevel logLevel, const char* file,
int line, const char* function, const QString& category, const QString& message) const
{
QString f = format();
const int size = f.size();
QString result;
int i = 0;
while (i < f.size())
{
QChar c = f.at(i);
// We will silently ignore the broken % marker at the end of string
if (c != QLatin1Char(formattingMarker) || (i + 2) >= size)
{
result.append(c);
}
else
{
i += 2;
QChar currentChar = f.at(i);
QString command;
int fieldWidth = 0;
if (currentChar.isLetter())
{
command.append(currentChar);
int j = 1;
while ((i + j) < size && f.at(i + j).isLetter())
{
command.append(f.at(i+j));
j++;
}
i+=j;
currentChar = f.at(i);
// Check for the padding instruction
if (currentChar == QLatin1Char(':'))
{
currentChar = f.at(++i);
if (currentChar.isDigit() || currentChar.category() == QChar::Punctuation_Dash)
{
int j = 1;
while ((i + j) < size && f.at(i + j).isDigit())
j++;
fieldWidth = f.mid(i, j).toInt();
i += j;
}
}
}
// Log record chunk to insert instead of formatting instruction
QString chunk;
// Time stamp
if (command == QLatin1String("time"))
{
if (f.at(i + 1) == QLatin1Char('{'))
{
int j = 1;
while ((i + 2 + j) < size && f.at(i + 2 + j) != QLatin1Char('}'))
j++;
if ((i + 2 + j) < size)
{
chunk = timeStamp.toString(f.mid(i + 2, j));
i += j;
i += 2;
}
}
if (chunk.isNull())
chunk = timeStamp.toString(QLatin1String("HH:mm:ss.zzz"));
}
// Log level
else if (command == QLatin1String("type"))
chunk = Logger::levelToString(logLevel);
// Uppercased log level
else if (command == QLatin1String("Type"))
chunk = Logger::levelToString(logLevel).toUpper();
// One letter log level
else if (command == QLatin1String("typeOne"))
chunk = Logger::levelToString(logLevel).left(1).toLower();
// One uppercase letter log level
else if (command == QLatin1String("TypeOne"))
chunk = Logger::levelToString(logLevel).left(1).toUpper();
// Filename
else if (command == QLatin1String("File"))
chunk = QLatin1String(file);
// Filename without a path
else if (command == QLatin1String("file"))
chunk = QString(QLatin1String(file)).section(QRegExp("[/\\\\]"), -1);
// Source line number
else if (command == QLatin1String("line"))
chunk = QString::number(line);
// Function name, as returned by Q_FUNC_INFO
else if (command == QLatin1String("Function"))
chunk = QString::fromLatin1(function);
// Stripped function name
else if (command == QLatin1String("function"))
chunk = stripFunctionName(function);
// Log message
else if (command == QLatin1String("message"))
chunk = message;
else if (command == QLatin1String("category"))
chunk = category;
// Application pid
else if (command == QLatin1String("pid"))
chunk = QString::number(QCoreApplication::applicationPid());
// Appplication name
else if (command == QLatin1String("appname"))
chunk = QCoreApplication::applicationName();
// Thread ID (duplicates Qt5 threadid debbuging way)
else if (command == QLatin1String("threadid"))
chunk = QLatin1String("0x") + QString::number(qlonglong(QThread::currentThread()->currentThread()), 16);
// We simply replace the double formatting marker (%) with one
else if (command == QString(formattingMarker))
chunk = QLatin1Char(formattingMarker);
// Do not process any unknown commands
else
{
chunk = QString(formattingMarker);
chunk.append(command);
}
result.append(QString(QLatin1String("%1")).arg(chunk, fieldWidth));
}
++i;
}
return result;
}

View File

@ -0,0 +1,47 @@
// Local
#include "AndroidAppender.h"
// Android
#include <android/log.h>
AndroidAppender::AndroidAppender()
{
setFormat(QLatin1String("<%{function}> %{message}\n"));
}
int AndroidAppender::androidLogPriority(Logger::LogLevel logLevel)
{
switch (logLevel)
{
case Logger::Trace:
return ANDROID_LOG_VERBOSE;
case Logger::Debug:
return ANDROID_LOG_DEBUG;
case Logger::Info:
return ANDROID_LOG_INFO;
case Logger::Warning:
return ANDROID_LOG_WARN;
case Logger::Error:
return ANDROID_LOG_ERROR;
case Logger::Fatal:
return ANDROID_LOG_FATAL;
}
// Just in case
return ANDROID_LOG_DEFAULT;
}
void AndroidAppender::append(const QDateTime& timeStamp, Logger::LogLevel logLevel, const char* file, int line,
const char* function, const QString& category, const QString& message)
{
QString msg = formattedString(timeStamp, logLevel, file, line, function, category, message);
QString cat = category;
if (cat.isEmpty())
cat = QLatin1String("Logger");
__android_log_write(androidLogPriority(logLevel), qPrintable(cat), qPrintable(msg));
}

View File

@ -0,0 +1,64 @@
/*
Copyright (c) 2010 Boris Moiseev (cyberbobs at gmail dot com)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License version 2.1
as published by the Free Software Foundation and appearing in the file
LICENSE.LGPL included in the packaging of this file.
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 Lesser General Public License for more details.
*/
// Local
#include "ConsoleAppender.h"
// STL
#include <iostream>
/**
* \class ConsoleAppender
*
* \brief ConsoleAppender is the simple appender that writes the log records to the std::cerr output stream.
*
* ConsoleAppender uses "[%{type:-7}] <%{function}> %{message}\n" as a default output format. It is similar to the
* AbstractStringAppender but doesn't show a timestamp.
*
* You can modify ConsoleAppender output format without modifying your code by using \c QT_MESSAGE_PATTERN environment
* variable. If you need your application to ignore this environment variable you can call
* ConsoleAppender::ignoreEnvironmentPattern(true)
*/
ConsoleAppender::ConsoleAppender()
: AbstractStringAppender()
, m_ignoreEnvPattern(false)
{
setFormat("[%{type:-7}] <%{function}> %{message}\n");
}
QString ConsoleAppender::format() const
{
const QString envPattern = QString::fromLocal8Bit(qgetenv("QT_MESSAGE_PATTERN"));
return (m_ignoreEnvPattern || envPattern.isEmpty()) ? AbstractStringAppender::format() : (envPattern + "\n");
}
void ConsoleAppender::ignoreEnvironmentPattern(bool ignore)
{
m_ignoreEnvPattern = ignore;
}
//! Writes the log record to the std::cerr stream.
/**
* \sa AbstractStringAppender::format()
*/
void ConsoleAppender::append(const QDateTime& timeStamp, Logger::LogLevel logLevel, const char* file, int line,
const char* function, const QString& category, const QString& message)
{
std::cerr << qPrintable(formattedString(timeStamp, logLevel, file, line, function, category, message));
}

View File

@ -0,0 +1,116 @@
/*
Copyright (c) 2010 Boris Moiseev (cyberbobs at gmail dot com)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License version 2.1
as published by the Free Software Foundation and appearing in the file
LICENSE.LGPL included in the packaging of this file.
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 Lesser General Public License for more details.
*/
// Local
#include "FileAppender.h"
// STL
#include <iostream>
/**
* \class FileAppender
*
* \brief Simple appender that writes the log records to the plain text file.
*/
//! Constructs the new file appender assigned to file with the given name.
FileAppender::FileAppender(const QString& fileName)
{
setFileName(fileName);
}
FileAppender::~FileAppender()
{
closeFile();
}
//! Returns the name set by setFileName() or to the FileAppender constructor.
/**
* \sa setFileName()
*/
QString FileAppender::fileName() const
{
QMutexLocker locker(&m_logFileMutex);
return m_logFile.fileName();
}
//! Sets the name of the file. The name can have no path, a relative path, or an absolute path.
/**
* \sa fileName()
*/
void FileAppender::setFileName(const QString& s)
{
if (s.isEmpty())
std::cerr << "<FileAppender::FileAppender> File name is empty. The appender will do nothing" << std::endl;
QMutexLocker locker(&m_logFileMutex);
if (m_logFile.isOpen())
m_logFile.close();
m_logFile.setFileName(s);
}
bool FileAppender::reopenFile()
{
closeFile();
return openFile();
}
bool FileAppender::openFile()
{
if (m_logFile.fileName().isEmpty())
return false;
bool isOpen = m_logFile.isOpen();
if (!isOpen)
{
isOpen = m_logFile.open(QIODevice::WriteOnly | QIODevice::Append | QIODevice::Text);
if (isOpen)
m_logStream.setDevice(&m_logFile);
else
std::cerr << "<FileAppender::append> Cannot open the log file " << qPrintable(m_logFile.fileName()) << std::endl;
}
return isOpen;
}
//! Write the log record to the file.
/**
* \sa fileName()
* \sa AbstractStringAppender::format()
*/
void FileAppender::append(const QDateTime& timeStamp, Logger::LogLevel logLevel, const char* file, int line,
const char* function, const QString& category, const QString& message)
{
QMutexLocker locker(&m_logFileMutex);
if (openFile())
{
m_logStream << formattedString(timeStamp, logLevel, file, line, function, category, message);
m_logStream.flush();
m_logFile.flush();
}
}
void FileAppender::closeFile()
{
QMutexLocker locker(&m_logFileMutex);
m_logFile.close();
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,43 @@
/*
Copyright (c) 2010 Karl-Heinz Reichel (khreichel at googlemail dot com)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License version 2.1
as published by the Free Software Foundation and appearing in the file
LICENSE.LGPL included in the packaging of this file.
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 Lesser General Public License for more details.
*/
// Local
#include "OutputDebugAppender.h"
// STL
#include <windows.h>
/**
* \class OutputDebugAppender
*
* \brief Appender that writes the log records to the Microsoft Debug Log
*/
//! Writes the log record to the windows debug log.
/**
* \sa AbstractStringAppender::format()
*/
void OutputDebugAppender::append(const QDateTime& timeStamp,
Logger::LogLevel logLevel,
const char* file,
int line,
const char* function,
const QString& category,
const QString& message)
{
QString s = formattedString(timeStamp, logLevel, file, line, function, category, message);
OutputDebugStringW((LPCWSTR) s.utf16());
}

View File

@ -0,0 +1,249 @@
#include <QDateTime>
#include <QDir>
#include <QFileInfo>
#include "RollingFileAppender.h"
RollingFileAppender::RollingFileAppender(const QString& fileName)
: FileAppender(fileName)
, m_frequency(DailyRollover)
, m_logFilesLimit(0)
{}
void RollingFileAppender::append(const QDateTime& timeStamp, Logger::LogLevel logLevel, const char* file, int line,
const char* function, const QString& category, const QString& message)
{
if (!m_rollOverTime.isNull() && QDateTime::currentDateTime() > m_rollOverTime)
rollOver();
FileAppender::append(timeStamp, logLevel, file, line, function, category, message);
}
RollingFileAppender::DatePattern RollingFileAppender::datePattern() const
{
QMutexLocker locker(&m_rollingMutex);
return m_frequency;
}
QString RollingFileAppender::datePatternString() const
{
QMutexLocker locker(&m_rollingMutex);
return m_datePatternString;
}
void RollingFileAppender::setDatePattern(DatePattern datePattern)
{
switch (datePattern)
{
case MinutelyRollover:
setDatePatternString(QLatin1String("'.'yyyy-MM-dd-hh-mm"));
break;
case HourlyRollover:
setDatePatternString(QLatin1String("'.'yyyy-MM-dd-hh"));
break;
case HalfDailyRollover:
setDatePatternString(QLatin1String("'.'yyyy-MM-dd-a"));
break;
case DailyRollover:
setDatePatternString(QLatin1String("'.'yyyy-MM-dd"));
break;
case WeeklyRollover:
setDatePatternString(QLatin1String("'.'yyyy-ww"));
break;
case MonthlyRollover:
setDatePatternString(QLatin1String("'.'yyyy-MM"));
break;
default:
Q_ASSERT_X(false, "DailyRollingFileAppender::setDatePattern()", "Invalid datePattern constant");
setDatePattern(DailyRollover);
};
QMutexLocker locker(&m_rollingMutex);
m_frequency = datePattern;
computeRollOverTime();
}
void RollingFileAppender::setDatePattern(const QString& datePattern)
{
setDatePatternString(datePattern);
computeFrequency();
computeRollOverTime();
}
void RollingFileAppender::setDatePatternString(const QString& datePatternString)
{
QMutexLocker locker(&m_rollingMutex);
m_datePatternString = datePatternString;
}
void RollingFileAppender::computeFrequency()
{
QMutexLocker locker(&m_rollingMutex);
const QDateTime startTime(QDate(1999, 1, 1), QTime(0, 0));
const QString startString = startTime.toString(m_datePatternString);
if (startString != startTime.addSecs(60).toString(m_datePatternString))
m_frequency = MinutelyRollover;
else if (startString != startTime.addSecs(60 * 60).toString(m_datePatternString))
m_frequency = HourlyRollover;
else if (startString != startTime.addSecs(60 * 60 * 12).toString(m_datePatternString))
m_frequency = HalfDailyRollover;
else if (startString != startTime.addDays(1).toString(m_datePatternString))
m_frequency = DailyRollover;
else if (startString != startTime.addDays(7).toString(m_datePatternString))
m_frequency = WeeklyRollover;
else if (startString != startTime.addMonths(1).toString(m_datePatternString))
m_frequency = MonthlyRollover;
else
{
Q_ASSERT_X(false, "DailyRollingFileAppender::computeFrequency", "The pattern '%1' does not specify a frequency");
return;
}
}
void RollingFileAppender::removeOldFiles()
{
if (m_logFilesLimit <= 1)
return;
QFileInfo fileInfo(fileName());
QDir logDirectory(fileInfo.absoluteDir());
logDirectory.setFilter(QDir::Files);
logDirectory.setNameFilters(QStringList() << fileInfo.fileName() + "*");
QFileInfoList logFiles = logDirectory.entryInfoList();
QMap<QDateTime, QString> fileDates;
for (int i = 0; i < logFiles.length(); ++i)
{
QString name = logFiles[i].fileName();
QString suffix = name.mid(name.indexOf(fileInfo.fileName()) + fileInfo.fileName().length());
QDateTime fileDateTime = QDateTime::fromString(suffix, datePatternString());
if (fileDateTime.isValid())
fileDates.insert(fileDateTime, logFiles[i].absoluteFilePath());
}
QList<QString> fileDateNames = fileDates.values();
for (int i = 0; i < fileDateNames.length() - m_logFilesLimit + 1; ++i)
QFile::remove(fileDateNames[i]);
}
void RollingFileAppender::computeRollOverTime()
{
Q_ASSERT_X(!m_datePatternString.isEmpty(), "DailyRollingFileAppender::computeRollOverTime()", "No active date pattern");
QDateTime now = QDateTime::currentDateTime();
QDate nowDate = now.date();
QTime nowTime = now.time();
QDateTime start;
switch (m_frequency)
{
case MinutelyRollover:
{
start = QDateTime(nowDate, QTime(nowTime.hour(), nowTime.minute(), 0, 0));
m_rollOverTime = start.addSecs(60);
}
break;
case HourlyRollover:
{
start = QDateTime(nowDate, QTime(nowTime.hour(), 0, 0, 0));
m_rollOverTime = start.addSecs(60*60);
}
break;
case HalfDailyRollover:
{
int hour = nowTime.hour();
if (hour >= 12)
hour = 12;
else
hour = 0;
start = QDateTime(nowDate, QTime(hour, 0, 0, 0));
m_rollOverTime = start.addSecs(60*60*12);
}
break;
case DailyRollover:
{
start = QDateTime(nowDate, QTime(0, 0, 0, 0));
m_rollOverTime = start.addDays(1);
}
break;
case WeeklyRollover:
{
// Qt numbers the week days 1..7. The week starts on Monday.
// Change it to being numbered 0..6, starting with Sunday.
int day = nowDate.dayOfWeek();
if (day == Qt::Sunday)
day = 0;
start = QDateTime(nowDate, QTime(0, 0, 0, 0)).addDays(-1 * day);
m_rollOverTime = start.addDays(7);
}
break;
case MonthlyRollover:
{
start = QDateTime(QDate(nowDate.year(), nowDate.month(), 1), QTime(0, 0, 0, 0));
m_rollOverTime = start.addMonths(1);
}
break;
default:
Q_ASSERT_X(false, "DailyRollingFileAppender::computeInterval()", "Invalid datePattern constant");
m_rollOverTime = QDateTime::fromTime_t(0);
}
m_rollOverSuffix = start.toString(m_datePatternString);
Q_ASSERT_X(now.toString(m_datePatternString) == m_rollOverSuffix,
"DailyRollingFileAppender::computeRollOverTime()", "File name changes within interval");
Q_ASSERT_X(m_rollOverSuffix != m_rollOverTime.toString(m_datePatternString),
"DailyRollingFileAppender::computeRollOverTime()", "File name does not change with rollover");
}
void RollingFileAppender::rollOver()
{
Q_ASSERT_X(!m_datePatternString.isEmpty(), "DailyRollingFileAppender::rollOver()", "No active date pattern");
QString rollOverSuffix = m_rollOverSuffix;
computeRollOverTime();
if (rollOverSuffix == m_rollOverSuffix)
return;
closeFile();
QString targetFileName = fileName() + rollOverSuffix;
QFile f(targetFileName);
if (f.exists() && !f.remove())
return;
f.setFileName(fileName());
if (!f.rename(targetFileName))
return;
openFile();
removeOldFiles();
}
void RollingFileAppender::setLogFilesLimit(int limit)
{
QMutexLocker locker(&m_rollingMutex);
m_logFilesLimit = limit;
}
int RollingFileAppender::logFilesLimit() const
{
QMutexLocker locker(&m_rollingMutex);
return m_logFilesLimit;
}

View File

@ -0,0 +1,124 @@
#include <QtTest/QtTest>
#include <Logger.h>
#include <AbstractAppender.h>
class TestAppender : public AbstractAppender
{
protected:
void append(const QDateTime& timeStamp, Logger::LogLevel logLevel, const char* file, int line, const char* function,
const QString& category, const QString& message) override;
public:
struct Record
{
QDateTime timeStamp;
Logger::LogLevel logLevel;
const char* file;
int line;
const char* function;
QString category;
QString message;
};
QList<Record> records;
void clear() { records.clear(); }
};
void TestAppender::append(const QDateTime& timeStamp, Logger::LogLevel logLevel, const char* file, int line, const char* function, const QString& category, const QString& message)
{
records.append({ timeStamp, logLevel, file, line, function, category, message });
}
class BasicTest : public QObject
{
Q_OBJECT
private slots:
void initTestCase();
void testCString();
void testQDebug();
void testRecursiveQDebug();
void cleanupTestCase();
private:
TestAppender appender;
int testQDebugInt();
};
void BasicTest::initTestCase()
{
cuteLogger->registerAppender(&appender);
}
void BasicTest::testCString()
{
LOG_DEBUG("Message");
QCOMPARE(appender.records.size(), 1);
TestAppender::Record r = appender.records.last();
appender.clear();
QCOMPARE(r.logLevel, Logger::Debug);
QCOMPARE(r.file, __FILE__);
QVERIFY(r.line != 0);
QCOMPARE(r.function, Q_FUNC_INFO);
QCOMPARE(r.category, QString());
QCOMPARE(r.message, QStringLiteral("Message"));
}
void BasicTest::testQDebug()
{
LOG_DEBUG() << "Message" << 5;
QCOMPARE(appender.records.size(), 1);
TestAppender::Record r = appender.records.last();
appender.clear();
QCOMPARE(r.logLevel, Logger::Debug);
QCOMPARE(r.file, __FILE__);
QVERIFY(r.line != 0);
QCOMPARE(r.function, Q_FUNC_INFO);
QCOMPARE(r.category, QString());
QCOMPARE(r.message, QStringLiteral("Message 5 "));
}
void BasicTest::testRecursiveQDebug()
{
LOG_DEBUG() << "Message" << testQDebugInt();
QCOMPARE(appender.records.size(), 2);
auto r1 = appender.records.first();
auto r2 = appender.records.last();
appender.clear();
QCOMPARE(r2.function, Q_FUNC_INFO);
QCOMPARE(r1.message, QStringLiteral("Test "));
QCOMPARE(r2.message, QStringLiteral("Message 0 "));
}
void BasicTest::cleanupTestCase()
{
cuteLogger->removeAppender(&appender);
}
int BasicTest::testQDebugInt()
{
LOG_DEBUG() << "Test";
return 0;
}
QTEST_MAIN(BasicTest)
#include "basictest.moc"

View File

@ -31,6 +31,7 @@ include($$PWD/QSimpleUpdater/QSimpleUpdater.pri)
# CuteLogger stuff
#-------------------------------------------------------------------------------
DEFINES += CUTELOGGER_SRC
INCLUDEPATH += $$PWD/CuteLogger/include
SOURCES += $$PWD/CuteLogger/src/Logger.cpp \

@ -1 +0,0 @@
Subproject commit ee15d62388441485c2d96f50ba96994a0743e2f7

1
libs/QSimpleUpdater/.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
doc/* linguist-documentation

30
libs/QSimpleUpdater/.gitignore vendored Normal file
View File

@ -0,0 +1,30 @@
# General
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
# Qt project file
*.pro.user

View File

@ -0,0 +1,19 @@
language: cpp
compiler: gcc
dist: trusty
sudo: required
before_install:
- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
- sudo add-apt-repository --yes ppa:ubuntu-sdk-team/ppa
- sudo apt-get update -qq
install:
- sudo apt-get install -y --force-yes build-essential g++-4.8 -y
- sudo apt-get install -y --force-yes libudev-dev libts-dev libgl1-mesa-dev libglu1-mesa-dev libasound2-dev libpulse-dev -y
- sudo apt-get install -y --force-yes qtbase5-dev qtdeclarative5-dev libqt5gui5 qttools5-dev-tools qttools5-dev qtmultimedia5-dev
script:
- qmake -qt=qt5 QSimpleUpdater.pro
- make -j4

View File

@ -0,0 +1,27 @@
# DON'T BE A DICK PUBLIC LICENSE
> Version 1, December 2009
> Copyright (C) 2009 Philip Sturgeon <me@philsturgeon.uk>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
> DON'T BE A DICK PUBLIC LICENSE
> TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
1. Do whatever you like with the original work, just don't be a dick.
Being a dick includes - but is not limited to - the following instances:
1a. Outright copyright infringement - Don't just copy this and change the name.
1b. Selling the unmodified original with no work done what-so-ever, that's REALLY being a dick.
1c. Modifying the original work to contain hidden harmful content. That would make you a PROPER dick.
2. If you become rich through modifications, related works/services, or supporting the original work,
share the love. Only a dick would make loads off this work and not buy the original work's
creator(s) a pint.
3. Code is provided with no warranty. Using somebody else's code and bitching when it goes wrong makes
you a DONKEY dick. Fix the problem yourself. A non-dick would submit the fix back.

View File

@ -0,0 +1,47 @@
#
# Copyright (c) 2014-2016 Alex Spataru <alex_spataru@outlook.com>
#
# This file is part of the QSimpleUpdater library, which is released under
# the DBAD license, you can read a copy of it below:
#
# DON'T BE A DICK PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION
# AND MODIFICATION:
#
# Do whatever you like with the original work, just don't be a dick.
# Being a dick includes - but is not limited to - the following instances:
#
# 1a. Outright copyright infringement - Don't just copy this and change the
# name.
# 1b. Selling the unmodified original with no work done what-so-ever, that's
# REALLY being a dick.
# 1c. Modifying the original work to contain hidden harmful content.
# That would make you a PROPER dick.
#
# If you become rich through modifications, related works/services, or
# supporting the original work, share the love.
# Only a dick would make loads off this work and not buy the original works
# creator(s) a pint.
#
# Code is provided with no warranty. Using somebody else's code and bitching
# when it goes wrong makes you a DONKEY dick.
# Fix the problem yourself. A non-dick would submit the fix back.
QT += gui
QT += core
QT += network
QT += widgets
INCLUDEPATH += $$PWD/include
SOURCES += \
$$PWD/src/Updater.cpp \
$$PWD/src/Downloader.cpp \
$$PWD/src/QSimpleUpdater.cpp
HEADERS += \
$$PWD/include/QSimpleUpdater.h \
$$PWD/src/Updater.h \
$$PWD/src/Downloader.h
FORMS += $$PWD/src/Downloader.ui
RESOURCES += $$PWD/etc/resources/qsimpleupdater.qrc

View File

@ -0,0 +1,31 @@
#
# Copyright (c) 2014-2016 Alex Spataru <alex_spataru@outlook.com>
#
# This file is part of the QSimpleUpdater library, which is released under
# the DBAD license, you can read a copy of it below:
#
# DON'T BE A DICK PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION
# AND MODIFICATION:
#
# Do whatever you like with the original work, just don't be a dick.
# Being a dick includes - but is not limited to - the following instances:
#
# 1a. Outright copyright infringement - Don't just copy this and change the
# name.
# 1b. Selling the unmodified original with no work done what-so-ever, that's
# REALLY being a dick.
# 1c. Modifying the original work to contain hidden harmful content.
# That would make you a PROPER dick.
#
# If you become rich through modifications, related works/services, or
# supporting the original work, share the love.
# Only a dick would make loads off this work and not buy the original works
# creator(s) a pint.
#
# Code is provided with no warranty. Using somebody else's code and bitching
# when it goes wrong makes you a DONKEY dick.
# Fix the problem yourself. A non-dick would submit the fix back.
TEMPLATE = lib
DEFINES += QSU_SHARED
include ($$PWD/QSimpleUpdater.pri)

View File

@ -0,0 +1,74 @@
# QSimpleUpdater
[![Build Status](https://img.shields.io/travis/alex-spataru/QSimpleUpdater.svg?style=flat-square)](https://travis-ci.org/alex-spataru/QSimpleUpdater)
QSimpleUpdater is an implementation of an auto-updating system to be used with Qt projects. It allows you to easily check for updates, download them and install them. Additionally, the QSimpleUpdater allows you to check for updates for different "modules" of your application. Check the [WTFs Section](#wtfs-section) for more information.
Online documentation can be found [here](http://frc-utilities.github.io/documentation/qsimpleupdater/).
[![Downloading](etc/screenshots/downloading.png)](etc/screenshots/)
## Integrating QSimpleUpdater with your projects
1. Copy the QSimpleUpdater folder in your "3rd-party" folder.
2. Include the QSimpleUpdater project include (*pri*) file using the include() function.
3. That's all! Check the [tutorial project](/tutorial) as a reference for your project.
## WTFs Section
### 1. How does the QSimpleUpdater check for updates?
The QSimpleUpdater downloads an update definition file stored in JSON format. This file specifies the latest version, the download links and changelogs for each platform (you can also register your own platform easily if needed).
After downloading this file, the library analyzes the local version and the remote version. If the remote version is greater than the local version, then the library infers that there is an update available and notifies the user.
An example update definition file can be found [here](https://github.com/alex-spataru/QSimpleUpdater/blob/master/tutorial/definitions/updates.json).
### 2. Can I customize the update notifications shown to the user?
Yes! You can "toggle" which notifications to show using the library's functions or re-implement by yourself the notifications by "reacting" to the signals emitted by the QSimpleUpdater.
```c++
QString url = "https://MyBadassApplication.com/updates.json";
QSimpleUpdater::getInstance()->setNotifyOnUpdate (url, true);
QSimpleUpdater::getInstance()->setNotifyOnFinish (url, false);
QSimpleUpdater::getInstance()->checkForUpdates (url);
```
### 3. Is the application able to download the updates directly?
Yes. If there is an update available, the library will prompt the user if he/she wants to download the update. You can enable or disable the integrated downloader with the following code:
```c++
QString url = "https://MyBadassApplication.com/updates.json";
QSimpleUpdater::getInstance()->setDownloaderEnabled (url, true);
```
### 4. Why do I need to specify an URL for each function of the library?
The QSimpleUpdater allows you to use different updater instances, which can be accessed with the URL of the update definitions.
While it is not obligatory to use multiple updater instances, this can be useful for applications that make use of plugins or different modules.
Say that you are developing a game, in this case, you could use the following code:
```c++
// Update the game textures
QString textures_url = "https://MyBadassGame.com/textures.json"
QSimpleUpdater::getInstance()->setModuleName (textures_url, "textures");
QSimpleUpdater::getInstance()->setModuleVersion (textures_url, "0.4");
QSimpleUpdater::getInstance()->checkForUpdates (textures_url);
// Update the game sounds
QString sounds_url = "https://MyBadassGame.com/sounds.json"
QSimpleUpdater::getInstance()->setModuleName (sounds_url, "sounds");
QSimpleUpdater::getInstance()->setModuleVersion (sounds_url, "0.6");
QSimpleUpdater::getInstance()->checkForUpdates (sounds_url);
// Update the client (name & versions are already stored in qApp)
QString client_url = "https://MyBadassGame.com/client.json"
QSimpleUpdater::getInstance()->checkForUpdates (client_url);
```
## License
QSimpleUpdater is free and open-source software, it is released under the [DBAD](COPYING.md) license.

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -0,0 +1,66 @@
# Introduction
QSimpleUpdater is an implementation of an auto-updating system to be used with Qt projects. It allows you to easily check for updates, download them and install them. Additionally, the QSimpleUpdater allows you to check for updates for different "modules" of your application. Check the WTFs for more information.
## Integrating QSimpleUpdater with your projects
1. Copy the QSimpleUpdater folder in your "3rd-party" folder.
2. Include the QSimpleUpdater project include (*pri*) file using the include() function.
3. That's all! Check the tutorial project as a reference for your project.
## WTFs Section
### 1. How does the QSimpleUpdater check for updates?
The QSimpleUpdater downloads an update definition file stored in JSON format. This file specifies the latest version, the download links and changelogs for each platform (you can also register your own platform easily if needed).
After downloading this file, the library analyzes the local version and the remote version. If the remote version is greater than the local version, then the library infers that there is an update available and notifies the user.
### 2. Can I customize the update notifications shown to the user?
Yes! You can "toggle" which notifications to show using the library's functions or re-implement by yourself the notifications by "reacting" to the signals emitted by the QSimpleUpdater.
```
QString url = "https://MyBadassApplication.com/updates.json";
QSimpleUpdater::getInstance()->setNotifyOnUpdate (url, true);
QSimpleUpdater::getInstance()->setNotifyOnFinish (url, false);
QSimpleUpdater::getInstance()->checkForUpdates (url);
```
### 3. Is the application able to download the updates directly?
Yes. If there is an update available, the library will prompt the user if he/she wants to download the update. You can enable or disable the integrated downloader with the following code:
```
QString url = "https://MyBadassApplication.com/updates.json";
QSimpleUpdater::getInstance()->setDownloaderEnabled (url, true);
```
### 4. Why do I need to specify an URL for each function of the library?
The QSimpleUpdater allows you to use different updater instances, which can be accessed with the URL of the update definitions.
While it is not obligatory to use multiple updater instances, this can be useful for applications that make use of plugins or different modules.
Say that you are developing a game, in this case, you could use the following code:
```
// Update the game textures
QString textures_url = "https://MyBadassGame.com/textures.json"
QSimpleUpdater::getInstance()->setModuleName (textures_url, "textures");
QSimpleUpdater::getInstance()->setModuleVersion (textures_url, "0.4");
QSimpleUpdater::getInstance()->checkForUpdates (textures_url);
// Update the game sounds
QString sounds_url = "https://MyBadassGame.com/sounds.json"
QSimpleUpdater::getInstance()->setModuleName (sounds_url, "sounds");
QSimpleUpdater::getInstance()->setModuleVersion (sounds_url, "0.6");
QSimpleUpdater::getInstance()->checkForUpdates (sounds_url);
// Update the client (name & versions are already stored in qApp)
QString client_url = "https://MyBadassGame.com/client.json"
QSimpleUpdater::getInstance()->checkForUpdates (client_url);
```
## License
QSimpleUpdater is free and open-source software, it is released under the Don't Be A Dick License.

View File

@ -0,0 +1,9 @@
<html>
<head>
<meta http-equiv="refresh" content="0; url=output/html/index.html"/>
</head>
<body>
<h2>You are being redirected...</h2>
<p>If this piece of crap does not work, please click <a href="output/html/index.html">here</a>.</p>
</body>
</html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,106 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>QSimpleUpdater: Class List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="icon.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">QSimpleUpdater
</div>
<div id="projectbrief">A simple auto-updater system for Qt applications</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li class="current"><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="classes.html"><span>Class&#160;Index</span></a></li>
<li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">Class List</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock">Here are the classes, structs, unions and interfaces with brief descriptions:</div><div class="directory">
<table class="directory">
<tr id="row_0_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="class_downloader.html" target="_self">Downloader</a></td><td class="desc">Implements an integrated file downloader with a nice UI </td></tr>
<tr id="row_1_"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="class_q_simple_updater.html" target="_self">QSimpleUpdater</a></td><td class="desc">Manages the updater instances </td></tr>
<tr id="row_2_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="class_updater.html" target="_self">Updater</a></td><td class="desc">Downloads and interprests the update definition file </td></tr>
</table>
</div><!-- directory -->
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 229 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 676 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 B

View File

@ -0,0 +1,122 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>QSimpleUpdater: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="icon.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">QSimpleUpdater
</div>
<div id="projectbrief">A simple auto-updater system for Qt applications</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="classes.html"><span>Class&#160;Index</span></a></li>
<li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">Downloader Member List</div> </div>
</div><!--header-->
<div class="contents">
<p>This is the complete list of members for <a class="el" href="class_downloader.html">Downloader</a>, including all inherited members.</p>
<table class="directory">
<tr class="even"><td class="entry"><a class="el" href="class_downloader.html#a2909b4a7cfb35f2709849ee2c95dae0e">calculateSizes</a>(qint64 received, qint64 total)</td><td class="entry"><a class="el" href="class_downloader.html">Downloader</a></td><td class="entry"><span class="mlabel">private</span><span class="mlabel">slot</span></td></tr>
<tr><td class="entry"><a class="el" href="class_downloader.html#a662cc753f90f25c91721f8edeaac9b57">calculateTimeRemaining</a>(qint64 received, qint64 total)</td><td class="entry"><a class="el" href="class_downloader.html">Downloader</a></td><td class="entry"><span class="mlabel">private</span><span class="mlabel">slot</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="class_downloader.html#a17209ffbd584af1a3e836e46e70d18d9">cancelDownload</a>()</td><td class="entry"><a class="el" href="class_downloader.html">Downloader</a></td><td class="entry"><span class="mlabel">private</span><span class="mlabel">slot</span></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>Downloader</b>(QWidget *parent=0) (defined in <a class="el" href="class_downloader.html">Downloader</a>)</td><td class="entry"><a class="el" href="class_downloader.html">Downloader</a></td><td class="entry"><span class="mlabel">explicit</span></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>downloadFinished</b>(const QString &amp;url, const QString &amp;filepath) (defined in <a class="el" href="class_downloader.html">Downloader</a>)</td><td class="entry"><a class="el" href="class_downloader.html">Downloader</a></td><td class="entry"><span class="mlabel">signal</span></td></tr>
<tr><td class="entry"><a class="el" href="class_downloader.html#abd39884d0586459bdd09b490913223fe">installUpdate</a>()</td><td class="entry"><a class="el" href="class_downloader.html">Downloader</a></td><td class="entry"><span class="mlabel">private</span><span class="mlabel">slot</span></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>m_filePath</b> (defined in <a class="el" href="class_downloader.html">Downloader</a>)</td><td class="entry"><a class="el" href="class_downloader.html">Downloader</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>m_manager</b> (defined in <a class="el" href="class_downloader.html">Downloader</a>)</td><td class="entry"><a class="el" href="class_downloader.html">Downloader</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>m_reply</b> (defined in <a class="el" href="class_downloader.html">Downloader</a>)</td><td class="entry"><a class="el" href="class_downloader.html">Downloader</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>m_startTime</b> (defined in <a class="el" href="class_downloader.html">Downloader</a>)</td><td class="entry"><a class="el" href="class_downloader.html">Downloader</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>m_ui</b> (defined in <a class="el" href="class_downloader.html">Downloader</a>)</td><td class="entry"><a class="el" href="class_downloader.html">Downloader</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>m_useCustomProcedures</b> (defined in <a class="el" href="class_downloader.html">Downloader</a>)</td><td class="entry"><a class="el" href="class_downloader.html">Downloader</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="class_downloader.html#acfd827dd6b36e82a4cc8bfbb284056e9">onDownloadFinished</a>()</td><td class="entry"><a class="el" href="class_downloader.html">Downloader</a></td><td class="entry"><span class="mlabel">private</span><span class="mlabel">slot</span></td></tr>
<tr><td class="entry"><a class="el" href="class_downloader.html#a0117b0dd837b46ca5cdd8b4f2ea5a552">openDownload</a>()</td><td class="entry"><a class="el" href="class_downloader.html">Downloader</a></td><td class="entry"><span class="mlabel">private</span><span class="mlabel">slot</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="class_downloader.html#ae4285290c22361353a36f25e742fc829">round</a>(const qreal &amp;input)</td><td class="entry"><a class="el" href="class_downloader.html">Downloader</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr><td class="entry"><a class="el" href="class_downloader.html#a26a4f889029c63c11f679284397a3285">setUseCustomInstallProcedures</a>(const bool &amp;custom)</td><td class="entry"><a class="el" href="class_downloader.html">Downloader</a></td><td class="entry"><span class="mlabel">slot</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="class_downloader.html#a7f81027436d44ca52168b30a6eb0d379">startDownload</a>(const QUrl &amp;url)</td><td class="entry"><a class="el" href="class_downloader.html">Downloader</a></td><td class="entry"><span class="mlabel">slot</span></td></tr>
<tr><td class="entry"><a class="el" href="class_downloader.html#a097bee5b7d904da53427c5a5cb47ce83">updateProgress</a>(qint64 received, qint64 total)</td><td class="entry"><a class="el" href="class_downloader.html">Downloader</a></td><td class="entry"><span class="mlabel">private</span><span class="mlabel">slot</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="class_downloader.html#a3e7a91a3cdfa68e3bc59db0af1377f9c">useCustomInstallProcedures</a>() const </td><td class="entry"><a class="el" href="class_downloader.html">Downloader</a></td><td class="entry"></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>~Downloader</b>() (defined in <a class="el" href="class_downloader.html">Downloader</a>)</td><td class="entry"><a class="el" href="class_downloader.html">Downloader</a></td><td class="entry"></td></tr>
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>

View File

@ -0,0 +1,517 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>QSimpleUpdater: Downloader Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="icon.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">QSimpleUpdater
</div>
<div id="projectbrief">A simple auto-updater system for Qt applications</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="classes.html"><span>Class&#160;Index</span></a></li>
<li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-slots">Public Slots</a> &#124;
<a href="#signals">Signals</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-slots">Private Slots</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="class_downloader-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">Downloader Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Implements an integrated file downloader with a nice UI.
<a href="class_downloader.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="_downloader_8h_source.html">Downloader.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Downloader:</div>
<div class="dyncontent">
<div class="center">
<img src="class_downloader.png" usemap="#Downloader_map" alt=""/>
<map id="Downloader_map" name="Downloader_map">
</map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-slots"></a>
Public Slots</h2></td></tr>
<tr class="memitem:a7f81027436d44ca52168b30a6eb0d379"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_downloader.html#a7f81027436d44ca52168b30a6eb0d379">startDownload</a> (const QUrl &amp;url)</td></tr>
<tr class="separator:a7f81027436d44ca52168b30a6eb0d379"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26a4f889029c63c11f679284397a3285"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_downloader.html#a26a4f889029c63c11f679284397a3285">setUseCustomInstallProcedures</a> (const bool &amp;custom)</td></tr>
<tr class="separator:a26a4f889029c63c11f679284397a3285"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="signals"></a>
Signals</h2></td></tr>
<tr class="memitem:a7374214627efe871ac19af293f702f9a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7374214627efe871ac19af293f702f9a"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>downloadFinished</b> (const QString &amp;url, const QString &amp;filepath)</td></tr>
<tr class="separator:a7374214627efe871ac19af293f702f9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a4c89702786810ca23a9816dd3c762283"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4c89702786810ca23a9816dd3c762283"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Downloader</b> (QWidget *parent=0)</td></tr>
<tr class="separator:a4c89702786810ca23a9816dd3c762283"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e7a91a3cdfa68e3bc59db0af1377f9c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_downloader.html#a3e7a91a3cdfa68e3bc59db0af1377f9c">useCustomInstallProcedures</a> () const </td></tr>
<tr class="separator:a3e7a91a3cdfa68e3bc59db0af1377f9c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-slots"></a>
Private Slots</h2></td></tr>
<tr class="memitem:a0117b0dd837b46ca5cdd8b4f2ea5a552"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_downloader.html#a0117b0dd837b46ca5cdd8b4f2ea5a552">openDownload</a> ()</td></tr>
<tr class="separator:a0117b0dd837b46ca5cdd8b4f2ea5a552"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd39884d0586459bdd09b490913223fe"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_downloader.html#abd39884d0586459bdd09b490913223fe">installUpdate</a> ()</td></tr>
<tr class="separator:abd39884d0586459bdd09b490913223fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a17209ffbd584af1a3e836e46e70d18d9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_downloader.html#a17209ffbd584af1a3e836e46e70d18d9">cancelDownload</a> ()</td></tr>
<tr class="separator:a17209ffbd584af1a3e836e46e70d18d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acfd827dd6b36e82a4cc8bfbb284056e9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_downloader.html#acfd827dd6b36e82a4cc8bfbb284056e9">onDownloadFinished</a> ()</td></tr>
<tr class="separator:acfd827dd6b36e82a4cc8bfbb284056e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2909b4a7cfb35f2709849ee2c95dae0e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_downloader.html#a2909b4a7cfb35f2709849ee2c95dae0e">calculateSizes</a> (qint64 received, qint64 total)</td></tr>
<tr class="separator:a2909b4a7cfb35f2709849ee2c95dae0e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a097bee5b7d904da53427c5a5cb47ce83"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_downloader.html#a097bee5b7d904da53427c5a5cb47ce83">updateProgress</a> (qint64 received, qint64 total)</td></tr>
<tr class="separator:a097bee5b7d904da53427c5a5cb47ce83"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a662cc753f90f25c91721f8edeaac9b57"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_downloader.html#a662cc753f90f25c91721f8edeaac9b57">calculateTimeRemaining</a> (qint64 received, qint64 total)</td></tr>
<tr class="separator:a662cc753f90f25c91721f8edeaac9b57"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:ae4285290c22361353a36f25e742fc829"><td class="memItemLeft" align="right" valign="top">qreal&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_downloader.html#ae4285290c22361353a36f25e742fc829">round</a> (const qreal &amp;input)</td></tr>
<tr class="separator:ae4285290c22361353a36f25e742fc829"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:afa212578c447d8d5a2af85562f53385d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afa212578c447d8d5a2af85562f53385d"></a>
uint&#160;</td><td class="memItemRight" valign="bottom"><b>m_startTime</b></td></tr>
<tr class="separator:afa212578c447d8d5a2af85562f53385d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8fc9c6fda1015b5398300e2eb1432fd"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad8fc9c6fda1015b5398300e2eb1432fd"></a>
QString&#160;</td><td class="memItemRight" valign="bottom"><b>m_filePath</b></td></tr>
<tr class="separator:ad8fc9c6fda1015b5398300e2eb1432fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afed75d920ca2440bf53ebb85ba6d528c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afed75d920ca2440bf53ebb85ba6d528c"></a>
Ui::Downloader *&#160;</td><td class="memItemRight" valign="bottom"><b>m_ui</b></td></tr>
<tr class="separator:afed75d920ca2440bf53ebb85ba6d528c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54326eccac53a0727e57727a26ce87ab"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a54326eccac53a0727e57727a26ce87ab"></a>
QNetworkReply *&#160;</td><td class="memItemRight" valign="bottom"><b>m_reply</b></td></tr>
<tr class="separator:a54326eccac53a0727e57727a26ce87ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14e5f9a42801bc219e69f01439b98581"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a14e5f9a42801bc219e69f01439b98581"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>m_useCustomProcedures</b></td></tr>
<tr class="separator:a14e5f9a42801bc219e69f01439b98581"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29d51b83f23e81ab8a1c66847643e52f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a29d51b83f23e81ab8a1c66847643e52f"></a>
QNetworkAccessManager *&#160;</td><td class="memItemRight" valign="bottom"><b>m_manager</b></td></tr>
<tr class="separator:a29d51b83f23e81ab8a1c66847643e52f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Implements an integrated file downloader with a nice UI. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a2909b4a7cfb35f2709849ee2c95dae0e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Downloader::calculateSizes </td>
<td>(</td>
<td class="paramtype">qint64&#160;</td>
<td class="paramname"><em>received</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">qint64&#160;</td>
<td class="paramname"><em>total</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Calculates the appropiate size units (bytes, KB or MB) for the received data and the total download size. Then, this function proceeds to update the dialog controls/UI. </p>
<p>References <a class="el" href="class_downloader.html#ae4285290c22361353a36f25e742fc829">round()</a>.</p>
<p>Referenced by <a class="el" href="class_downloader.html#a097bee5b7d904da53427c5a5cb47ce83">updateProgress()</a>.</p>
</div>
</div>
<a class="anchor" id="a662cc753f90f25c91721f8edeaac9b57"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Downloader::calculateTimeRemaining </td>
<td>(</td>
<td class="paramtype">qint64&#160;</td>
<td class="paramname"><em>received</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">qint64&#160;</td>
<td class="paramname"><em>total</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Uses two time samples (from the current time and a previous sample) to calculate how many bytes have been downloaded.</p>
<p>Then, this function proceeds to calculate the appropiate units of time (hours, minutes or seconds) and constructs a user-friendly string, which is displayed in the dialog. </p>
<p>Referenced by <a class="el" href="class_downloader.html#a097bee5b7d904da53427c5a5cb47ce83">updateProgress()</a>.</p>
</div>
</div>
<a class="anchor" id="a17209ffbd584af1a3e836e46e70d18d9"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Downloader::cancelDownload </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Prompts the user if he/she wants to cancel the download and cancels the download if the user agrees to do that. </p>
</div>
</div>
<a class="anchor" id="abd39884d0586459bdd09b490913223fe"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Downloader::installUpdate </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Instructs the OS to open the downloaded file.</p>
<dl class="section note"><dt>Note</dt><dd>If <code><a class="el" href="class_downloader.html#a3e7a91a3cdfa68e3bc59db0af1377f9c">useCustomInstallProcedures()</a></code> returns <code>true</code>, the function will not instruct the OS to open the downloaded file. You can use the signals fired by the <code><a class="el" href="class_q_simple_updater.html" title="Manages the updater instances. ">QSimpleUpdater</a></code> to install the update with your own implementations/code. </dd></dl>
<p>References <a class="el" href="class_downloader.html#a0117b0dd837b46ca5cdd8b4f2ea5a552">openDownload()</a>, and <a class="el" href="class_downloader.html#a3e7a91a3cdfa68e3bc59db0af1377f9c">useCustomInstallProcedures()</a>.</p>
<p>Referenced by <a class="el" href="class_downloader.html#acfd827dd6b36e82a4cc8bfbb284056e9">onDownloadFinished()</a>.</p>
</div>
</div>
<a class="anchor" id="acfd827dd6b36e82a4cc8bfbb284056e9"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Downloader::onDownloadFinished </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Writes the downloaded data to a temp. directory and updates the UI controls. </p><dl class="section note"><dt>Note</dt><dd>If the function detects that the downloaded data is an HTML file (e.g. a redirection notice from the server), the function will add the *.html extension to the downloaded file. This ensures that the download will be resumed when the OS opens a web-browser with the redirection notice. </dd></dl>
<p>References <a class="el" href="class_downloader.html#abd39884d0586459bdd09b490913223fe">installUpdate()</a>.</p>
<p>Referenced by <a class="el" href="class_downloader.html#a7f81027436d44ca52168b30a6eb0d379">startDownload()</a>.</p>
</div>
</div>
<a class="anchor" id="a0117b0dd837b46ca5cdd8b4f2ea5a552"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Downloader::openDownload </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Opens the downloaded file. </p><dl class="section note"><dt>Note</dt><dd>If the downloaded file is not found, then the function will alert the user about the error. </dd></dl>
<p>Referenced by <a class="el" href="class_downloader.html#abd39884d0586459bdd09b490913223fe">installUpdate()</a>.</p>
</div>
</div>
<a class="anchor" id="ae4285290c22361353a36f25e742fc829"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">qreal Downloader::round </td>
<td>(</td>
<td class="paramtype">const qreal &amp;&#160;</td>
<td class="paramname"><em>input</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Rounds the given <em>input</em> to two decimal places </p>
<p>Referenced by <a class="el" href="class_downloader.html#a2909b4a7cfb35f2709849ee2c95dae0e">calculateSizes()</a>.</p>
</div>
</div>
<a class="anchor" id="a26a4f889029c63c11f679284397a3285"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Downloader::setUseCustomInstallProcedures </td>
<td>(</td>
<td class="paramtype">const bool &amp;&#160;</td>
<td class="paramname"><em>custom</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>If the <em>custom</em> parameter is set to <code>true</code>, then the <code><a class="el" href="class_downloader.html" title="Implements an integrated file downloader with a nice UI. ">Downloader</a></code> will not attempt to open the downloaded file.</p>
<p>Use the signals fired by the <code><a class="el" href="class_q_simple_updater.html" title="Manages the updater instances. ">QSimpleUpdater</a></code> to implement your own install procedures. </p>
<p>Referenced by <a class="el" href="class_updater.html#ac3f35326fb62b9cf8a2421d91651ad60">Updater::setUseCustomInstallProcedures()</a>.</p>
</div>
</div>
<a class="anchor" id="a7f81027436d44ca52168b30a6eb0d379"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Downloader::startDownload </td>
<td>(</td>
<td class="paramtype">const QUrl &amp;&#160;</td>
<td class="paramname"><em>url</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Begins downloading the file at the given <em>url</em> </p>
<p>References <a class="el" href="class_downloader.html#acfd827dd6b36e82a4cc8bfbb284056e9">onDownloadFinished()</a>, and <a class="el" href="class_downloader.html#a097bee5b7d904da53427c5a5cb47ce83">updateProgress()</a>.</p>
<p>Referenced by <a class="el" href="class_updater.html#a1a38e54201eb876d14eb26fab40a7dc7">Updater::setUpdateAvailable()</a>.</p>
</div>
</div>
<a class="anchor" id="a097bee5b7d904da53427c5a5cb47ce83"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Downloader::updateProgress </td>
<td>(</td>
<td class="paramtype">qint64&#160;</td>
<td class="paramname"><em>received</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">qint64&#160;</td>
<td class="paramname"><em>total</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Uses the <em>received</em> and <em>total</em> parameters to get the download progress and update the progressbar value on the dialog. </p>
<p>References <a class="el" href="class_downloader.html#a2909b4a7cfb35f2709849ee2c95dae0e">calculateSizes()</a>, and <a class="el" href="class_downloader.html#a662cc753f90f25c91721f8edeaac9b57">calculateTimeRemaining()</a>.</p>
<p>Referenced by <a class="el" href="class_downloader.html#a7f81027436d44ca52168b30a6eb0d379">startDownload()</a>.</p>
</div>
</div>
<a class="anchor" id="a3e7a91a3cdfa68e3bc59db0af1377f9c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Downloader::useCustomInstallProcedures </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns <code>true</code> if the updater shall not intervene when the download has finished (you can use the <code><a class="el" href="class_q_simple_updater.html" title="Manages the updater instances. ">QSimpleUpdater</a></code> signals to know when the download is completed). </p>
<p>Referenced by <a class="el" href="class_downloader.html#abd39884d0586459bdd09b490913223fe">installUpdate()</a>, and <a class="el" href="class_updater.html#a7860e1643f426dc4d62cec2cdf207cd5">Updater::useCustomInstallProcedures()</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="_downloader_8h_source.html">Downloader.h</a></li>
<li>Downloader.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

View File

@ -0,0 +1,126 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>QSimpleUpdater: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="icon.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">QSimpleUpdater
</div>
<div id="projectbrief">A simple auto-updater system for Qt applications</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="classes.html"><span>Class&#160;Index</span></a></li>
<li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">QSimpleUpdater Member List</div> </div>
</div><!--header-->
<div class="contents">
<p>This is the complete list of members for <a class="el" href="class_q_simple_updater.html">QSimpleUpdater</a>, including all inherited members.</p>
<table class="directory">
<tr class="even"><td class="entry"><a class="el" href="class_q_simple_updater.html#a791c89568adb171a62ccd0704570b68d">checkForUpdates</a>(const QString &amp;url)</td><td class="entry"><a class="el" href="class_q_simple_updater.html">QSimpleUpdater</a></td><td class="entry"><span class="mlabel">slot</span></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>checkingFinished</b>(const QString &amp;url) (defined in <a class="el" href="class_q_simple_updater.html">QSimpleUpdater</a>)</td><td class="entry"><a class="el" href="class_q_simple_updater.html">QSimpleUpdater</a></td><td class="entry"><span class="mlabel">signal</span></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>downloadFinished</b>(const QString &amp;url, const QString &amp;filepath) (defined in <a class="el" href="class_q_simple_updater.html">QSimpleUpdater</a>)</td><td class="entry"><a class="el" href="class_q_simple_updater.html">QSimpleUpdater</a></td><td class="entry"><span class="mlabel">signal</span></td></tr>
<tr><td class="entry"><a class="el" href="class_q_simple_updater.html#a1bbffc681514ca5393450b8664c137bb">getChangelog</a>(const QString &amp;url) const </td><td class="entry"><a class="el" href="class_q_simple_updater.html">QSimpleUpdater</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="class_q_simple_updater.html#a10f421d41b30134583ee1f5e8cfbc59d">getDownloaderEnabled</a>(const QString &amp;url) const </td><td class="entry"><a class="el" href="class_q_simple_updater.html">QSimpleUpdater</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="class_q_simple_updater.html#a2c660cca487b092fd8e1b366a964a10b">getDownloadUrl</a>(const QString &amp;url) const </td><td class="entry"><a class="el" href="class_q_simple_updater.html">QSimpleUpdater</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="class_q_simple_updater.html#adea7d414a9430fc2b653231a87eaacc6">getInstance</a>()</td><td class="entry"><a class="el" href="class_q_simple_updater.html">QSimpleUpdater</a></td><td class="entry"><span class="mlabel">static</span></td></tr>
<tr><td class="entry"><a class="el" href="class_q_simple_updater.html#aefb5ac20bec6e8509e2b55ed14926a70">getLatestVersion</a>(const QString &amp;url) const </td><td class="entry"><a class="el" href="class_q_simple_updater.html">QSimpleUpdater</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="class_q_simple_updater.html#a30c3bccb5c6f06c1a243fa2629f441a3">getModuleName</a>(const QString &amp;url) const </td><td class="entry"><a class="el" href="class_q_simple_updater.html">QSimpleUpdater</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="class_q_simple_updater.html#ad7391bb43acbcbf1627cc51262c2ec60">getModuleVersion</a>(const QString &amp;url) const </td><td class="entry"><a class="el" href="class_q_simple_updater.html">QSimpleUpdater</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="class_q_simple_updater.html#acc540358f0d887e4945ac061667a596d">getNotifyOnFinish</a>(const QString &amp;url) const </td><td class="entry"><a class="el" href="class_q_simple_updater.html">QSimpleUpdater</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="class_q_simple_updater.html#acdc00558a979df664910b07cb82f9b36">getNotifyOnUpdate</a>(const QString &amp;url) const </td><td class="entry"><a class="el" href="class_q_simple_updater.html">QSimpleUpdater</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="class_q_simple_updater.html#a0f061c6945b58664c2c9f9ec26f0d87c">getPlatformKey</a>(const QString &amp;url) const </td><td class="entry"><a class="el" href="class_q_simple_updater.html">QSimpleUpdater</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="class_q_simple_updater.html#a6557bff5a8a255291f12d2613879981b">getUpdateAvailable</a>(const QString &amp;url) const </td><td class="entry"><a class="el" href="class_q_simple_updater.html">QSimpleUpdater</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="class_q_simple_updater.html#a0305a6c8eb9d0bf213736d1c1beb4149">getUpdater</a>(const QString &amp;url) const </td><td class="entry"><a class="el" href="class_q_simple_updater.html">QSimpleUpdater</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr><td class="entry"><a class="el" href="class_q_simple_updater.html#a0ff15deef5af536150911353df0c44b2">setDownloaderEnabled</a>(const QString &amp;url, const bool &amp;enabled)</td><td class="entry"><a class="el" href="class_q_simple_updater.html">QSimpleUpdater</a></td><td class="entry"><span class="mlabel">slot</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="class_q_simple_updater.html#a4b5e2bb2b88ab10a3c6c3a83661a2ebe">setModuleName</a>(const QString &amp;url, const QString &amp;name)</td><td class="entry"><a class="el" href="class_q_simple_updater.html">QSimpleUpdater</a></td><td class="entry"><span class="mlabel">slot</span></td></tr>
<tr><td class="entry"><a class="el" href="class_q_simple_updater.html#a1a2a03f01c7ba081637268910fc50919">setModuleVersion</a>(const QString &amp;url, const QString &amp;version)</td><td class="entry"><a class="el" href="class_q_simple_updater.html">QSimpleUpdater</a></td><td class="entry"><span class="mlabel">slot</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="class_q_simple_updater.html#ad9e53f893874d54bff8c787c2f560bd2">setNotifyOnFinish</a>(const QString &amp;url, const bool &amp;notify)</td><td class="entry"><a class="el" href="class_q_simple_updater.html">QSimpleUpdater</a></td><td class="entry"><span class="mlabel">slot</span></td></tr>
<tr><td class="entry"><a class="el" href="class_q_simple_updater.html#a4789b616743189642a023fa7704e9c00">setNotifyOnUpdate</a>(const QString &amp;url, const bool &amp;notify)</td><td class="entry"><a class="el" href="class_q_simple_updater.html">QSimpleUpdater</a></td><td class="entry"><span class="mlabel">slot</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="class_q_simple_updater.html#af6b2713b7468a69ce3ff46074e642df8">setPlatformKey</a>(const QString &amp;url, const QString &amp;platform)</td><td class="entry"><a class="el" href="class_q_simple_updater.html">QSimpleUpdater</a></td><td class="entry"><span class="mlabel">slot</span></td></tr>
<tr><td class="entry"><a class="el" href="class_q_simple_updater.html#a6c30dd784023264dd6ec885ec755f515">setUseCustomInstallProcedures</a>(const QString &amp;url, const bool &amp;custom)</td><td class="entry"><a class="el" href="class_q_simple_updater.html">QSimpleUpdater</a></td><td class="entry"><span class="mlabel">slot</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="class_q_simple_updater.html#af8f4cca002e820499d1fbca127095c87">usesCustomInstallProcedures</a>(const QString &amp;url) const </td><td class="entry"><a class="el" href="class_q_simple_updater.html">QSimpleUpdater</a></td><td class="entry"></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>~QSimpleUpdater</b>() (defined in <a class="el" href="class_q_simple_updater.html">QSimpleUpdater</a>)</td><td class="entry"><a class="el" href="class_q_simple_updater.html">QSimpleUpdater</a></td><td class="entry"><span class="mlabel">protected</span></td></tr>
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>

View File

@ -0,0 +1,787 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>QSimpleUpdater: QSimpleUpdater Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="icon.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">QSimpleUpdater
</div>
<div id="projectbrief">A simple auto-updater system for Qt applications</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="classes.html"><span>Class&#160;Index</span></a></li>
<li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-slots">Public Slots</a> &#124;
<a href="#signals">Signals</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="class_q_simple_updater-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">QSimpleUpdater Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Manages the updater instances.
<a href="class_q_simple_updater.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="_q_simple_updater_8h_source.html">QSimpleUpdater.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for QSimpleUpdater:</div>
<div class="dyncontent">
<div class="center">
<img src="class_q_simple_updater.png" usemap="#QSimpleUpdater_map" alt=""/>
<map id="QSimpleUpdater_map" name="QSimpleUpdater_map">
</map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-slots"></a>
Public Slots</h2></td></tr>
<tr class="memitem:a791c89568adb171a62ccd0704570b68d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_simple_updater.html#a791c89568adb171a62ccd0704570b68d">checkForUpdates</a> (const QString &amp;url)</td></tr>
<tr class="separator:a791c89568adb171a62ccd0704570b68d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b5e2bb2b88ab10a3c6c3a83661a2ebe"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_simple_updater.html#a4b5e2bb2b88ab10a3c6c3a83661a2ebe">setModuleName</a> (const QString &amp;url, const QString &amp;name)</td></tr>
<tr class="separator:a4b5e2bb2b88ab10a3c6c3a83661a2ebe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4789b616743189642a023fa7704e9c00"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_simple_updater.html#a4789b616743189642a023fa7704e9c00">setNotifyOnUpdate</a> (const QString &amp;url, const bool &amp;notify)</td></tr>
<tr class="separator:a4789b616743189642a023fa7704e9c00"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad9e53f893874d54bff8c787c2f560bd2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_simple_updater.html#ad9e53f893874d54bff8c787c2f560bd2">setNotifyOnFinish</a> (const QString &amp;url, const bool &amp;notify)</td></tr>
<tr class="separator:ad9e53f893874d54bff8c787c2f560bd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6b2713b7468a69ce3ff46074e642df8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_simple_updater.html#af6b2713b7468a69ce3ff46074e642df8">setPlatformKey</a> (const QString &amp;url, const QString &amp;platform)</td></tr>
<tr class="separator:af6b2713b7468a69ce3ff46074e642df8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a2a03f01c7ba081637268910fc50919"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_simple_updater.html#a1a2a03f01c7ba081637268910fc50919">setModuleVersion</a> (const QString &amp;url, const QString &amp;version)</td></tr>
<tr class="separator:a1a2a03f01c7ba081637268910fc50919"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ff15deef5af536150911353df0c44b2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_simple_updater.html#a0ff15deef5af536150911353df0c44b2">setDownloaderEnabled</a> (const QString &amp;url, const bool &amp;enabled)</td></tr>
<tr class="separator:a0ff15deef5af536150911353df0c44b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6c30dd784023264dd6ec885ec755f515"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_simple_updater.html#a6c30dd784023264dd6ec885ec755f515">setUseCustomInstallProcedures</a> (const QString &amp;url, const bool &amp;custom)</td></tr>
<tr class="separator:a6c30dd784023264dd6ec885ec755f515"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="signals"></a>
Signals</h2></td></tr>
<tr class="memitem:a4d848457bbda4cf981b0539d6b8d6c1a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4d848457bbda4cf981b0539d6b8d6c1a"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>checkingFinished</b> (const QString &amp;url)</td></tr>
<tr class="separator:a4d848457bbda4cf981b0539d6b8d6c1a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab76ecf1731d58d5f809379efd238f236"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab76ecf1731d58d5f809379efd238f236"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>downloadFinished</b> (const QString &amp;url, const QString &amp;filepath)</td></tr>
<tr class="separator:ab76ecf1731d58d5f809379efd238f236"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:acdc00558a979df664910b07cb82f9b36"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_simple_updater.html#acdc00558a979df664910b07cb82f9b36">getNotifyOnUpdate</a> (const QString &amp;url) const </td></tr>
<tr class="separator:acdc00558a979df664910b07cb82f9b36"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc540358f0d887e4945ac061667a596d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_simple_updater.html#acc540358f0d887e4945ac061667a596d">getNotifyOnFinish</a> (const QString &amp;url) const </td></tr>
<tr class="separator:acc540358f0d887e4945ac061667a596d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6557bff5a8a255291f12d2613879981b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_simple_updater.html#a6557bff5a8a255291f12d2613879981b">getUpdateAvailable</a> (const QString &amp;url) const </td></tr>
<tr class="separator:a6557bff5a8a255291f12d2613879981b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10f421d41b30134583ee1f5e8cfbc59d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_simple_updater.html#a10f421d41b30134583ee1f5e8cfbc59d">getDownloaderEnabled</a> (const QString &amp;url) const </td></tr>
<tr class="separator:a10f421d41b30134583ee1f5e8cfbc59d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8f4cca002e820499d1fbca127095c87"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_simple_updater.html#af8f4cca002e820499d1fbca127095c87">usesCustomInstallProcedures</a> (const QString &amp;url) const </td></tr>
<tr class="separator:af8f4cca002e820499d1fbca127095c87"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1bbffc681514ca5393450b8664c137bb"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_simple_updater.html#a1bbffc681514ca5393450b8664c137bb">getChangelog</a> (const QString &amp;url) const </td></tr>
<tr class="separator:a1bbffc681514ca5393450b8664c137bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30c3bccb5c6f06c1a243fa2629f441a3"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_simple_updater.html#a30c3bccb5c6f06c1a243fa2629f441a3">getModuleName</a> (const QString &amp;url) const </td></tr>
<tr class="separator:a30c3bccb5c6f06c1a243fa2629f441a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c660cca487b092fd8e1b366a964a10b"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_simple_updater.html#a2c660cca487b092fd8e1b366a964a10b">getDownloadUrl</a> (const QString &amp;url) const </td></tr>
<tr class="separator:a2c660cca487b092fd8e1b366a964a10b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f061c6945b58664c2c9f9ec26f0d87c"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_simple_updater.html#a0f061c6945b58664c2c9f9ec26f0d87c">getPlatformKey</a> (const QString &amp;url) const </td></tr>
<tr class="separator:a0f061c6945b58664c2c9f9ec26f0d87c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aefb5ac20bec6e8509e2b55ed14926a70"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_simple_updater.html#aefb5ac20bec6e8509e2b55ed14926a70">getLatestVersion</a> (const QString &amp;url) const </td></tr>
<tr class="separator:aefb5ac20bec6e8509e2b55ed14926a70"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7391bb43acbcbf1627cc51262c2ec60"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_simple_updater.html#ad7391bb43acbcbf1627cc51262c2ec60">getModuleVersion</a> (const QString &amp;url) const </td></tr>
<tr class="separator:ad7391bb43acbcbf1627cc51262c2ec60"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:adea7d414a9430fc2b653231a87eaacc6"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_q_simple_updater.html">QSimpleUpdater</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_simple_updater.html#adea7d414a9430fc2b653231a87eaacc6">getInstance</a> ()</td></tr>
<tr class="separator:adea7d414a9430fc2b653231a87eaacc6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:a0305a6c8eb9d0bf213736d1c1beb4149"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_updater.html">Updater</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_q_simple_updater.html#a0305a6c8eb9d0bf213736d1c1beb4149">getUpdater</a> (const QString &amp;url) const </td></tr>
<tr class="separator:a0305a6c8eb9d0bf213736d1c1beb4149"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Manages the updater instances. </p>
<p>The <code><a class="el" href="class_q_simple_updater.html" title="Manages the updater instances. ">QSimpleUpdater</a></code> class manages the updater system and allows for parallel application modules to check for updates and download them.</p>
<p>The behavior of each updater can be regulated by specifying the update definitions URL (from where we download the individual update definitions) and defining the desired options by calling the individual "setter" functions (e.g. <code><a class="el" href="class_q_simple_updater.html#a4789b616743189642a023fa7704e9c00">setNotifyOnUpdate()</a></code>).</p>
<p>The <code><a class="el" href="class_q_simple_updater.html" title="Manages the updater instances. ">QSimpleUpdater</a></code> also implements an integrated downloader. If you need to use a custom install procedure/code, just create a function that is called when the <code>downloadFinished()</code> signal is emitted to implement your own install procedures.</p>
<p>By default, the downloader will try to open the file as if you opened it from a file manager or a web browser (with the "file:*" url). </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a791c89568adb171a62ccd0704570b68d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void QSimpleUpdater::checkForUpdates </td>
<td>(</td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>url</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Instructs the <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance with the registered <code>url</code> to download and interpret the update definitions file.</p>
<dl class="section note"><dt>Note</dt><dd>If an <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered with the given <em>url</em> is not found, that <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance will be initialized automatically </dd></dl>
<p>References <a class="el" href="class_updater.html#a4af41658f974f72c71a9463be7bba1b5">Updater::checkForUpdates()</a>, and <a class="el" href="class_q_simple_updater.html#a0305a6c8eb9d0bf213736d1c1beb4149">getUpdater()</a>.</p>
</div>
</div>
<a class="anchor" id="a1bbffc681514ca5393450b8664c137bb"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QString QSimpleUpdater::getChangelog </td>
<td>(</td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>url</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the changelog of the <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered with the given <em>url</em>.</p>
<dl class="section warning"><dt>Warning</dt><dd>You should call <code><a class="el" href="class_q_simple_updater.html#a791c89568adb171a62ccd0704570b68d">checkForUpdates()</a></code> before using this function </dd></dl>
<dl class="section note"><dt>Note</dt><dd>If an <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered with the given <em>url</em> is not found, that <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance will be initialized automatically </dd></dl>
<p>References <a class="el" href="class_updater.html#af6a266ddbf0b855bcee1e9f77dfe9efb">Updater::changelog()</a>, and <a class="el" href="class_q_simple_updater.html#a0305a6c8eb9d0bf213736d1c1beb4149">getUpdater()</a>.</p>
</div>
</div>
<a class="anchor" id="a10f421d41b30134583ee1f5e8cfbc59d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool QSimpleUpdater::getDownloaderEnabled </td>
<td>(</td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>url</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns <code>true</code> if the <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered with the given <em>url</em> has the integrated downloader enabled.</p>
<dl class="section note"><dt>Note</dt><dd>If an <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered with the given <em>url</em> is not found, that <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance will be initialized automatically </dd></dl>
<p>References <a class="el" href="class_updater.html#a4f526325b92c344244303b877d990cd3">Updater::downloaderEnabled()</a>, and <a class="el" href="class_q_simple_updater.html#a0305a6c8eb9d0bf213736d1c1beb4149">getUpdater()</a>.</p>
</div>
</div>
<a class="anchor" id="a2c660cca487b092fd8e1b366a964a10b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QString QSimpleUpdater::getDownloadUrl </td>
<td>(</td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>url</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the download URL of the <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered with the given <em>url</em>.</p>
<dl class="section warning"><dt>Warning</dt><dd>You should call <code><a class="el" href="class_q_simple_updater.html#a791c89568adb171a62ccd0704570b68d">checkForUpdates()</a></code> before using this function </dd></dl>
<dl class="section note"><dt>Note</dt><dd>If an <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered with the given <em>url</em> is not found, that <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance will be initialized automatically </dd></dl>
<p>References <a class="el" href="class_updater.html#a5690e5ab3dde19098caf77c22f8bf075">Updater::downloadUrl()</a>, and <a class="el" href="class_q_simple_updater.html#a0305a6c8eb9d0bf213736d1c1beb4149">getUpdater()</a>.</p>
</div>
</div>
<a class="anchor" id="adea7d414a9430fc2b653231a87eaacc6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="class_q_simple_updater.html">QSimpleUpdater</a> * QSimpleUpdater::getInstance </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the only instance of the class </p>
</div>
</div>
<a class="anchor" id="aefb5ac20bec6e8509e2b55ed14926a70"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QString QSimpleUpdater::getLatestVersion </td>
<td>(</td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>url</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the remote module version of the <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered with the given <em>url</em>.</p>
<dl class="section warning"><dt>Warning</dt><dd>You should call <code><a class="el" href="class_q_simple_updater.html#a791c89568adb171a62ccd0704570b68d">checkForUpdates()</a></code> before using this function </dd></dl>
<dl class="section note"><dt>Note</dt><dd>If an <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered with the given <em>url</em> is not found, that <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance will be initialized automatically </dd></dl>
<p>References <a class="el" href="class_q_simple_updater.html#a0305a6c8eb9d0bf213736d1c1beb4149">getUpdater()</a>, and <a class="el" href="class_updater.html#a25e7f289753c6d7b4439ee3728866a48">Updater::latestVersion()</a>.</p>
</div>
</div>
<a class="anchor" id="a30c3bccb5c6f06c1a243fa2629f441a3"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QString QSimpleUpdater::getModuleName </td>
<td>(</td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>url</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the module name of the <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered with the given <em>url</em>.</p>
<dl class="section note"><dt>Note</dt><dd>If the module name is empty, then the <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> will use the application name as its module name. </dd>
<dd>
If an <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered with the given <em>url</em> is not found, that <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance will be initialized automatically </dd></dl>
<p>References <a class="el" href="class_q_simple_updater.html#a0305a6c8eb9d0bf213736d1c1beb4149">getUpdater()</a>, and <a class="el" href="class_updater.html#a7d8369115126e41cdefd30004cefc46d">Updater::moduleName()</a>.</p>
</div>
</div>
<a class="anchor" id="ad7391bb43acbcbf1627cc51262c2ec60"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QString QSimpleUpdater::getModuleVersion </td>
<td>(</td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>url</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the module version of the <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered with the given <em>url</em>.</p>
<dl class="section note"><dt>Note</dt><dd>If the module version is empty, then the <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> will use the application version as its module version. </dd>
<dd>
If an <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered with the given <em>url</em> is not found, that <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance will be initialized automatically </dd></dl>
<p>References <a class="el" href="class_q_simple_updater.html#a0305a6c8eb9d0bf213736d1c1beb4149">getUpdater()</a>, and <a class="el" href="class_updater.html#af32daac9bff9cb3e79798fc9a825648e">Updater::moduleVersion()</a>.</p>
</div>
</div>
<a class="anchor" id="acc540358f0d887e4945ac061667a596d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool QSimpleUpdater::getNotifyOnFinish </td>
<td>(</td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>url</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns <code>true</code> if the <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered with the given <em>url</em> shall notify the user when it finishes checking for updates.</p>
<dl class="section note"><dt>Note</dt><dd>If an <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered with the given <em>url</em> is not found, that <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance will be initialized automatically </dd></dl>
<p>References <a class="el" href="class_q_simple_updater.html#a0305a6c8eb9d0bf213736d1c1beb4149">getUpdater()</a>, and <a class="el" href="class_updater.html#ad9fd2c8c3782c04289a76b1bf0b23ca0">Updater::notifyOnFinish()</a>.</p>
</div>
</div>
<a class="anchor" id="acdc00558a979df664910b07cb82f9b36"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool QSimpleUpdater::getNotifyOnUpdate </td>
<td>(</td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>url</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns <code>true</code> if the <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered with the given <em>url</em> shall notify the user when an update is available.</p>
<dl class="section note"><dt>Note</dt><dd>If an <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered with the given <em>url</em> is not found, that <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance will be initialized automatically </dd></dl>
<p>References <a class="el" href="class_q_simple_updater.html#a0305a6c8eb9d0bf213736d1c1beb4149">getUpdater()</a>, and <a class="el" href="class_updater.html#abefc7aae1333458ab03d50aec9b58581">Updater::notifyOnUpdate()</a>.</p>
</div>
</div>
<a class="anchor" id="a0f061c6945b58664c2c9f9ec26f0d87c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QString QSimpleUpdater::getPlatformKey </td>
<td>(</td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>url</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the platform key of the <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> registered with the given <em>url</em>. If you do not define a platform key, the system will assign the following platform key:</p><ul>
<li>On iOS: <code>ios</code> </li>
<li>On Mac OSX: <code>osx</code> </li>
<li>On Android: <code>android</code> </li>
<li>On GNU/Linux: <code>linux</code> </li>
<li>On Microsoft Windows: <code>windows</code> </li>
</ul>
<dl class="section note"><dt>Note</dt><dd>If an <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered with the given <em>url</em> is not found, that <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance will be initialized automatically </dd></dl>
<p>References <a class="el" href="class_q_simple_updater.html#a0305a6c8eb9d0bf213736d1c1beb4149">getUpdater()</a>, and <a class="el" href="class_updater.html#ad6d8a5d7b8fd9bdfde738d72c50f8bee">Updater::platformKey()</a>.</p>
</div>
</div>
<a class="anchor" id="a6557bff5a8a255291f12d2613879981b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool QSimpleUpdater::getUpdateAvailable </td>
<td>(</td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>url</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns <code>true</code> if the <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered with the given <em>url</em> has an update available.</p>
<dl class="section warning"><dt>Warning</dt><dd>You should call <code><a class="el" href="class_q_simple_updater.html#a791c89568adb171a62ccd0704570b68d">checkForUpdates()</a></code> before using this function </dd></dl>
<dl class="section note"><dt>Note</dt><dd>If an <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered with the given <em>url</em> is not found, that <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance will be initialized automatically </dd></dl>
<p>References <a class="el" href="class_q_simple_updater.html#a0305a6c8eb9d0bf213736d1c1beb4149">getUpdater()</a>, and <a class="el" href="class_updater.html#aec889d582692cb41875ea803db3feb35">Updater::updateAvailable()</a>.</p>
</div>
</div>
<a class="anchor" id="a0305a6c8eb9d0bf213736d1c1beb4149"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="class_updater.html">Updater</a> * QSimpleUpdater::getUpdater </td>
<td>(</td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>url</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered with the given <em>url</em>.</p>
<p>If an <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered with teh given <em>url</em> does not exist, this function will create it and configure it automatically. </p>
<p>References <a class="el" href="class_updater.html#a1219e9bb1c1fb0a68d757fbc0d9b76aa">Updater::setUrl()</a>.</p>
<p>Referenced by <a class="el" href="class_q_simple_updater.html#a791c89568adb171a62ccd0704570b68d">checkForUpdates()</a>, <a class="el" href="class_q_simple_updater.html#a1bbffc681514ca5393450b8664c137bb">getChangelog()</a>, <a class="el" href="class_q_simple_updater.html#a10f421d41b30134583ee1f5e8cfbc59d">getDownloaderEnabled()</a>, <a class="el" href="class_q_simple_updater.html#a2c660cca487b092fd8e1b366a964a10b">getDownloadUrl()</a>, <a class="el" href="class_q_simple_updater.html#aefb5ac20bec6e8509e2b55ed14926a70">getLatestVersion()</a>, <a class="el" href="class_q_simple_updater.html#a30c3bccb5c6f06c1a243fa2629f441a3">getModuleName()</a>, <a class="el" href="class_q_simple_updater.html#ad7391bb43acbcbf1627cc51262c2ec60">getModuleVersion()</a>, <a class="el" href="class_q_simple_updater.html#acc540358f0d887e4945ac061667a596d">getNotifyOnFinish()</a>, <a class="el" href="class_q_simple_updater.html#acdc00558a979df664910b07cb82f9b36">getNotifyOnUpdate()</a>, <a class="el" href="class_q_simple_updater.html#a0f061c6945b58664c2c9f9ec26f0d87c">getPlatformKey()</a>, <a class="el" href="class_q_simple_updater.html#a6557bff5a8a255291f12d2613879981b">getUpdateAvailable()</a>, <a class="el" href="class_q_simple_updater.html#a0ff15deef5af536150911353df0c44b2">setDownloaderEnabled()</a>, <a class="el" href="class_q_simple_updater.html#a4b5e2bb2b88ab10a3c6c3a83661a2ebe">setModuleName()</a>, <a class="el" href="class_q_simple_updater.html#a1a2a03f01c7ba081637268910fc50919">setModuleVersion()</a>, <a class="el" href="class_q_simple_updater.html#ad9e53f893874d54bff8c787c2f560bd2">setNotifyOnFinish()</a>, <a class="el" href="class_q_simple_updater.html#a4789b616743189642a023fa7704e9c00">setNotifyOnUpdate()</a>, <a class="el" href="class_q_simple_updater.html#af6b2713b7468a69ce3ff46074e642df8">setPlatformKey()</a>, <a class="el" href="class_q_simple_updater.html#a6c30dd784023264dd6ec885ec755f515">setUseCustomInstallProcedures()</a>, and <a class="el" href="class_q_simple_updater.html#af8f4cca002e820499d1fbca127095c87">usesCustomInstallProcedures()</a>.</p>
</div>
</div>
<a class="anchor" id="a0ff15deef5af536150911353df0c44b2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void QSimpleUpdater::setDownloaderEnabled </td>
<td>(</td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>url</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const bool &amp;&#160;</td>
<td class="paramname"><em>enabled</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>If the <em>enabled</em> parameter is set to <code>true</code>, the <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered with the given <em>url</em> will open the integrated downloader if the user agrees to install the update (if any).</p>
<dl class="section note"><dt>Note</dt><dd>If an <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered with the given <em>url</em> is not found, that <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance will be initialized automatically </dd></dl>
<p>References <a class="el" href="class_q_simple_updater.html#a0305a6c8eb9d0bf213736d1c1beb4149">getUpdater()</a>, and <a class="el" href="class_updater.html#a46d6db0d853ed8400a1725df436812ee">Updater::setDownloaderEnabled()</a>.</p>
</div>
</div>
<a class="anchor" id="a4b5e2bb2b88ab10a3c6c3a83661a2ebe"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void QSimpleUpdater::setModuleName </td>
<td>(</td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>url</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>name</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Changes the module <em>name</em> of the <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered at the given <em>url</em>.</p>
<dl class="section note"><dt>Note</dt><dd>If an <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered with the given <em>url</em> is not found, that <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance will be initialized automatically </dd>
<dd>
The module name is used on the user prompts. If the module name is empty, then the prompts will show the name of the application. </dd></dl>
<p>References <a class="el" href="class_q_simple_updater.html#a0305a6c8eb9d0bf213736d1c1beb4149">getUpdater()</a>, and <a class="el" href="class_updater.html#a5ac7e1a2bd65353a5fdec22689f1adf3">Updater::setModuleName()</a>.</p>
</div>
</div>
<a class="anchor" id="a1a2a03f01c7ba081637268910fc50919"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void QSimpleUpdater::setModuleVersion </td>
<td>(</td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>url</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>version</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Changes the module </p><dl class="section version"><dt>Version</dt><dd>of the <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered at the given <em>url</em>.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>The module version is used to compare it with the remove version. If the module name is empty, then the <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance will use the application version. </dd></dl>
<p>References <a class="el" href="class_q_simple_updater.html#a0305a6c8eb9d0bf213736d1c1beb4149">getUpdater()</a>, and <a class="el" href="class_updater.html#a8da70f39cc193b94c64769fc6f40dc2c">Updater::setModuleVersion()</a>.</p>
</div>
</div>
<a class="anchor" id="ad9e53f893874d54bff8c787c2f560bd2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void QSimpleUpdater::setNotifyOnFinish </td>
<td>(</td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>url</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const bool &amp;&#160;</td>
<td class="paramname"><em>notify</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>If <em>notify</em> is set to <code>true</code>, then the <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered with the given <em>url</em> will notify the user when it has finished interpreting the update definitions file.</p>
<dl class="section note"><dt>Note</dt><dd>If an <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered with the given <em>url</em> is not found, that <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance will be initialized automatically </dd></dl>
<p>References <a class="el" href="class_q_simple_updater.html#a0305a6c8eb9d0bf213736d1c1beb4149">getUpdater()</a>, and <a class="el" href="class_updater.html#a949e507fd72ec4b2565bb49ebe98a2dc">Updater::setNotifyOnFinish()</a>.</p>
</div>
</div>
<a class="anchor" id="a4789b616743189642a023fa7704e9c00"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void QSimpleUpdater::setNotifyOnUpdate </td>
<td>(</td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>url</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const bool &amp;&#160;</td>
<td class="paramname"><em>notify</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>If <em>notify</em> is set to <code>true</code>, then the <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered with the given <em>url</em> will notify the user when an update is available.</p>
<dl class="section note"><dt>Note</dt><dd>If an <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered with the given <em>url</em> is not found, that <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance will be initialized automatically </dd></dl>
<p>References <a class="el" href="class_q_simple_updater.html#a0305a6c8eb9d0bf213736d1c1beb4149">getUpdater()</a>, and <a class="el" href="class_updater.html#ad88b597bf4ae11a65a9c87171239ed00">Updater::setNotifyOnUpdate()</a>.</p>
</div>
</div>
<a class="anchor" id="af6b2713b7468a69ce3ff46074e642df8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void QSimpleUpdater::setPlatformKey </td>
<td>(</td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>url</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>platform</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Changes the platform key of the <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> isntance registered at the given <em>url</em>.</p>
<p>If the platform key is empty, then the system will use the following keys:</p><ul>
<li>On iOS: <code>ios</code> </li>
<li>On Mac OSX: <code>osx</code> </li>
<li>On Android: <code>android</code> </li>
<li>On GNU/Linux: <code>linux</code> </li>
<li>On Microsoft Windows: <code>windows</code> </li>
</ul>
<dl class="section note"><dt>Note</dt><dd>If an <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered with the given <em>url</em> is not found, that <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance will be initialized automatically </dd></dl>
<p>References <a class="el" href="class_q_simple_updater.html#a0305a6c8eb9d0bf213736d1c1beb4149">getUpdater()</a>, and <a class="el" href="class_updater.html#a840a6b061590901eae3255ba74ff7ad8">Updater::setPlatformKey()</a>.</p>
</div>
</div>
<a class="anchor" id="a6c30dd784023264dd6ec885ec755f515"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void QSimpleUpdater::setUseCustomInstallProcedures </td>
<td>(</td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>url</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const bool &amp;&#160;</td>
<td class="paramname"><em>custom</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>If the <em>custom</em> parameter is set to <code>true</code>, the <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered with the given <em>url</em> will not try to open the downloaded file.</p>
<p>If you want to implement your own way to handle the downloaded file, just bind to the <code>downloadFinished()</code> signal and disable the integrated downloader with the <code><a class="el" href="class_q_simple_updater.html#a6c30dd784023264dd6ec885ec755f515">setUseCustomInstallProcedures()</a></code> function.</p>
<dl class="section note"><dt>Note</dt><dd>If an <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered with the given <em>url</em> is not found, that <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance will be initialized automatically </dd></dl>
<p>References <a class="el" href="class_q_simple_updater.html#a0305a6c8eb9d0bf213736d1c1beb4149">getUpdater()</a>, and <a class="el" href="class_updater.html#ac3f35326fb62b9cf8a2421d91651ad60">Updater::setUseCustomInstallProcedures()</a>.</p>
</div>
</div>
<a class="anchor" id="af8f4cca002e820499d1fbca127095c87"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool QSimpleUpdater::usesCustomInstallProcedures </td>
<td>(</td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>url</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns <code>true</code> if the <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered with the given <em>url</em> shall try to open the downloaded file.</p>
<p>If you want to implement your own way to handle the downloaded file, just bind to the <code>downloadFinished()</code> signal and disable the integrated downloader with the <code><a class="el" href="class_q_simple_updater.html#a6c30dd784023264dd6ec885ec755f515">setUseCustomInstallProcedures()</a></code> function.</p>
<dl class="section note"><dt>Note</dt><dd>If an <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance registered with the given <em>url</em> is not found, that <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> instance will be initialized automatically </dd></dl>
<p>References <a class="el" href="class_q_simple_updater.html#a0305a6c8eb9d0bf213736d1c1beb4149">getUpdater()</a>, and <a class="el" href="class_updater.html#a7860e1643f426dc4d62cec2cdf207cd5">Updater::useCustomInstallProcedures()</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="_q_simple_updater_8h_source.html">QSimpleUpdater.h</a></li>
<li>QSimpleUpdater.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 488 B

View File

@ -0,0 +1,144 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>QSimpleUpdater: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="icon.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">QSimpleUpdater
</div>
<div id="projectbrief">A simple auto-updater system for Qt applications</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="classes.html"><span>Class&#160;Index</span></a></li>
<li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">Updater Member List</div> </div>
</div><!--header-->
<div class="contents">
<p>This is the complete list of members for <a class="el" href="class_updater.html">Updater</a>, including all inherited members.</p>
<table class="directory">
<tr class="even"><td class="entry"><a class="el" href="class_updater.html#af6a266ddbf0b855bcee1e9f77dfe9efb">changelog</a>() const </td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="class_updater.html#a4af41658f974f72c71a9463be7bba1b5">checkForUpdates</a>()</td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"><span class="mlabel">slot</span></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>checkingFinished</b>(const QString &amp;url) (defined in <a class="el" href="class_updater.html">Updater</a>)</td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"><span class="mlabel">signal</span></td></tr>
<tr><td class="entry"><a class="el" href="class_updater.html#a247145d494c38d15f6569bbd209380e3">compare</a>(const QString &amp;x, const QString &amp;y)</td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="class_updater.html#a4f526325b92c344244303b877d990cd3">downloaderEnabled</a>() const </td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>downloadFinished</b>(const QString &amp;url, const QString &amp;filepath) (defined in <a class="el" href="class_updater.html">Updater</a>)</td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"><span class="mlabel">signal</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="class_updater.html#a5690e5ab3dde19098caf77c22f8bf075">downloadUrl</a>() const </td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="class_updater.html#a25e7f289753c6d7b4439ee3728866a48">latestVersion</a>() const </td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>m_changelog</b> (defined in <a class="el" href="class_updater.html">Updater</a>)</td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>m_downloader</b> (defined in <a class="el" href="class_updater.html">Updater</a>)</td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>m_downloaderEnabled</b> (defined in <a class="el" href="class_updater.html">Updater</a>)</td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>m_downloadUrl</b> (defined in <a class="el" href="class_updater.html">Updater</a>)</td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>m_latestVersion</b> (defined in <a class="el" href="class_updater.html">Updater</a>)</td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>m_manager</b> (defined in <a class="el" href="class_updater.html">Updater</a>)</td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>m_moduleName</b> (defined in <a class="el" href="class_updater.html">Updater</a>)</td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>m_moduleVersion</b> (defined in <a class="el" href="class_updater.html">Updater</a>)</td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>m_notifyOnFinish</b> (defined in <a class="el" href="class_updater.html">Updater</a>)</td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>m_notifyOnUpdate</b> (defined in <a class="el" href="class_updater.html">Updater</a>)</td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>m_openUrl</b> (defined in <a class="el" href="class_updater.html">Updater</a>)</td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>m_platform</b> (defined in <a class="el" href="class_updater.html">Updater</a>)</td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>m_updateAvailable</b> (defined in <a class="el" href="class_updater.html">Updater</a>)</td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>m_url</b> (defined in <a class="el" href="class_updater.html">Updater</a>)</td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"><span class="mlabel">private</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="class_updater.html#a7d8369115126e41cdefd30004cefc46d">moduleName</a>() const </td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="class_updater.html#af32daac9bff9cb3e79798fc9a825648e">moduleVersion</a>() const </td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="class_updater.html#ad9fd2c8c3782c04289a76b1bf0b23ca0">notifyOnFinish</a>() const </td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="class_updater.html#abefc7aae1333458ab03d50aec9b58581">notifyOnUpdate</a>() const </td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="class_updater.html#ae6e6597cd5b3ee32a12fad9c6c5a64ac">onReply</a>(QNetworkReply *reply)</td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"><span class="mlabel">private</span><span class="mlabel">slot</span></td></tr>
<tr><td class="entry"><a class="el" href="class_updater.html#ad6d8a5d7b8fd9bdfde738d72c50f8bee">platformKey</a>() const </td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="class_updater.html#a46d6db0d853ed8400a1725df436812ee">setDownloaderEnabled</a>(const bool &amp;enabled)</td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"><span class="mlabel">slot</span></td></tr>
<tr><td class="entry"><a class="el" href="class_updater.html#a5ac7e1a2bd65353a5fdec22689f1adf3">setModuleName</a>(const QString &amp;name)</td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"><span class="mlabel">slot</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="class_updater.html#a8da70f39cc193b94c64769fc6f40dc2c">setModuleVersion</a>(const QString &amp;version)</td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"><span class="mlabel">slot</span></td></tr>
<tr><td class="entry"><a class="el" href="class_updater.html#a949e507fd72ec4b2565bb49ebe98a2dc">setNotifyOnFinish</a>(const bool &amp;notify)</td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"><span class="mlabel">slot</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="class_updater.html#ad88b597bf4ae11a65a9c87171239ed00">setNotifyOnUpdate</a>(const bool &amp;notify)</td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"><span class="mlabel">slot</span></td></tr>
<tr><td class="entry"><a class="el" href="class_updater.html#a840a6b061590901eae3255ba74ff7ad8">setPlatformKey</a>(const QString &amp;platformKey)</td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"><span class="mlabel">slot</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="class_updater.html#a1a38e54201eb876d14eb26fab40a7dc7">setUpdateAvailable</a>(const bool &amp;available)</td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"><span class="mlabel">private</span><span class="mlabel">slot</span></td></tr>
<tr><td class="entry"><a class="el" href="class_updater.html#a1219e9bb1c1fb0a68d757fbc0d9b76aa">setUrl</a>(const QString &amp;url)</td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"><span class="mlabel">slot</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="class_updater.html#ac3f35326fb62b9cf8a2421d91651ad60">setUseCustomInstallProcedures</a>(const bool &amp;custom)</td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"><span class="mlabel">slot</span></td></tr>
<tr><td class="entry"><a class="el" href="class_updater.html#aec889d582692cb41875ea803db3feb35">updateAvailable</a>() const </td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>Updater</b>() (defined in <a class="el" href="class_updater.html">Updater</a>)</td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="class_updater.html#a7ebf698a86619ebaadd2eb6e772f2a3d">url</a>() const </td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="class_updater.html#a7860e1643f426dc4d62cec2cdf207cd5">useCustomInstallProcedures</a>() const </td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>~Updater</b>() (defined in <a class="el" href="class_updater.html">Updater</a>)</td><td class="entry"><a class="el" href="class_updater.html">Updater</a></td><td class="entry"></td></tr>
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>

View File

@ -0,0 +1,820 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>QSimpleUpdater: Updater Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="icon.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">QSimpleUpdater
</div>
<div id="projectbrief">A simple auto-updater system for Qt applications</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="classes.html"><span>Class&#160;Index</span></a></li>
<li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-slots">Public Slots</a> &#124;
<a href="#signals">Signals</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-slots">Private Slots</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="class_updater-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">Updater Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Downloads and interprests the update definition file.
<a href="class_updater.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="_updater_8h_source.html">Updater.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Updater:</div>
<div class="dyncontent">
<div class="center">
<img src="class_updater.png" usemap="#Updater_map" alt=""/>
<map id="Updater_map" name="Updater_map">
</map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-slots"></a>
Public Slots</h2></td></tr>
<tr class="memitem:a4af41658f974f72c71a9463be7bba1b5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_updater.html#a4af41658f974f72c71a9463be7bba1b5">checkForUpdates</a> ()</td></tr>
<tr class="separator:a4af41658f974f72c71a9463be7bba1b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1219e9bb1c1fb0a68d757fbc0d9b76aa"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_updater.html#a1219e9bb1c1fb0a68d757fbc0d9b76aa">setUrl</a> (const QString &amp;<a class="el" href="class_updater.html#a7ebf698a86619ebaadd2eb6e772f2a3d">url</a>)</td></tr>
<tr class="separator:a1219e9bb1c1fb0a68d757fbc0d9b76aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ac7e1a2bd65353a5fdec22689f1adf3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_updater.html#a5ac7e1a2bd65353a5fdec22689f1adf3">setModuleName</a> (const QString &amp;name)</td></tr>
<tr class="separator:a5ac7e1a2bd65353a5fdec22689f1adf3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad88b597bf4ae11a65a9c87171239ed00"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_updater.html#ad88b597bf4ae11a65a9c87171239ed00">setNotifyOnUpdate</a> (const bool &amp;notify)</td></tr>
<tr class="separator:ad88b597bf4ae11a65a9c87171239ed00"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a949e507fd72ec4b2565bb49ebe98a2dc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_updater.html#a949e507fd72ec4b2565bb49ebe98a2dc">setNotifyOnFinish</a> (const bool &amp;notify)</td></tr>
<tr class="separator:a949e507fd72ec4b2565bb49ebe98a2dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8da70f39cc193b94c64769fc6f40dc2c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_updater.html#a8da70f39cc193b94c64769fc6f40dc2c">setModuleVersion</a> (const QString &amp;version)</td></tr>
<tr class="separator:a8da70f39cc193b94c64769fc6f40dc2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46d6db0d853ed8400a1725df436812ee"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_updater.html#a46d6db0d853ed8400a1725df436812ee">setDownloaderEnabled</a> (const bool &amp;enabled)</td></tr>
<tr class="separator:a46d6db0d853ed8400a1725df436812ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a840a6b061590901eae3255ba74ff7ad8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_updater.html#a840a6b061590901eae3255ba74ff7ad8">setPlatformKey</a> (const QString &amp;<a class="el" href="class_updater.html#ad6d8a5d7b8fd9bdfde738d72c50f8bee">platformKey</a>)</td></tr>
<tr class="separator:a840a6b061590901eae3255ba74ff7ad8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac3f35326fb62b9cf8a2421d91651ad60"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_updater.html#ac3f35326fb62b9cf8a2421d91651ad60">setUseCustomInstallProcedures</a> (const bool &amp;custom)</td></tr>
<tr class="separator:ac3f35326fb62b9cf8a2421d91651ad60"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="signals"></a>
Signals</h2></td></tr>
<tr class="memitem:a82debd6b1ad627d6d40c0f2a9996e0c1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a82debd6b1ad627d6d40c0f2a9996e0c1"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>checkingFinished</b> (const QString &amp;<a class="el" href="class_updater.html#a7ebf698a86619ebaadd2eb6e772f2a3d">url</a>)</td></tr>
<tr class="separator:a82debd6b1ad627d6d40c0f2a9996e0c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a274a08240ad2bbea8cda6c52787510d3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a274a08240ad2bbea8cda6c52787510d3"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>downloadFinished</b> (const QString &amp;<a class="el" href="class_updater.html#a7ebf698a86619ebaadd2eb6e772f2a3d">url</a>, const QString &amp;filepath)</td></tr>
<tr class="separator:a274a08240ad2bbea8cda6c52787510d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a7ebf698a86619ebaadd2eb6e772f2a3d"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_updater.html#a7ebf698a86619ebaadd2eb6e772f2a3d">url</a> () const </td></tr>
<tr class="separator:a7ebf698a86619ebaadd2eb6e772f2a3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6a266ddbf0b855bcee1e9f77dfe9efb"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_updater.html#af6a266ddbf0b855bcee1e9f77dfe9efb">changelog</a> () const </td></tr>
<tr class="separator:af6a266ddbf0b855bcee1e9f77dfe9efb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d8369115126e41cdefd30004cefc46d"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_updater.html#a7d8369115126e41cdefd30004cefc46d">moduleName</a> () const </td></tr>
<tr class="separator:a7d8369115126e41cdefd30004cefc46d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5690e5ab3dde19098caf77c22f8bf075"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_updater.html#a5690e5ab3dde19098caf77c22f8bf075">downloadUrl</a> () const </td></tr>
<tr class="separator:a5690e5ab3dde19098caf77c22f8bf075"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad6d8a5d7b8fd9bdfde738d72c50f8bee"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_updater.html#ad6d8a5d7b8fd9bdfde738d72c50f8bee">platformKey</a> () const </td></tr>
<tr class="separator:ad6d8a5d7b8fd9bdfde738d72c50f8bee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af32daac9bff9cb3e79798fc9a825648e"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_updater.html#af32daac9bff9cb3e79798fc9a825648e">moduleVersion</a> () const </td></tr>
<tr class="separator:af32daac9bff9cb3e79798fc9a825648e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a25e7f289753c6d7b4439ee3728866a48"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_updater.html#a25e7f289753c6d7b4439ee3728866a48">latestVersion</a> () const </td></tr>
<tr class="separator:a25e7f289753c6d7b4439ee3728866a48"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abefc7aae1333458ab03d50aec9b58581"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_updater.html#abefc7aae1333458ab03d50aec9b58581">notifyOnUpdate</a> () const </td></tr>
<tr class="separator:abefc7aae1333458ab03d50aec9b58581"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad9fd2c8c3782c04289a76b1bf0b23ca0"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_updater.html#ad9fd2c8c3782c04289a76b1bf0b23ca0">notifyOnFinish</a> () const </td></tr>
<tr class="separator:ad9fd2c8c3782c04289a76b1bf0b23ca0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aec889d582692cb41875ea803db3feb35"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_updater.html#aec889d582692cb41875ea803db3feb35">updateAvailable</a> () const </td></tr>
<tr class="separator:aec889d582692cb41875ea803db3feb35"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f526325b92c344244303b877d990cd3"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_updater.html#a4f526325b92c344244303b877d990cd3">downloaderEnabled</a> () const </td></tr>
<tr class="separator:a4f526325b92c344244303b877d990cd3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7860e1643f426dc4d62cec2cdf207cd5"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_updater.html#a7860e1643f426dc4d62cec2cdf207cd5">useCustomInstallProcedures</a> () const </td></tr>
<tr class="separator:a7860e1643f426dc4d62cec2cdf207cd5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-slots"></a>
Private Slots</h2></td></tr>
<tr class="memitem:ae6e6597cd5b3ee32a12fad9c6c5a64ac"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_updater.html#ae6e6597cd5b3ee32a12fad9c6c5a64ac">onReply</a> (QNetworkReply *reply)</td></tr>
<tr class="separator:ae6e6597cd5b3ee32a12fad9c6c5a64ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a38e54201eb876d14eb26fab40a7dc7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_updater.html#a1a38e54201eb876d14eb26fab40a7dc7">setUpdateAvailable</a> (const bool &amp;available)</td></tr>
<tr class="separator:a1a38e54201eb876d14eb26fab40a7dc7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:a247145d494c38d15f6569bbd209380e3"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_updater.html#a247145d494c38d15f6569bbd209380e3">compare</a> (const QString &amp;x, const QString &amp;y)</td></tr>
<tr class="separator:a247145d494c38d15f6569bbd209380e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a51580c8199714afd10078d24dbc3514f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a51580c8199714afd10078d24dbc3514f"></a>
QString&#160;</td><td class="memItemRight" valign="bottom"><b>m_url</b></td></tr>
<tr class="separator:a51580c8199714afd10078d24dbc3514f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afdfb2e8d597c45ea309de8948e2de282"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afdfb2e8d597c45ea309de8948e2de282"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>m_notifyOnUpdate</b></td></tr>
<tr class="separator:afdfb2e8d597c45ea309de8948e2de282"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ca544f6c75c009469e236f9e5c4da15"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5ca544f6c75c009469e236f9e5c4da15"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>m_notifyOnFinish</b></td></tr>
<tr class="separator:a5ca544f6c75c009469e236f9e5c4da15"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b8f2c57972915d033710d9d44debcef"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5b8f2c57972915d033710d9d44debcef"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>m_updateAvailable</b></td></tr>
<tr class="separator:a5b8f2c57972915d033710d9d44debcef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad49b3d2b70630247739ab2b1f0706a7f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad49b3d2b70630247739ab2b1f0706a7f"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>m_downloaderEnabled</b></td></tr>
<tr class="separator:ad49b3d2b70630247739ab2b1f0706a7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a229fb1904163af697d0b54ab9297bb3f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a229fb1904163af697d0b54ab9297bb3f"></a>
QString&#160;</td><td class="memItemRight" valign="bottom"><b>m_openUrl</b></td></tr>
<tr class="separator:a229fb1904163af697d0b54ab9297bb3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af932fab28132a01f245d23ba7c5fbf70"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af932fab28132a01f245d23ba7c5fbf70"></a>
QString&#160;</td><td class="memItemRight" valign="bottom"><b>m_platform</b></td></tr>
<tr class="separator:af932fab28132a01f245d23ba7c5fbf70"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6267c084984d0163f16af987f56a1a95"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6267c084984d0163f16af987f56a1a95"></a>
QString&#160;</td><td class="memItemRight" valign="bottom"><b>m_changelog</b></td></tr>
<tr class="separator:a6267c084984d0163f16af987f56a1a95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4aada318219e232a6f1be3b964262fb8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4aada318219e232a6f1be3b964262fb8"></a>
QString&#160;</td><td class="memItemRight" valign="bottom"><b>m_moduleName</b></td></tr>
<tr class="separator:a4aada318219e232a6f1be3b964262fb8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50efac338e702ea6f8ba31a3a8376c25"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a50efac338e702ea6f8ba31a3a8376c25"></a>
QString&#160;</td><td class="memItemRight" valign="bottom"><b>m_downloadUrl</b></td></tr>
<tr class="separator:a50efac338e702ea6f8ba31a3a8376c25"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a55625e7bce2646912aa0a8299869bc"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4a55625e7bce2646912aa0a8299869bc"></a>
QString&#160;</td><td class="memItemRight" valign="bottom"><b>m_moduleVersion</b></td></tr>
<tr class="separator:a4a55625e7bce2646912aa0a8299869bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af79a469656f846a69989827441f6199a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af79a469656f846a69989827441f6199a"></a>
QString&#160;</td><td class="memItemRight" valign="bottom"><b>m_latestVersion</b></td></tr>
<tr class="separator:af79a469656f846a69989827441f6199a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2354986fcdad345ca39914f13065d1b0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2354986fcdad345ca39914f13065d1b0"></a>
<a class="el" href="class_downloader.html">Downloader</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>m_downloader</b></td></tr>
<tr class="separator:a2354986fcdad345ca39914f13065d1b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a21af5ff7e447e251e46f18a39fa34966"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a21af5ff7e447e251e46f18a39fa34966"></a>
QNetworkAccessManager *&#160;</td><td class="memItemRight" valign="bottom"><b>m_manager</b></td></tr>
<tr class="separator:a21af5ff7e447e251e46f18a39fa34966"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Downloads and interprests the update definition file. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="af6a266ddbf0b855bcee1e9f77dfe9efb"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QString Updater::changelog </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the changelog defined by the update definitions file. </p><dl class="section warning"><dt>Warning</dt><dd>You should call <code><a class="el" href="class_updater.html#a4af41658f974f72c71a9463be7bba1b5">checkForUpdates()</a></code> before using this function </dd></dl>
<p>Referenced by <a class="el" href="class_q_simple_updater.html#a1bbffc681514ca5393450b8664c137bb">QSimpleUpdater::getChangelog()</a>.</p>
</div>
</div>
<a class="anchor" id="a4af41658f974f72c71a9463be7bba1b5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Updater::checkForUpdates </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Downloads and interpets the update definitions file referenced by the <code><a class="el" href="class_updater.html#a7ebf698a86619ebaadd2eb6e772f2a3d">url()</a></code> function. </p>
<p>References <a class="el" href="class_updater.html#a7ebf698a86619ebaadd2eb6e772f2a3d">url()</a>.</p>
<p>Referenced by <a class="el" href="class_q_simple_updater.html#a791c89568adb171a62ccd0704570b68d">QSimpleUpdater::checkForUpdates()</a>.</p>
</div>
</div>
<a class="anchor" id="a247145d494c38d15f6569bbd209380e3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool Updater::compare </td>
<td>(</td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>x</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>y</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Compares the two version strings (<em>x</em> and <em>y</em>).</p><ul>
<li>If <em>x</em> is greater than , this function returns <code>true</code>.</li>
<li>If <em>y</em> is greater than , this function returns <code>false</code>.</li>
<li>If both versions are the same, this function returns <code>false</code>. </li>
</ul>
<p>Referenced by <a class="el" href="class_updater.html#ae6e6597cd5b3ee32a12fad9c6c5a64ac">onReply()</a>.</p>
</div>
</div>
<a class="anchor" id="a4f526325b92c344244303b877d990cd3"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Updater::downloaderEnabled </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns <code>true</code> if the integrated downloader is enabled. </p><dl class="section note"><dt>Note</dt><dd>If set to <code>true</code>, the <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> will open the downloader dialog if the user agrees to download the update. </dd></dl>
<p>Referenced by <a class="el" href="class_q_simple_updater.html#a10f421d41b30134583ee1f5e8cfbc59d">QSimpleUpdater::getDownloaderEnabled()</a>, and <a class="el" href="class_updater.html#a1a38e54201eb876d14eb26fab40a7dc7">setUpdateAvailable()</a>.</p>
</div>
</div>
<a class="anchor" id="a5690e5ab3dde19098caf77c22f8bf075"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QString Updater::downloadUrl </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the download URL defined by the update definitions file. </p><dl class="section warning"><dt>Warning</dt><dd>You should call <code><a class="el" href="class_updater.html#a4af41658f974f72c71a9463be7bba1b5">checkForUpdates()</a></code> before using this function </dd></dl>
<p>Referenced by <a class="el" href="class_q_simple_updater.html#a2c660cca487b092fd8e1b366a964a10b">QSimpleUpdater::getDownloadUrl()</a>, and <a class="el" href="class_updater.html#a1a38e54201eb876d14eb26fab40a7dc7">setUpdateAvailable()</a>.</p>
</div>
</div>
<a class="anchor" id="a25e7f289753c6d7b4439ee3728866a48"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QString Updater::latestVersion </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the latest version defined by the update definitions file. </p><dl class="section warning"><dt>Warning</dt><dd>You should call <code><a class="el" href="class_updater.html#a4af41658f974f72c71a9463be7bba1b5">checkForUpdates()</a></code> before using this function </dd></dl>
<p>Referenced by <a class="el" href="class_q_simple_updater.html#aefb5ac20bec6e8509e2b55ed14926a70">QSimpleUpdater::getLatestVersion()</a>, <a class="el" href="class_updater.html#ae6e6597cd5b3ee32a12fad9c6c5a64ac">onReply()</a>, and <a class="el" href="class_updater.html#a1a38e54201eb876d14eb26fab40a7dc7">setUpdateAvailable()</a>.</p>
</div>
</div>
<a class="anchor" id="a7d8369115126e41cdefd30004cefc46d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QString Updater::moduleName </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the name of the module (if defined) </p>
<p>Referenced by <a class="el" href="class_q_simple_updater.html#a30c3bccb5c6f06c1a243fa2629f441a3">QSimpleUpdater::getModuleName()</a>, and <a class="el" href="class_updater.html#a1a38e54201eb876d14eb26fab40a7dc7">setUpdateAvailable()</a>.</p>
</div>
</div>
<a class="anchor" id="af32daac9bff9cb3e79798fc9a825648e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QString Updater::moduleVersion </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the "local" version of the installed module </p>
<p>Referenced by <a class="el" href="class_q_simple_updater.html#ad7391bb43acbcbf1627cc51262c2ec60">QSimpleUpdater::getModuleVersion()</a>, and <a class="el" href="class_updater.html#ae6e6597cd5b3ee32a12fad9c6c5a64ac">onReply()</a>.</p>
</div>
</div>
<a class="anchor" id="ad9fd2c8c3782c04289a76b1bf0b23ca0"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Updater::notifyOnFinish </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns <code>true</code> if the updater should notify the user when it finishes checking for updates.</p>
<dl class="section note"><dt>Note</dt><dd>If set to <code>true</code>, the <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> will notify the user even when there are no updates available (by congratulating him/her about being smart) </dd></dl>
<p>Referenced by <a class="el" href="class_q_simple_updater.html#acc540358f0d887e4945ac061667a596d">QSimpleUpdater::getNotifyOnFinish()</a>, and <a class="el" href="class_updater.html#a1a38e54201eb876d14eb26fab40a7dc7">setUpdateAvailable()</a>.</p>
</div>
</div>
<a class="anchor" id="abefc7aae1333458ab03d50aec9b58581"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Updater::notifyOnUpdate </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns <code>true</code> if the updater should notify the user when an update is available. </p>
<p>Referenced by <a class="el" href="class_q_simple_updater.html#acdc00558a979df664910b07cb82f9b36">QSimpleUpdater::getNotifyOnUpdate()</a>, and <a class="el" href="class_updater.html#a1a38e54201eb876d14eb26fab40a7dc7">setUpdateAvailable()</a>.</p>
</div>
</div>
<a class="anchor" id="ae6e6597cd5b3ee32a12fad9c6c5a64ac"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Updater::onReply </td>
<td>(</td>
<td class="paramtype">QNetworkReply *&#160;</td>
<td class="paramname"><em>reply</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Called when the download of the update definitions file is finished. </p>
<p>References <a class="el" href="class_updater.html#a247145d494c38d15f6569bbd209380e3">compare()</a>, <a class="el" href="class_updater.html#a25e7f289753c6d7b4439ee3728866a48">latestVersion()</a>, <a class="el" href="class_updater.html#af32daac9bff9cb3e79798fc9a825648e">moduleVersion()</a>, <a class="el" href="class_updater.html#ad6d8a5d7b8fd9bdfde738d72c50f8bee">platformKey()</a>, <a class="el" href="class_updater.html#a1a38e54201eb876d14eb26fab40a7dc7">setUpdateAvailable()</a>, and <a class="el" href="class_updater.html#a7ebf698a86619ebaadd2eb6e772f2a3d">url()</a>.</p>
</div>
</div>
<a class="anchor" id="ad6d8a5d7b8fd9bdfde738d72c50f8bee"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QString Updater::platformKey </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the platform key (be it system-set or user-set). If you do not define a platform key, the system will assign the following platform key:</p><ul>
<li>On iOS: <code>ios</code> </li>
<li>On Mac OSX: <code>osx</code> </li>
<li>On Android: <code>android</code> </li>
<li>On GNU/Linux: <code>linux</code> </li>
<li>On Microsoft Windows: <code>windows</code> </li>
</ul>
<p>Referenced by <a class="el" href="class_q_simple_updater.html#a0f061c6945b58664c2c9f9ec26f0d87c">QSimpleUpdater::getPlatformKey()</a>, <a class="el" href="class_updater.html#ae6e6597cd5b3ee32a12fad9c6c5a64ac">onReply()</a>, and <a class="el" href="class_updater.html#a840a6b061590901eae3255ba74ff7ad8">setPlatformKey()</a>.</p>
</div>
</div>
<a class="anchor" id="a46d6db0d853ed8400a1725df436812ee"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Updater::setDownloaderEnabled </td>
<td>(</td>
<td class="paramtype">const bool &amp;&#160;</td>
<td class="paramname"><em>enabled</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>If the <em>enabled</em> parameter is set to <code>true</code>, the <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> will open the integrated downloader if the user agrees to install the update (if any) </p>
<p>Referenced by <a class="el" href="class_q_simple_updater.html#a0ff15deef5af536150911353df0c44b2">QSimpleUpdater::setDownloaderEnabled()</a>.</p>
</div>
</div>
<a class="anchor" id="a5ac7e1a2bd65353a5fdec22689f1adf3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Updater::setModuleName </td>
<td>(</td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>name</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Changes the module <em>name</em>. </p><dl class="section note"><dt>Note</dt><dd>The module name is used on the user prompts. If the module name is empty, then the prompts will show the name of the application. </dd></dl>
<p>Referenced by <a class="el" href="class_q_simple_updater.html#a4b5e2bb2b88ab10a3c6c3a83661a2ebe">QSimpleUpdater::setModuleName()</a>.</p>
</div>
</div>
<a class="anchor" id="a8da70f39cc193b94c64769fc6f40dc2c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Updater::setModuleVersion </td>
<td>(</td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>version</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Changes the module <em>version</em> </p><dl class="section note"><dt>Note</dt><dd>The module version is used to compare the local and remote versions. If the <em>version</em> parameter is empty, then the <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> will use the application version (referenced by <code>qApp</code>) </dd></dl>
<p>Referenced by <a class="el" href="class_q_simple_updater.html#a1a2a03f01c7ba081637268910fc50919">QSimpleUpdater::setModuleVersion()</a>.</p>
</div>
</div>
<a class="anchor" id="a949e507fd72ec4b2565bb49ebe98a2dc"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Updater::setNotifyOnFinish </td>
<td>(</td>
<td class="paramtype">const bool &amp;&#160;</td>
<td class="paramname"><em>notify</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>If <em>notify</em> is set to <code>true</code>, then the <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> will notify the user when it has finished interpreting the update definitions file. </p>
<p>Referenced by <a class="el" href="class_q_simple_updater.html#ad9e53f893874d54bff8c787c2f560bd2">QSimpleUpdater::setNotifyOnFinish()</a>.</p>
</div>
</div>
<a class="anchor" id="ad88b597bf4ae11a65a9c87171239ed00"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Updater::setNotifyOnUpdate </td>
<td>(</td>
<td class="paramtype">const bool &amp;&#160;</td>
<td class="paramname"><em>notify</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>If <em>notify</em> is set to <code>true</code>, then the <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> will notify the user when an update is available. </p>
<p>Referenced by <a class="el" href="class_q_simple_updater.html#a4789b616743189642a023fa7704e9c00">QSimpleUpdater::setNotifyOnUpdate()</a>.</p>
</div>
</div>
<a class="anchor" id="a840a6b061590901eae3255ba74ff7ad8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Updater::setPlatformKey </td>
<td>(</td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>platformKey</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Changes the platform key. If the platform key is empty, then the system will use the following keys:</p><ul>
<li>On iOS: <code>ios</code> </li>
<li>On Mac OSX: <code>osx</code> </li>
<li>On Android: <code>android</code> </li>
<li>On GNU/Linux: <code>linux</code> </li>
<li>On Microsoft Windows: <code>windows</code> </li>
</ul>
<p>References <a class="el" href="class_updater.html#ad6d8a5d7b8fd9bdfde738d72c50f8bee">platformKey()</a>.</p>
<p>Referenced by <a class="el" href="class_q_simple_updater.html#af6b2713b7468a69ce3ff46074e642df8">QSimpleUpdater::setPlatformKey()</a>.</p>
</div>
</div>
<a class="anchor" id="a1a38e54201eb876d14eb26fab40a7dc7"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Updater::setUpdateAvailable </td>
<td>(</td>
<td class="paramtype">const bool &amp;&#160;</td>
<td class="paramname"><em>available</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Prompts the user based on the value of the <em>available</em> parameter and the settings of this instance of the <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> class. </p>
<p>References <a class="el" href="class_updater.html#a4f526325b92c344244303b877d990cd3">downloaderEnabled()</a>, <a class="el" href="class_updater.html#a5690e5ab3dde19098caf77c22f8bf075">downloadUrl()</a>, <a class="el" href="class_updater.html#a25e7f289753c6d7b4439ee3728866a48">latestVersion()</a>, <a class="el" href="class_updater.html#a7d8369115126e41cdefd30004cefc46d">moduleName()</a>, <a class="el" href="class_updater.html#ad9fd2c8c3782c04289a76b1bf0b23ca0">notifyOnFinish()</a>, <a class="el" href="class_updater.html#abefc7aae1333458ab03d50aec9b58581">notifyOnUpdate()</a>, <a class="el" href="class_downloader.html#a7f81027436d44ca52168b30a6eb0d379">Downloader::startDownload()</a>, and <a class="el" href="class_updater.html#aec889d582692cb41875ea803db3feb35">updateAvailable()</a>.</p>
<p>Referenced by <a class="el" href="class_updater.html#ae6e6597cd5b3ee32a12fad9c6c5a64ac">onReply()</a>.</p>
</div>
</div>
<a class="anchor" id="a1219e9bb1c1fb0a68d757fbc0d9b76aa"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Updater::setUrl </td>
<td>(</td>
<td class="paramtype">const QString &amp;&#160;</td>
<td class="paramname"><em>url</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Changes the <code>url</code> in which the <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> can find the update definitions file. </p>
<p>References <a class="el" href="class_updater.html#a7ebf698a86619ebaadd2eb6e772f2a3d">url()</a>.</p>
<p>Referenced by <a class="el" href="class_q_simple_updater.html#a0305a6c8eb9d0bf213736d1c1beb4149">QSimpleUpdater::getUpdater()</a>.</p>
</div>
</div>
<a class="anchor" id="ac3f35326fb62b9cf8a2421d91651ad60"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Updater::setUseCustomInstallProcedures </td>
<td>(</td>
<td class="paramtype">const bool &amp;&#160;</td>
<td class="paramname"><em>custom</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>If the <em>custom</em> parameter is set to <code>true</code>, the <code><a class="el" href="class_updater.html" title="Downloads and interprests the update definition file. ">Updater</a></code> will not try to open the downloaded file. Use the signals fired by the <code><a class="el" href="class_q_simple_updater.html" title="Manages the updater instances. ">QSimpleUpdater</a></code> to install the update from the downloaded file by yourself. </p>
<p>References <a class="el" href="class_downloader.html#a26a4f889029c63c11f679284397a3285">Downloader::setUseCustomInstallProcedures()</a>.</p>
<p>Referenced by <a class="el" href="class_q_simple_updater.html#a6c30dd784023264dd6ec885ec755f515">QSimpleUpdater::setUseCustomInstallProcedures()</a>.</p>
</div>
</div>
<a class="anchor" id="aec889d582692cb41875ea803db3feb35"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Updater::updateAvailable </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns <code>true</code> if there is an update available. </p><dl class="section warning"><dt>Warning</dt><dd>You should call <code><a class="el" href="class_updater.html#a4af41658f974f72c71a9463be7bba1b5">checkForUpdates()</a></code> before using this function </dd></dl>
<p>Referenced by <a class="el" href="class_q_simple_updater.html#a6557bff5a8a255291f12d2613879981b">QSimpleUpdater::getUpdateAvailable()</a>, and <a class="el" href="class_updater.html#a1a38e54201eb876d14eb26fab40a7dc7">setUpdateAvailable()</a>.</p>
</div>
</div>
<a class="anchor" id="a7ebf698a86619ebaadd2eb6e772f2a3d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">QString Updater::url </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the URL of the update definitions file </p>
<p>Referenced by <a class="el" href="class_updater.html#a4af41658f974f72c71a9463be7bba1b5">checkForUpdates()</a>, <a class="el" href="class_updater.html#ae6e6597cd5b3ee32a12fad9c6c5a64ac">onReply()</a>, and <a class="el" href="class_updater.html#a1219e9bb1c1fb0a68d757fbc0d9b76aa">setUrl()</a>.</p>
</div>
</div>
<a class="anchor" id="a7860e1643f426dc4d62cec2cdf207cd5"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Updater::useCustomInstallProcedures </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns <code>true</code> if the updater shall not intervene when the download has finished (you can use the <code><a class="el" href="class_q_simple_updater.html" title="Manages the updater instances. ">QSimpleUpdater</a></code> signals to know when the download is completed). </p>
<p>References <a class="el" href="class_downloader.html#a3e7a91a3cdfa68e3bc59db0af1377f9c">Downloader::useCustomInstallProcedures()</a>.</p>
<p>Referenced by <a class="el" href="class_q_simple_updater.html#af8f4cca002e820499d1fbca127095c87">QSimpleUpdater::usesCustomInstallProcedures()</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="_updater_8h_source.html">Updater.h</a></li>
<li>Updater.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 375 B

View File

@ -0,0 +1,110 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>QSimpleUpdater: Class Index</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="icon.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">QSimpleUpdater
</div>
<div id="projectbrief">A simple auto-updater system for Qt applications</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li class="current"><a href="classes.html"><span>Class&#160;Index</span></a></li>
<li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">Class Index</div> </div>
</div><!--header-->
<div class="contents">
<div class="qindex"><a class="qindex" href="#letter_D">D</a>&#160;|&#160;<a class="qindex" href="#letter_Q">Q</a>&#160;|&#160;<a class="qindex" href="#letter_U">U</a></div>
<table class="classindex">
<tr><td rowspan="2" valign="bottom"><a name="letter_D"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;D&#160;&#160;</div></td></tr></table>
</td><td rowspan="2" valign="bottom"><a name="letter_Q"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;Q&#160;&#160;</div></td></tr></table>
</td><td rowspan="2" valign="bottom"><a name="letter_U"></a><table border="0" cellspacing="0" cellpadding="0"><tr><td><div class="ah">&#160;&#160;U&#160;&#160;</div></td></tr></table>
</td><td></td></tr>
<tr><td></td></tr>
<tr><td valign="top"><a class="el" href="class_downloader.html">Downloader</a>&#160;&#160;&#160;</td><td valign="top"><a class="el" href="class_q_simple_updater.html">QSimpleUpdater</a>&#160;&#160;&#160;</td><td valign="top"><a class="el" href="class_updater.html">Updater</a>&#160;&#160;&#160;</td><td></td></tr>
<tr><td></td><td></td><td></td><td></td></tr>
</table>
<div class="qindex"><a class="qindex" href="#letter_D">D</a>&#160;|&#160;<a class="qindex" href="#letter_Q">Q</a>&#160;|&#160;<a class="qindex" href="#letter_U">U</a></div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 B

View File

@ -0,0 +1,104 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>QSimpleUpdater: src Directory Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="icon.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">QSimpleUpdater
</div>
<div id="projectbrief">A simple auto-updater system for Qt applications</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li class="current"><a href="files.html"><span>File&#160;List</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">src Directory Reference</div> </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="files"></a>
Files</h2></td></tr>
</table>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>

View File

@ -0,0 +1,104 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>QSimpleUpdater: include Directory Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="icon.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">QSimpleUpdater
</div>
<div id="projectbrief">A simple auto-updater system for Qt applications</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li class="current"><a href="files.html"><span>File&#160;List</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">include Directory Reference</div> </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="files"></a>
Files</h2></td></tr>
</table>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 746 B

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

@ -0,0 +1,97 @@
function toggleVisibility(linkObj)
{
var base = $(linkObj).attr('id');
var summary = $('#'+base+'-summary');
var content = $('#'+base+'-content');
var trigger = $('#'+base+'-trigger');
var src=$(trigger).attr('src');
if (content.is(':visible')===true) {
content.hide();
summary.show();
$(linkObj).addClass('closed').removeClass('opened');
$(trigger).attr('src',src.substring(0,src.length-8)+'closed.png');
} else {
content.show();
summary.hide();
$(linkObj).removeClass('closed').addClass('opened');
$(trigger).attr('src',src.substring(0,src.length-10)+'open.png');
}
return false;
}
function updateStripes()
{
$('table.directory tr').
removeClass('even').filter(':visible:even').addClass('even');
}
function toggleLevel(level)
{
$('table.directory tr').each(function() {
var l = this.id.split('_').length-1;
var i = $('#img'+this.id.substring(3));
var a = $('#arr'+this.id.substring(3));
if (l<level+1) {
i.removeClass('iconfopen iconfclosed').addClass('iconfopen');
a.html('&#9660;');
$(this).show();
} else if (l==level+1) {
i.removeClass('iconfclosed iconfopen').addClass('iconfclosed');
a.html('&#9658;');
$(this).show();
} else {
$(this).hide();
}
});
updateStripes();
}
function toggleFolder(id)
{
// the clicked row
var currentRow = $('#row_'+id);
// all rows after the clicked row
var rows = currentRow.nextAll("tr");
var re = new RegExp('^row_'+id+'\\d+_$', "i"); //only one sub
// only match elements AFTER this one (can't hide elements before)
var childRows = rows.filter(function() { return this.id.match(re); });
// first row is visible we are HIDING
if (childRows.filter(':first').is(':visible')===true) {
// replace down arrow by right arrow for current row
var currentRowSpans = currentRow.find("span");
currentRowSpans.filter(".iconfopen").removeClass("iconfopen").addClass("iconfclosed");
currentRowSpans.filter(".arrow").html('&#9658;');
rows.filter("[id^=row_"+id+"]").hide(); // hide all children
} else { // we are SHOWING
// replace right arrow by down arrow for current row
var currentRowSpans = currentRow.find("span");
currentRowSpans.filter(".iconfclosed").removeClass("iconfclosed").addClass("iconfopen");
currentRowSpans.filter(".arrow").html('&#9660;');
// replace down arrows by right arrows for child rows
var childRowsSpans = childRows.find("span");
childRowsSpans.filter(".iconfopen").removeClass("iconfopen").addClass("iconfclosed");
childRowsSpans.filter(".arrow").html('&#9658;');
childRows.show(); //show all children
}
updateStripes();
}
function toggleInherit(id)
{
var rows = $('tr.inherit.'+id);
var img = $('tr.inherit_header.'+id+' img');
var src = $(img).attr('src');
if (rows.filter(':first').is(':visible')===true) {
rows.css('display','none');
$(img).attr('src',src.substring(0,src.length-8)+'closed.png');
} else {
rows.css('display','table-row'); // using show() causes jump in firefox
$(img).attr('src',src.substring(0,src.length-10)+'open.png');
}
}

View File

@ -0,0 +1,103 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>QSimpleUpdater: File List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="icon.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">QSimpleUpdater
</div>
<div id="projectbrief">A simple auto-updater system for Qt applications</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li class="current"><a href="files.html"><span>File&#160;List</span></a></li>
</ul>
</div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">File List</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock">Here is a list of all documented files with brief descriptions:</div><div class="directory">
<table class="directory">
<tr id="row_0_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="_downloader_8h_source.html"><span class="icondoc"></span></a><b>Downloader.h</b></td><td class="desc"></td></tr>
<tr id="row_1_"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="_q_simple_updater_8h_source.html"><span class="icondoc"></span></a><b>QSimpleUpdater.h</b></td><td class="desc"></td></tr>
<tr id="row_2_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><a href="_updater_8h_source.html"><span class="icondoc"></span></a><b>Updater.h</b></td><td class="desc"></td></tr>
</table>
</div><!-- directory -->
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 616 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 597 B

View File

@ -0,0 +1,313 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>QSimpleUpdater: Class Members</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="icon.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">QSimpleUpdater
</div>
<div id="projectbrief">A simple auto-updater system for Qt applications</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="classes.html"><span>Class&#160;Index</span></a></li>
<li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
<li class="current"><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
<div id="navrow3" class="tabs2">
<ul class="tablist">
<li class="current"><a href="functions.html"><span>All</span></a></li>
<li><a href="functions_func.html"><span>Functions</span></a></li>
</ul>
</div>
<div id="navrow4" class="tabs3">
<ul class="tablist">
<li><a href="#index_c"><span>c</span></a></li>
<li><a href="#index_d"><span>d</span></a></li>
<li><a href="#index_g"><span>g</span></a></li>
<li><a href="#index_i"><span>i</span></a></li>
<li><a href="#index_l"><span>l</span></a></li>
<li><a href="#index_m"><span>m</span></a></li>
<li><a href="#index_n"><span>n</span></a></li>
<li><a href="#index_o"><span>o</span></a></li>
<li><a href="#index_p"><span>p</span></a></li>
<li><a href="#index_r"><span>r</span></a></li>
<li><a href="#index_s"><span>s</span></a></li>
<li class="current"><a href="#index_u"><span>u</span></a></li>
</ul>
</div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="contents">
<div class="textblock">Here is a list of all documented class members with links to the class documentation for each member:</div>
<h3><a class="anchor" id="index_c"></a>- c -</h3><ul>
<li>calculateSizes()
: <a class="el" href="class_downloader.html#a2909b4a7cfb35f2709849ee2c95dae0e">Downloader</a>
</li>
<li>calculateTimeRemaining()
: <a class="el" href="class_downloader.html#a662cc753f90f25c91721f8edeaac9b57">Downloader</a>
</li>
<li>cancelDownload()
: <a class="el" href="class_downloader.html#a17209ffbd584af1a3e836e46e70d18d9">Downloader</a>
</li>
<li>changelog()
: <a class="el" href="class_updater.html#af6a266ddbf0b855bcee1e9f77dfe9efb">Updater</a>
</li>
<li>checkForUpdates()
: <a class="el" href="class_q_simple_updater.html#a791c89568adb171a62ccd0704570b68d">QSimpleUpdater</a>
, <a class="el" href="class_updater.html#a4af41658f974f72c71a9463be7bba1b5">Updater</a>
</li>
<li>compare()
: <a class="el" href="class_updater.html#a247145d494c38d15f6569bbd209380e3">Updater</a>
</li>
</ul>
<h3><a class="anchor" id="index_d"></a>- d -</h3><ul>
<li>downloaderEnabled()
: <a class="el" href="class_updater.html#a4f526325b92c344244303b877d990cd3">Updater</a>
</li>
<li>downloadUrl()
: <a class="el" href="class_updater.html#a5690e5ab3dde19098caf77c22f8bf075">Updater</a>
</li>
</ul>
<h3><a class="anchor" id="index_g"></a>- g -</h3><ul>
<li>getChangelog()
: <a class="el" href="class_q_simple_updater.html#a1bbffc681514ca5393450b8664c137bb">QSimpleUpdater</a>
</li>
<li>getDownloaderEnabled()
: <a class="el" href="class_q_simple_updater.html#a10f421d41b30134583ee1f5e8cfbc59d">QSimpleUpdater</a>
</li>
<li>getDownloadUrl()
: <a class="el" href="class_q_simple_updater.html#a2c660cca487b092fd8e1b366a964a10b">QSimpleUpdater</a>
</li>
<li>getInstance()
: <a class="el" href="class_q_simple_updater.html#adea7d414a9430fc2b653231a87eaacc6">QSimpleUpdater</a>
</li>
<li>getLatestVersion()
: <a class="el" href="class_q_simple_updater.html#aefb5ac20bec6e8509e2b55ed14926a70">QSimpleUpdater</a>
</li>
<li>getModuleName()
: <a class="el" href="class_q_simple_updater.html#a30c3bccb5c6f06c1a243fa2629f441a3">QSimpleUpdater</a>
</li>
<li>getModuleVersion()
: <a class="el" href="class_q_simple_updater.html#ad7391bb43acbcbf1627cc51262c2ec60">QSimpleUpdater</a>
</li>
<li>getNotifyOnFinish()
: <a class="el" href="class_q_simple_updater.html#acc540358f0d887e4945ac061667a596d">QSimpleUpdater</a>
</li>
<li>getNotifyOnUpdate()
: <a class="el" href="class_q_simple_updater.html#acdc00558a979df664910b07cb82f9b36">QSimpleUpdater</a>
</li>
<li>getPlatformKey()
: <a class="el" href="class_q_simple_updater.html#a0f061c6945b58664c2c9f9ec26f0d87c">QSimpleUpdater</a>
</li>
<li>getUpdateAvailable()
: <a class="el" href="class_q_simple_updater.html#a6557bff5a8a255291f12d2613879981b">QSimpleUpdater</a>
</li>
<li>getUpdater()
: <a class="el" href="class_q_simple_updater.html#a0305a6c8eb9d0bf213736d1c1beb4149">QSimpleUpdater</a>
</li>
</ul>
<h3><a class="anchor" id="index_i"></a>- i -</h3><ul>
<li>installUpdate()
: <a class="el" href="class_downloader.html#abd39884d0586459bdd09b490913223fe">Downloader</a>
</li>
</ul>
<h3><a class="anchor" id="index_l"></a>- l -</h3><ul>
<li>latestVersion()
: <a class="el" href="class_updater.html#a25e7f289753c6d7b4439ee3728866a48">Updater</a>
</li>
</ul>
<h3><a class="anchor" id="index_m"></a>- m -</h3><ul>
<li>moduleName()
: <a class="el" href="class_updater.html#a7d8369115126e41cdefd30004cefc46d">Updater</a>
</li>
<li>moduleVersion()
: <a class="el" href="class_updater.html#af32daac9bff9cb3e79798fc9a825648e">Updater</a>
</li>
</ul>
<h3><a class="anchor" id="index_n"></a>- n -</h3><ul>
<li>notifyOnFinish()
: <a class="el" href="class_updater.html#ad9fd2c8c3782c04289a76b1bf0b23ca0">Updater</a>
</li>
<li>notifyOnUpdate()
: <a class="el" href="class_updater.html#abefc7aae1333458ab03d50aec9b58581">Updater</a>
</li>
</ul>
<h3><a class="anchor" id="index_o"></a>- o -</h3><ul>
<li>onDownloadFinished()
: <a class="el" href="class_downloader.html#acfd827dd6b36e82a4cc8bfbb284056e9">Downloader</a>
</li>
<li>onReply()
: <a class="el" href="class_updater.html#ae6e6597cd5b3ee32a12fad9c6c5a64ac">Updater</a>
</li>
<li>openDownload()
: <a class="el" href="class_downloader.html#a0117b0dd837b46ca5cdd8b4f2ea5a552">Downloader</a>
</li>
</ul>
<h3><a class="anchor" id="index_p"></a>- p -</h3><ul>
<li>platformKey()
: <a class="el" href="class_updater.html#ad6d8a5d7b8fd9bdfde738d72c50f8bee">Updater</a>
</li>
</ul>
<h3><a class="anchor" id="index_r"></a>- r -</h3><ul>
<li>round()
: <a class="el" href="class_downloader.html#ae4285290c22361353a36f25e742fc829">Downloader</a>
</li>
</ul>
<h3><a class="anchor" id="index_s"></a>- s -</h3><ul>
<li>setDownloaderEnabled()
: <a class="el" href="class_q_simple_updater.html#a0ff15deef5af536150911353df0c44b2">QSimpleUpdater</a>
, <a class="el" href="class_updater.html#a46d6db0d853ed8400a1725df436812ee">Updater</a>
</li>
<li>setModuleName()
: <a class="el" href="class_q_simple_updater.html#a4b5e2bb2b88ab10a3c6c3a83661a2ebe">QSimpleUpdater</a>
, <a class="el" href="class_updater.html#a5ac7e1a2bd65353a5fdec22689f1adf3">Updater</a>
</li>
<li>setModuleVersion()
: <a class="el" href="class_q_simple_updater.html#a1a2a03f01c7ba081637268910fc50919">QSimpleUpdater</a>
, <a class="el" href="class_updater.html#a8da70f39cc193b94c64769fc6f40dc2c">Updater</a>
</li>
<li>setNotifyOnFinish()
: <a class="el" href="class_q_simple_updater.html#ad9e53f893874d54bff8c787c2f560bd2">QSimpleUpdater</a>
, <a class="el" href="class_updater.html#a949e507fd72ec4b2565bb49ebe98a2dc">Updater</a>
</li>
<li>setNotifyOnUpdate()
: <a class="el" href="class_q_simple_updater.html#a4789b616743189642a023fa7704e9c00">QSimpleUpdater</a>
, <a class="el" href="class_updater.html#ad88b597bf4ae11a65a9c87171239ed00">Updater</a>
</li>
<li>setPlatformKey()
: <a class="el" href="class_q_simple_updater.html#af6b2713b7468a69ce3ff46074e642df8">QSimpleUpdater</a>
, <a class="el" href="class_updater.html#a840a6b061590901eae3255ba74ff7ad8">Updater</a>
</li>
<li>setUpdateAvailable()
: <a class="el" href="class_updater.html#a1a38e54201eb876d14eb26fab40a7dc7">Updater</a>
</li>
<li>setUrl()
: <a class="el" href="class_updater.html#a1219e9bb1c1fb0a68d757fbc0d9b76aa">Updater</a>
</li>
<li>setUseCustomInstallProcedures()
: <a class="el" href="class_downloader.html#a26a4f889029c63c11f679284397a3285">Downloader</a>
, <a class="el" href="class_q_simple_updater.html#a6c30dd784023264dd6ec885ec755f515">QSimpleUpdater</a>
, <a class="el" href="class_updater.html#ac3f35326fb62b9cf8a2421d91651ad60">Updater</a>
</li>
<li>startDownload()
: <a class="el" href="class_downloader.html#a7f81027436d44ca52168b30a6eb0d379">Downloader</a>
</li>
</ul>
<h3><a class="anchor" id="index_u"></a>- u -</h3><ul>
<li>updateAvailable()
: <a class="el" href="class_updater.html#aec889d582692cb41875ea803db3feb35">Updater</a>
</li>
<li>updateProgress()
: <a class="el" href="class_downloader.html#a097bee5b7d904da53427c5a5cb47ce83">Downloader</a>
</li>
<li>url()
: <a class="el" href="class_updater.html#a7ebf698a86619ebaadd2eb6e772f2a3d">Updater</a>
</li>
<li>useCustomInstallProcedures()
: <a class="el" href="class_downloader.html#a3e7a91a3cdfa68e3bc59db0af1377f9c">Downloader</a>
, <a class="el" href="class_updater.html#a7860e1643f426dc4d62cec2cdf207cd5">Updater</a>
</li>
<li>usesCustomInstallProcedures()
: <a class="el" href="class_q_simple_updater.html#af8f4cca002e820499d1fbca127095c87">QSimpleUpdater</a>
</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>

View File

@ -0,0 +1,313 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>QSimpleUpdater: Class Members - Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="icon.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">QSimpleUpdater
</div>
<div id="projectbrief">A simple auto-updater system for Qt applications</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="classes.html"><span>Class&#160;Index</span></a></li>
<li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
<li class="current"><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
<div id="navrow3" class="tabs2">
<ul class="tablist">
<li><a href="functions.html"><span>All</span></a></li>
<li class="current"><a href="functions_func.html"><span>Functions</span></a></li>
</ul>
</div>
<div id="navrow4" class="tabs3">
<ul class="tablist">
<li><a href="#index_c"><span>c</span></a></li>
<li><a href="#index_d"><span>d</span></a></li>
<li><a href="#index_g"><span>g</span></a></li>
<li><a href="#index_i"><span>i</span></a></li>
<li><a href="#index_l"><span>l</span></a></li>
<li><a href="#index_m"><span>m</span></a></li>
<li><a href="#index_n"><span>n</span></a></li>
<li><a href="#index_o"><span>o</span></a></li>
<li><a href="#index_p"><span>p</span></a></li>
<li><a href="#index_r"><span>r</span></a></li>
<li><a href="#index_s"><span>s</span></a></li>
<li class="current"><a href="#index_u"><span>u</span></a></li>
</ul>
</div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="contents">
&#160;
<h3><a class="anchor" id="index_c"></a>- c -</h3><ul>
<li>calculateSizes()
: <a class="el" href="class_downloader.html#a2909b4a7cfb35f2709849ee2c95dae0e">Downloader</a>
</li>
<li>calculateTimeRemaining()
: <a class="el" href="class_downloader.html#a662cc753f90f25c91721f8edeaac9b57">Downloader</a>
</li>
<li>cancelDownload()
: <a class="el" href="class_downloader.html#a17209ffbd584af1a3e836e46e70d18d9">Downloader</a>
</li>
<li>changelog()
: <a class="el" href="class_updater.html#af6a266ddbf0b855bcee1e9f77dfe9efb">Updater</a>
</li>
<li>checkForUpdates()
: <a class="el" href="class_q_simple_updater.html#a791c89568adb171a62ccd0704570b68d">QSimpleUpdater</a>
, <a class="el" href="class_updater.html#a4af41658f974f72c71a9463be7bba1b5">Updater</a>
</li>
<li>compare()
: <a class="el" href="class_updater.html#a247145d494c38d15f6569bbd209380e3">Updater</a>
</li>
</ul>
<h3><a class="anchor" id="index_d"></a>- d -</h3><ul>
<li>downloaderEnabled()
: <a class="el" href="class_updater.html#a4f526325b92c344244303b877d990cd3">Updater</a>
</li>
<li>downloadUrl()
: <a class="el" href="class_updater.html#a5690e5ab3dde19098caf77c22f8bf075">Updater</a>
</li>
</ul>
<h3><a class="anchor" id="index_g"></a>- g -</h3><ul>
<li>getChangelog()
: <a class="el" href="class_q_simple_updater.html#a1bbffc681514ca5393450b8664c137bb">QSimpleUpdater</a>
</li>
<li>getDownloaderEnabled()
: <a class="el" href="class_q_simple_updater.html#a10f421d41b30134583ee1f5e8cfbc59d">QSimpleUpdater</a>
</li>
<li>getDownloadUrl()
: <a class="el" href="class_q_simple_updater.html#a2c660cca487b092fd8e1b366a964a10b">QSimpleUpdater</a>
</li>
<li>getInstance()
: <a class="el" href="class_q_simple_updater.html#adea7d414a9430fc2b653231a87eaacc6">QSimpleUpdater</a>
</li>
<li>getLatestVersion()
: <a class="el" href="class_q_simple_updater.html#aefb5ac20bec6e8509e2b55ed14926a70">QSimpleUpdater</a>
</li>
<li>getModuleName()
: <a class="el" href="class_q_simple_updater.html#a30c3bccb5c6f06c1a243fa2629f441a3">QSimpleUpdater</a>
</li>
<li>getModuleVersion()
: <a class="el" href="class_q_simple_updater.html#ad7391bb43acbcbf1627cc51262c2ec60">QSimpleUpdater</a>
</li>
<li>getNotifyOnFinish()
: <a class="el" href="class_q_simple_updater.html#acc540358f0d887e4945ac061667a596d">QSimpleUpdater</a>
</li>
<li>getNotifyOnUpdate()
: <a class="el" href="class_q_simple_updater.html#acdc00558a979df664910b07cb82f9b36">QSimpleUpdater</a>
</li>
<li>getPlatformKey()
: <a class="el" href="class_q_simple_updater.html#a0f061c6945b58664c2c9f9ec26f0d87c">QSimpleUpdater</a>
</li>
<li>getUpdateAvailable()
: <a class="el" href="class_q_simple_updater.html#a6557bff5a8a255291f12d2613879981b">QSimpleUpdater</a>
</li>
<li>getUpdater()
: <a class="el" href="class_q_simple_updater.html#a0305a6c8eb9d0bf213736d1c1beb4149">QSimpleUpdater</a>
</li>
</ul>
<h3><a class="anchor" id="index_i"></a>- i -</h3><ul>
<li>installUpdate()
: <a class="el" href="class_downloader.html#abd39884d0586459bdd09b490913223fe">Downloader</a>
</li>
</ul>
<h3><a class="anchor" id="index_l"></a>- l -</h3><ul>
<li>latestVersion()
: <a class="el" href="class_updater.html#a25e7f289753c6d7b4439ee3728866a48">Updater</a>
</li>
</ul>
<h3><a class="anchor" id="index_m"></a>- m -</h3><ul>
<li>moduleName()
: <a class="el" href="class_updater.html#a7d8369115126e41cdefd30004cefc46d">Updater</a>
</li>
<li>moduleVersion()
: <a class="el" href="class_updater.html#af32daac9bff9cb3e79798fc9a825648e">Updater</a>
</li>
</ul>
<h3><a class="anchor" id="index_n"></a>- n -</h3><ul>
<li>notifyOnFinish()
: <a class="el" href="class_updater.html#ad9fd2c8c3782c04289a76b1bf0b23ca0">Updater</a>
</li>
<li>notifyOnUpdate()
: <a class="el" href="class_updater.html#abefc7aae1333458ab03d50aec9b58581">Updater</a>
</li>
</ul>
<h3><a class="anchor" id="index_o"></a>- o -</h3><ul>
<li>onDownloadFinished()
: <a class="el" href="class_downloader.html#acfd827dd6b36e82a4cc8bfbb284056e9">Downloader</a>
</li>
<li>onReply()
: <a class="el" href="class_updater.html#ae6e6597cd5b3ee32a12fad9c6c5a64ac">Updater</a>
</li>
<li>openDownload()
: <a class="el" href="class_downloader.html#a0117b0dd837b46ca5cdd8b4f2ea5a552">Downloader</a>
</li>
</ul>
<h3><a class="anchor" id="index_p"></a>- p -</h3><ul>
<li>platformKey()
: <a class="el" href="class_updater.html#ad6d8a5d7b8fd9bdfde738d72c50f8bee">Updater</a>
</li>
</ul>
<h3><a class="anchor" id="index_r"></a>- r -</h3><ul>
<li>round()
: <a class="el" href="class_downloader.html#ae4285290c22361353a36f25e742fc829">Downloader</a>
</li>
</ul>
<h3><a class="anchor" id="index_s"></a>- s -</h3><ul>
<li>setDownloaderEnabled()
: <a class="el" href="class_q_simple_updater.html#a0ff15deef5af536150911353df0c44b2">QSimpleUpdater</a>
, <a class="el" href="class_updater.html#a46d6db0d853ed8400a1725df436812ee">Updater</a>
</li>
<li>setModuleName()
: <a class="el" href="class_q_simple_updater.html#a4b5e2bb2b88ab10a3c6c3a83661a2ebe">QSimpleUpdater</a>
, <a class="el" href="class_updater.html#a5ac7e1a2bd65353a5fdec22689f1adf3">Updater</a>
</li>
<li>setModuleVersion()
: <a class="el" href="class_q_simple_updater.html#a1a2a03f01c7ba081637268910fc50919">QSimpleUpdater</a>
, <a class="el" href="class_updater.html#a8da70f39cc193b94c64769fc6f40dc2c">Updater</a>
</li>
<li>setNotifyOnFinish()
: <a class="el" href="class_q_simple_updater.html#ad9e53f893874d54bff8c787c2f560bd2">QSimpleUpdater</a>
, <a class="el" href="class_updater.html#a949e507fd72ec4b2565bb49ebe98a2dc">Updater</a>
</li>
<li>setNotifyOnUpdate()
: <a class="el" href="class_q_simple_updater.html#a4789b616743189642a023fa7704e9c00">QSimpleUpdater</a>
, <a class="el" href="class_updater.html#ad88b597bf4ae11a65a9c87171239ed00">Updater</a>
</li>
<li>setPlatformKey()
: <a class="el" href="class_q_simple_updater.html#af6b2713b7468a69ce3ff46074e642df8">QSimpleUpdater</a>
, <a class="el" href="class_updater.html#a840a6b061590901eae3255ba74ff7ad8">Updater</a>
</li>
<li>setUpdateAvailable()
: <a class="el" href="class_updater.html#a1a38e54201eb876d14eb26fab40a7dc7">Updater</a>
</li>
<li>setUrl()
: <a class="el" href="class_updater.html#a1219e9bb1c1fb0a68d757fbc0d9b76aa">Updater</a>
</li>
<li>setUseCustomInstallProcedures()
: <a class="el" href="class_downloader.html#a26a4f889029c63c11f679284397a3285">Downloader</a>
, <a class="el" href="class_q_simple_updater.html#a6c30dd784023264dd6ec885ec755f515">QSimpleUpdater</a>
, <a class="el" href="class_updater.html#ac3f35326fb62b9cf8a2421d91651ad60">Updater</a>
</li>
<li>startDownload()
: <a class="el" href="class_downloader.html#a7f81027436d44ca52168b30a6eb0d379">Downloader</a>
</li>
</ul>
<h3><a class="anchor" id="index_u"></a>- u -</h3><ul>
<li>updateAvailable()
: <a class="el" href="class_updater.html#aec889d582692cb41875ea803db3feb35">Updater</a>
</li>
<li>updateProgress()
: <a class="el" href="class_downloader.html#a097bee5b7d904da53427c5a5cb47ce83">Downloader</a>
</li>
<li>url()
: <a class="el" href="class_updater.html#a7ebf698a86619ebaadd2eb6e772f2a3d">Updater</a>
</li>
<li>useCustomInstallProcedures()
: <a class="el" href="class_downloader.html#a3e7a91a3cdfa68e3bc59db0af1377f9c">Downloader</a>
, <a class="el" href="class_updater.html#a7860e1643f426dc4d62cec2cdf207cd5">Updater</a>
</li>
<li>usesCustomInstallProcedures()
: <a class="el" href="class_q_simple_updater.html#af8f4cca002e820499d1fbca127095c87">QSimpleUpdater</a>
</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>

View File

@ -0,0 +1,108 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>QSimpleUpdater: Class Hierarchy</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="icon.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">QSimpleUpdater
</div>
<div id="projectbrief">A simple auto-updater system for Qt applications</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="classes.html"><span>Class&#160;Index</span></a></li>
<li class="current"><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;Members</span></a></li>
</ul>
</div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">Class Hierarchy</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock">This inheritance list is sorted roughly, but not completely, alphabetically:</div><div class="directory">
<div class="levels">[detail level <span onclick="javascript:toggleLevel(1);">1</span><span onclick="javascript:toggleLevel(2);">2</span>]</div><table class="directory">
<tr id="row_0_" class="even"><td class="entry"><span style="width:0px;display:inline-block;">&#160;</span><span id="arr_0_" class="arrow" onclick="toggleFolder('0_')">&#9660;</span><span class="icona"><span class="icon">C</span></span><b>QObject</b></td><td class="desc"></td></tr>
<tr id="row_0_0_"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="class_q_simple_updater.html" target="_self">QSimpleUpdater</a></td><td class="desc">Manages the updater instances </td></tr>
<tr id="row_0_1_" class="even"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="class_updater.html" target="_self">Updater</a></td><td class="desc">Downloads and interprests the update definition file </td></tr>
<tr id="row_1_"><td class="entry"><span style="width:0px;display:inline-block;">&#160;</span><span id="arr_1_" class="arrow" onclick="toggleFolder('1_')">&#9660;</span><span class="icona"><span class="icon">C</span></span><b>QWidget</b></td><td class="desc"></td></tr>
<tr id="row_1_0_" class="even"><td class="entry"><span style="width:32px;display:inline-block;">&#160;</span><span class="icona"><span class="icon">C</span></span><a class="el" href="class_downloader.html" target="_self">Downloader</a></td><td class="desc">Implements an integrated file downloader with a nice UI </td></tr>
</table>
</div><!-- directory -->
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -0,0 +1,111 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>QSimpleUpdater: Introduction</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="icon.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">QSimpleUpdater
</div>
<div id="projectbrief">A simple auto-updater system for Qt applications</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li class="current"><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">Introduction </div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><p><a class="el" href="class_q_simple_updater.html" title="Manages the updater instances. ">QSimpleUpdater</a> is an implementation of an auto-updating system to be used with Qt projects. It allows you to easily check for updates, download them and install them. Additionally, the <a class="el" href="class_q_simple_updater.html" title="Manages the updater instances. ">QSimpleUpdater</a> allows you to check for updates for different "modules" of your application. Check the WTFs for more information.</p>
<h2>Integrating <a class="el" href="class_q_simple_updater.html" title="Manages the updater instances. ">QSimpleUpdater</a> with your projects</h2>
<ol type="1">
<li>Copy the <a class="el" href="class_q_simple_updater.html" title="Manages the updater instances. ">QSimpleUpdater</a> folder in your "3rd-party" folder.</li>
<li>Include the <a class="el" href="class_q_simple_updater.html" title="Manages the updater instances. ">QSimpleUpdater</a> project include (<em>pri</em>) file using the include() function.</li>
<li>That's all! Check the tutorial project as a reference for your project.</li>
</ol>
<h2>WTFs Section</h2>
<h3>1. How does the <a class="el" href="class_q_simple_updater.html" title="Manages the updater instances. ">QSimpleUpdater</a> check for updates?</h3>
<p>The <a class="el" href="class_q_simple_updater.html" title="Manages the updater instances. ">QSimpleUpdater</a> downloads an update definition file stored in JSON format. This file specifies the latest version, the download links and changelogs for each platform (you can also register your own platform easily if needed).</p>
<p>After downloading this file, the library analyzes the local version and the remote version. If the remote version is greater than the local version, then the library infers that there is an update available and notifies the user.</p>
<h3>2. Can I customize the update notifications shown to the user?</h3>
<p>Yes! You can "toggle" which notifications to show using the library's functions or re-implement by yourself the notifications by "reacting" to the signals emitted by the <a class="el" href="class_q_simple_updater.html" title="Manages the updater instances. ">QSimpleUpdater</a>.</p>
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;QString url = &quot;https://MyBadassApplication.com/updates.json&quot;;</div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;</div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;QSimpleUpdater::getInstance()-&gt;setNotifyOnUpdate (url, true);</div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;QSimpleUpdater::getInstance()-&gt;setNotifyOnFinish (url, false);</div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;</div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;QSimpleUpdater::getInstance()-&gt;checkForUpdates (url);</div></div><!-- fragment --><h3>3. Is the application able to download the updates directly?</h3>
<p>Yes. If there is an update available, the library will prompt the user if he/she wants to download the update. You can enable or disable the integrated downloader with the following code:</p>
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;QString url = &quot;https://MyBadassApplication.com/updates.json&quot;;</div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;QSimpleUpdater::getInstance()-&gt;setDownloaderEnabled (url, true);</div></div><!-- fragment --><h3>4. Why do I need to specify an URL for each function of the library?</h3>
<p>The <a class="el" href="class_q_simple_updater.html" title="Manages the updater instances. ">QSimpleUpdater</a> allows you to use different updater instances, which can be accessed with the URL of the update definitions. While it is not obligatory to use multiple updater instances, this can be useful for applications that make use of plugins or different modules.</p>
<p>Say that you are developing a game, in this case, you could use the following code:</p>
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;// Update the game textures</div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;QString textures_url = &quot;https://MyBadassGame.com/textures.json&quot;</div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;QSimpleUpdater::getInstance()-&gt;setModuleName (textures_url, &quot;textures&quot;);</div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;QSimpleUpdater::getInstance()-&gt;setModuleVersion (textures_url, &quot;0.4&quot;);</div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;QSimpleUpdater::getInstance()-&gt;checkForUpdates (textures_url);</div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;</div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;// Update the game sounds</div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;QString sounds_url = &quot;https://MyBadassGame.com/sounds.json&quot;</div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;QSimpleUpdater::getInstance()-&gt;setModuleName (sounds_url, &quot;sounds&quot;);</div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;QSimpleUpdater::getInstance()-&gt;setModuleVersion (sounds_url, &quot;0.6&quot;);</div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;QSimpleUpdater::getInstance()-&gt;checkForUpdates (sounds_url);</div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;</div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;// Update the client (name &amp; versions are already stored in qApp)</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;QString client_url = &quot;https://MyBadassGame.com/client.json&quot;</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;QSimpleUpdater::getInstance()-&gt;checkForUpdates (client_url);</div></div><!-- fragment --><h2>License</h2>
<p><a class="el" href="class_q_simple_updater.html" title="Manages the updater instances. ">QSimpleUpdater</a> is free and open-source software, it is released under the Don't Be A Dick License. </p>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 B

View File

@ -0,0 +1,26 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_0.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
createResults();
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
--></script>
</div>
</body>
</html>

View File

@ -0,0 +1,9 @@
var searchData=
[
['calculatesizes',['calculateSizes',['../class_downloader.html#a2909b4a7cfb35f2709849ee2c95dae0e',1,'Downloader']]],
['calculatetimeremaining',['calculateTimeRemaining',['../class_downloader.html#a662cc753f90f25c91721f8edeaac9b57',1,'Downloader']]],
['canceldownload',['cancelDownload',['../class_downloader.html#a17209ffbd584af1a3e836e46e70d18d9',1,'Downloader']]],
['changelog',['changelog',['../class_updater.html#af6a266ddbf0b855bcee1e9f77dfe9efb',1,'Updater']]],
['checkforupdates',['checkForUpdates',['../class_updater.html#a4af41658f974f72c71a9463be7bba1b5',1,'Updater::checkForUpdates()'],['../class_q_simple_updater.html#a791c89568adb171a62ccd0704570b68d',1,'QSimpleUpdater::checkForUpdates()']]],
['compare',['compare',['../class_updater.html#a247145d494c38d15f6569bbd209380e3',1,'Updater']]]
];

View File

@ -0,0 +1,26 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_1.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
createResults();
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
--></script>
</div>
</body>
</html>

View File

@ -0,0 +1,6 @@
var searchData=
[
['downloader',['Downloader',['../class_downloader.html',1,'']]],
['downloaderenabled',['downloaderEnabled',['../class_updater.html#a4f526325b92c344244303b877d990cd3',1,'Updater']]],
['downloadurl',['downloadUrl',['../class_updater.html#a5690e5ab3dde19098caf77c22f8bf075',1,'Updater']]]
];

View File

@ -0,0 +1,26 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_2.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
createResults();
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
--></script>
</div>
</body>
</html>

View File

@ -0,0 +1,15 @@
var searchData=
[
['getchangelog',['getChangelog',['../class_q_simple_updater.html#a1bbffc681514ca5393450b8664c137bb',1,'QSimpleUpdater']]],
['getdownloaderenabled',['getDownloaderEnabled',['../class_q_simple_updater.html#a10f421d41b30134583ee1f5e8cfbc59d',1,'QSimpleUpdater']]],
['getdownloadurl',['getDownloadUrl',['../class_q_simple_updater.html#a2c660cca487b092fd8e1b366a964a10b',1,'QSimpleUpdater']]],
['getinstance',['getInstance',['../class_q_simple_updater.html#adea7d414a9430fc2b653231a87eaacc6',1,'QSimpleUpdater']]],
['getlatestversion',['getLatestVersion',['../class_q_simple_updater.html#aefb5ac20bec6e8509e2b55ed14926a70',1,'QSimpleUpdater']]],
['getmodulename',['getModuleName',['../class_q_simple_updater.html#a30c3bccb5c6f06c1a243fa2629f441a3',1,'QSimpleUpdater']]],
['getmoduleversion',['getModuleVersion',['../class_q_simple_updater.html#ad7391bb43acbcbf1627cc51262c2ec60',1,'QSimpleUpdater']]],
['getnotifyonfinish',['getNotifyOnFinish',['../class_q_simple_updater.html#acc540358f0d887e4945ac061667a596d',1,'QSimpleUpdater']]],
['getnotifyonupdate',['getNotifyOnUpdate',['../class_q_simple_updater.html#acdc00558a979df664910b07cb82f9b36',1,'QSimpleUpdater']]],
['getplatformkey',['getPlatformKey',['../class_q_simple_updater.html#a0f061c6945b58664c2c9f9ec26f0d87c',1,'QSimpleUpdater']]],
['getupdateavailable',['getUpdateAvailable',['../class_q_simple_updater.html#a6557bff5a8a255291f12d2613879981b',1,'QSimpleUpdater']]],
['getupdater',['getUpdater',['../class_q_simple_updater.html#a0305a6c8eb9d0bf213736d1c1beb4149',1,'QSimpleUpdater']]]
];

View File

@ -0,0 +1,26 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_3.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
createResults();
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
--></script>
</div>
</body>
</html>

View File

@ -0,0 +1,5 @@
var searchData=
[
['introduction',['Introduction',['../index.html',1,'']]],
['installupdate',['installUpdate',['../class_downloader.html#abd39884d0586459bdd09b490913223fe',1,'Downloader']]]
];

View File

@ -0,0 +1,26 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_4.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
createResults();
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
--></script>
</div>
</body>
</html>

View File

@ -0,0 +1,4 @@
var searchData=
[
['latestversion',['latestVersion',['../class_updater.html#a25e7f289753c6d7b4439ee3728866a48',1,'Updater']]]
];

View File

@ -0,0 +1,26 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_5.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
createResults();
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
--></script>
</div>
</body>
</html>

View File

@ -0,0 +1,5 @@
var searchData=
[
['modulename',['moduleName',['../class_updater.html#a7d8369115126e41cdefd30004cefc46d',1,'Updater']]],
['moduleversion',['moduleVersion',['../class_updater.html#af32daac9bff9cb3e79798fc9a825648e',1,'Updater']]]
];

View File

@ -0,0 +1,26 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_6.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
createResults();
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
--></script>
</div>
</body>
</html>

View File

@ -0,0 +1,5 @@
var searchData=
[
['notifyonfinish',['notifyOnFinish',['../class_updater.html#ad9fd2c8c3782c04289a76b1bf0b23ca0',1,'Updater']]],
['notifyonupdate',['notifyOnUpdate',['../class_updater.html#abefc7aae1333458ab03d50aec9b58581',1,'Updater']]]
];

View File

@ -0,0 +1,26 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_7.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
createResults();
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
--></script>
</div>
</body>
</html>

View File

@ -0,0 +1,6 @@
var searchData=
[
['ondownloadfinished',['onDownloadFinished',['../class_downloader.html#acfd827dd6b36e82a4cc8bfbb284056e9',1,'Downloader']]],
['onreply',['onReply',['../class_updater.html#ae6e6597cd5b3ee32a12fad9c6c5a64ac',1,'Updater']]],
['opendownload',['openDownload',['../class_downloader.html#a0117b0dd837b46ca5cdd8b4f2ea5a552',1,'Downloader']]]
];

View File

@ -0,0 +1,26 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_8.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
createResults();
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
--></script>
</div>
</body>
</html>

View File

@ -0,0 +1,4 @@
var searchData=
[
['platformkey',['platformKey',['../class_updater.html#ad6d8a5d7b8fd9bdfde738d72c50f8bee',1,'Updater']]]
];

View File

@ -0,0 +1,26 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<link rel="stylesheet" type="text/css" href="search.css"/>
<script type="text/javascript" src="all_9.js"></script>
<script type="text/javascript" src="search.js"></script>
</head>
<body class="SRPage">
<div id="SRIndex">
<div class="SRStatus" id="Loading">Loading...</div>
<div id="SRResults"></div>
<script type="text/javascript"><!--
createResults();
--></script>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
<script type="text/javascript"><!--
document.getElementById("Loading").style.display="none";
document.getElementById("NoMatches").style.display="none";
var searchResults = new SearchResults("searchResults");
searchResults.Search();
--></script>
</div>
</body>
</html>

Some files were not shown because too many files have changed in this diff Show More