Added old KDE3 version of ksystemlog

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ksystemlog@1095334 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 15 years ago
commit 64e7bb523f

@ -0,0 +1,3 @@
Nicolas Ternisien <nicolas.ternisien@gmail.com>
Please see http://annivernet.free.fr/ksystemlog/ for more informations.

@ -0,0 +1,340 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 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.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, 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 or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
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 give any other recipients of the Program a copy of this License
along with the Program.
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 Program or any portion
of it, thus forming a work based on the Program, 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) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
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 Program, 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 Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) 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; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, 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 executable. However, as a
special exception, the source code 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.
If distribution of executable or 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 counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program 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.
5. 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 Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program 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 to
this License.
7. 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 Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program 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 Program.
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.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program 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.
9. The Free Software Foundation may publish revised and/or new versions
of the 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 Program
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 Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, 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
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "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 PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. 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 PROGRAM 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 PROGRAM (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 PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), 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 Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. 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 program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, 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.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.

@ -0,0 +1,16 @@
----------------------------------
KSystemLog Changelog
----------------------------------
Please see the changelog of KSystemLog online at :
http://annivernet.free.fr/ksystemlog/changelog.php
Thank you.
For any information and/or improvements, do not hesitate to send a mail to :
Nicolas Ternisien <nicolas.ternisien@gmail.com>
KSystemLog Web site :
http://annivernet.free.fr/ksystemlog/

@ -0,0 +1,181 @@
Specific Trouble case with KSystemLog
===================================================
I hope that you will don't have any problems to compile and test KSystemLog.
If you successfully compile KSystemLog but you have strange problems (with the
tool bars, please manually copy src/ksystemlogui.rc in the $HOME/.kde/share/apps/ksystemlog
folder (create it if it does not exist).
If you still have problems, do not hesitate do email me ;-)
Nicolas Ternisien <nicolas.ternisien@gmail.com>
For more informations, please also see the KsystemLog Web site :
http://annivernet.free.fr/ksystemlog/
Basic Installation
===================================================
These are generic installation instructions.
The `configure' shell script attempts to guess correct values for
various system-dependent variables used during compilation. It uses
those values to create a `Makefile' in each directory of the package.
It may also create one or more `.h' files containing system-dependent
definitions. Finally, it creates a shell script `config.status' that
you can run in the future to recreate the current configuration, a file
`config.cache' that saves the results of its tests to speed up
reconfiguring, and a file `config.log' containing compiler output
(useful mainly for debugging `configure').
If you need to do unusual things to compile the package, please try
to figure out how `configure' could check whether to do them, and mail
diffs or instructions to the address given in the `README' so they can
be considered for the next release. If at some point `config.cache'
contains results you don't want to keep, you may remove or edit it.
The file `configure.in' is used to create `configure' by a program
called `autoconf'. You only need `configure.in' if you want to change
it or regenerate `configure' using a newer version of `autoconf'.
The simplest way to compile this package is:
1. `cd' to the directory containing the package's source code and type
`./configure' to configure the package for your system. If you're
using `csh' on an old version of System V, you might need to type
`sh ./configure' instead to prevent `csh' from trying to execute
`configure' itself.
Running `configure' takes a while. While running, it prints some
messages telling which features it is checking for.
2. Type `make' to compile the package.
3. Type `make install' to install the programs and any data files and
documentation.
4. You can remove the program binaries and object files from the
source code directory by typing `make clean'.
Compilers and Options
=====================
Some systems require unusual options for compilation or linking that
the `configure' script does not know about. You can give `configure'
initial values for variables by setting them in the environment. Using
a Bourne-compatible shell, you can do that on the command line like
this:
CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
Or on systems that have the `env' program, you can do it like this:
env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
Compiling For Multiple Architectures
====================================
You can compile the package for more than one kind of computer at the
same time, by placing the object files for each architecture in their
own directory. To do this, you must use a version of `make' that
supports the `VPATH' variable, such as GNU `make'. `cd' to the
directory where you want the object files and executables to go and run
the `configure' script. `configure' automatically checks for the
source code in the directory that `configure' is in and in `..'.
If you have to use a `make' that does not supports the `VPATH'
variable, you have to compile the package for one architecture at a time
in the source code directory. After you have installed the package for
one architecture, use `make distclean' before reconfiguring for another
architecture.
Installation Names
==================
By default, `make install' will install the package's files in
`/usr/local/bin', `/usr/local/man', etc. You can specify an
installation prefix other than `/usr/local' by giving `configure' the
option `--prefix=PATH'.
You can specify separate installation prefixes for
architecture-specific files and architecture-independent files. If you
give `configure' the option `--exec-prefix=PATH', the package will use
PATH as the prefix for installing programs and libraries.
Documentation and other data files will still use the regular prefix.
If the package supports it, you can cause programs to be installed
with an extra prefix or suffix on their names by giving `configure' the
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
Optional Features
=================
Some packages pay attention to `--enable-FEATURE' options to
`configure', where FEATURE indicates an optional part of the package.
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
is something like `gnu-as' or `x' (for the X Window System). The
`README' should mention any `--enable-' and `--with-' options that the
package recognizes.
For packages that use the X Window System, `configure' can usually
find the X include and library files automatically, but if it doesn't,
you can use the `configure' options `--x-includes=DIR' and
`--x-libraries=DIR' to specify their locations.
Specifying the System Type
==========================
There may be some features `configure' can not figure out
automatically, but needs to determine by the type of host the package
will run on. Usually `configure' can figure that out, but if it prints
a message saying it can not guess the host type, give it the
`--host=TYPE' option. TYPE can either be a short name for the system
type, such as `sun4', or a canonical name with three fields:
CPU-COMPANY-SYSTEM
See the file `config.sub' for the possible values of each field. If
`config.sub' isn't included in this package, then this package doesn't
need to know the host type.
If you are building compiler tools for cross-compiling, you can also
use the `--target=TYPE' option to select the type of system they will
produce code for and the `--build=TYPE' option to select the type of
system on which you are compiling the package.
Sharing Defaults
================
If you want to set default values for `configure' scripts to share,
you can create a site shell script called `config.site' that gives
default values for variables like `CC', `cache_file', and `prefix'.
`configure' looks for `PREFIX/share/config.site' if it exists, then
`PREFIX/etc/config.site' if it exists. Or, you can set the
`CONFIG_SITE' environment variable to the location of the site script.
A warning: not all `configure' scripts look for a site script.
Operation Controls
==================
`configure' recognizes the following options to control how it
operates.
`--cache-file=FILE'
Use and save the results of the tests in FILE instead of
`./config.cache'. Set FILE to `/dev/null' to disable caching, for
debugging `configure'.
`--help'
Print a summary of the options to `configure', and exit.
`--quiet'
`--silent'
`-q'
Do not print messages saying which checks are being made.
`--srcdir=DIR'
Look for the package's source code in directory DIR. Usually
`configure' can determine that directory automatically.
`--version'
Print the version of Autoconf used to generate the `configure'
script, and exit.
`configure' also accepts some other, not widely useful, options.

@ -0,0 +1,22 @@
SUBDIRS = $(TOPSUBDIRS)
$(top_srcdir)/configure.in: configure.in.in $(top_srcdir)/subdirs
cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common configure.in ;
$(top_srcdir)/subdirs:
cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common subdirs
$(top_srcdir)/acinclude.m4: $(top_srcdir)/admin/acinclude.m4.in $(top_srcdir)/admin/libtool.m4.in
@cd $(top_srcdir) && cat admin/acinclude.m4.in admin/libtool.m4.in > acinclude.m4
MAINTAINERCLEANFILES = subdirs configure.in acinclude.m4 configure.files
package-messages:
cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common package-messages
$(MAKE) -C po merge
EXTRA_DIST = admin COPYING configure.in.in
dist-hook:
cd $(top_distdir) && perl admin/am_edit -padmin
cd $(top_distdir) && $(MAKE) -f admin/Makefile.common subdirs

@ -0,0 +1,10 @@
all:
@echo "This Makefile is only for the CVS repository"
@echo "This will be deleted before making the distribution"
@echo ""
$(MAKE) -f admin/Makefile.common cvs
dist:
$(MAKE) -f admin/Makefile.common dist
.SILENT:

16
NEWS

@ -0,0 +1,16 @@
----------------------------------
KSystemLog News
----------------------------------
Please see the news of KSystemLog online at :
http://localhost.localdomain/ksystemlog/index.php#news
Thank you.
For any information and/or improvements, do not hesitate to send a mail to :
Nicolas Ternisien <nicolas.ternisien@gmail.com>
KSystemLog Web site :
http://annivernet.free.fr/ksystemlog/

@ -0,0 +1,14 @@
----------------------------------
KSystemLog Readme
----------------------------------
Please see the official KSystemLog Web site online at :
http://localhost.localdomain/ksystemlog/
Thank you.
For any information and/or improvements, do not hesitate to send a mail to :
Nicolas Ternisien <nicolas.ternisien@gmail.com>
KSystemLog Web site :
http://annivernet.free.fr/ksystemlog/

15
TODO

@ -0,0 +1,15 @@
----------------------------------
KSystemLog TODO List
----------------------------------
Please see the changelog of KSystemLog online at :
http://annivernet.free.fr/ksystemlog/ideas.php
Thank you.
For any information and/or improvements, do not hesitate to send a mail to :
Nicolas Ternisien <nicolas.ternisien@gmail.com>
KSystemLog Web site :
http://annivernet.free.fr/ksystemlog/

File diff suppressed because it is too large Load Diff

12065
aclocal.m4 vendored

File diff suppressed because it is too large Load Diff

@ -0,0 +1,219 @@
/* config.h.in. Generated from configure.in by autoheader. */
/* Define if you have the CoreAudio API */
#undef HAVE_COREAUDIO
/* Define to 1 if you have the <crt_externs.h> header file. */
#undef HAVE_CRT_EXTERNS_H
/* Defines if your system has the crypt function */
#undef HAVE_CRYPT
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Define if you have libjpeg */
#undef HAVE_LIBJPEG
/* Define if you have libpng */
#undef HAVE_LIBPNG
/* Define if you have a working libpthread (will enable threaded code) */
#undef HAVE_LIBPTHREAD
/* Define if you have libz */
#undef HAVE_LIBZ
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
/* Define if your system needs _NSGetEnviron to set up the environment */
#undef HAVE_NSGETENVIRON
/* Define if you have the res_init function */
#undef HAVE_RES_INIT
/* Define if you have a STL implementation by SGI */
#undef HAVE_SGI_STL
/* Define to 1 if you have the `snprintf' function. */
#undef HAVE_SNPRINTF
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H
/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H
/* Define if you have strlcat */
#undef HAVE_STRLCAT
/* Define if you have the strlcat prototype */
#undef HAVE_STRLCAT_PROTO
/* Define if you have strlcpy */
#undef HAVE_STRLCPY
/* Define if you have the strlcpy prototype */
#undef HAVE_STRLCPY_PROTO
/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define to 1 if you have the `vsnprintf' function. */
#undef HAVE_VSNPRINTF
/* Suffix for lib directories */
#undef KDELIBSUFF
/* Define a safe value for MAXPATHLEN */
#undef KDEMAXPATHLEN
/* Name of package */
#undef PACKAGE
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
/* Define to the full name of this package. */
#undef PACKAGE_NAME
/* Define to the full name and version of this package. */
#undef PACKAGE_STRING
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
/* Define to the version of this package. */
#undef PACKAGE_VERSION
/* The size of a `char *', as computed by sizeof. */
#undef SIZEOF_CHAR_P
/* The size of a `int', as computed by sizeof. */
#undef SIZEOF_INT
/* The size of a `long', as computed by sizeof. */
#undef SIZEOF_LONG
/* The size of a `short', as computed by sizeof. */
#undef SIZEOF_SHORT
/* The size of a `size_t', as computed by sizeof. */
#undef SIZEOF_SIZE_T
/* The size of a `unsigned long', as computed by sizeof. */
#undef SIZEOF_UNSIGNED_LONG
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS
/* Version number of package */
#undef VERSION
/* Define to 1 if your processor stores words with the most significant byte
first (like Motorola and SPARC, unlike Intel and VAX). */
#undef WORDS_BIGENDIAN
/*
* jpeg.h needs HAVE_BOOLEAN, when the system uses boolean in system
* headers and I'm too lazy to write a configure test as long as only
* unixware is related
*/
#ifdef _UNIXWARE
#define HAVE_BOOLEAN
#endif
/*
* AIX defines FD_SET in terms of bzero, but fails to include <strings.h>
* that defines bzero.
*/
#if defined(_AIX)
#include <strings.h>
#endif
#if defined(HAVE_NSGETENVIRON) && defined(HAVE_CRT_EXTERNS_H)
# include <sys/time.h>
# include <crt_externs.h>
# define environ (*_NSGetEnviron())
#endif
#if !defined(HAVE_STRLCAT_PROTO)
#ifdef __cplusplus
extern "C" {
#endif
unsigned long strlcat(char*, const char*, unsigned long);
#ifdef __cplusplus
}
#endif
#endif
#if !defined(HAVE_STRLCPY_PROTO)
#ifdef __cplusplus
extern "C" {
#endif
unsigned long strlcpy(char*, const char*, unsigned long);
#ifdef __cplusplus
}
#endif
#endif
/*
* On HP-UX, the declaration of vsnprintf() is needed every time !
*/
#if !defined(HAVE_VSNPRINTF) || defined(hpux)
#if __STDC__
#include <stdarg.h>
#include <stdlib.h>
#else
#include <varargs.h>
#endif
#ifdef __cplusplus
extern "C"
#endif
int vsnprintf(char *str, size_t n, char const *fmt, va_list ap);
#ifdef __cplusplus
extern "C"
#endif
int snprintf(char *str, size_t n, char const *fmt, ...);
#endif
#if defined(__SVR4) && !defined(__svr4__)
#define __svr4__ 1
#endif
/* Compatibility define */
#undef ksize_t
/* Define the real type of socklen_t */
#undef socklen_t

@ -0,0 +1,2 @@
./admin/configure.in.min
configure.in.in

@ -0,0 +1,95 @@
dnl This file is part of the KDE libraries/packages
dnl Copyright (C) 2001 Stephan Kulow (coolo@kde.org)
dnl This file is free software; you can redistribute it and/or
dnl modify it under the terms of the GNU Library General Public
dnl License as published by the Free Software Foundation; either
dnl version 2 of the License, or (at your option) any later version.
dnl This library is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
dnl Library General Public License for more details.
dnl You should have received a copy of the GNU Library General Public License
dnl along with this library; see the file COPYING.LIB. If not, write to
dnl the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
dnl Boston, MA 02110-1301, USA.
# Original Author was Kalle@kde.org
# I lifted it in some mater. (Stephan Kulow)
# I used much code from Janos Farkas
dnl Process this file with autoconf to produce a configure script.
AC_INIT(acinclude.m4) dnl a source file from your sub dir
dnl This is so we can use kde-common
AC_CONFIG_AUX_DIR(admin)
dnl This ksh/zsh feature conflicts with `cd blah ; pwd`
unset CDPATH
dnl Checking host/target/build systems, for make, install etc.
AC_CANONICAL_SYSTEM
dnl Perform program name transformation
AC_ARG_PROGRAM
dnl Automake doc recommends to do this only here. (Janos)
AM_INIT_AUTOMAKE(ksystemlog, 0.1) dnl searches for some needed programs
KDE_SET_PREFIX
dnl generate the config header
AM_CONFIG_HEADER(config.h) dnl at the distribution this done
dnl Checks for programs.
AC_CHECK_COMPILERS
AC_ENABLE_SHARED(yes)
AC_ENABLE_STATIC(no)
KDE_PROG_LIBTOOL
dnl for NLS support. Call them in this order!
dnl WITH_NLS is for the po files
AM_KDE_WITH_NLS
KDE_USE_QT(3.2.0)
AC_PATH_KDE
#MIN_CONFIG(3.2.0)
dnl PACKAGE set before
AC_C_BIGENDIAN
AC_CHECK_KDEMAXPATHLEN
KDE_CREATE_SUBDIRSLIST
AC_CONFIG_FILES([ Makefile ])
AC_CONFIG_FILES([ ksystemlog/Makefile ])
AC_CONFIG_FILES([ ksystemlog/doc/Makefile ])
AC_CONFIG_FILES([ ksystemlog/doc/en/Makefile ])
AC_CONFIG_FILES([ ksystemlog/po/Makefile ])
AC_CONFIG_FILES([ ksystemlog/src/Makefile ])
AC_CONFIG_FILES([ ksystemlog/src/acpid/Makefile ])
AC_CONFIG_FILES([ ksystemlog/src/apache/Makefile ])
AC_CONFIG_FILES([ ksystemlog/src/bootauth/Makefile ])
AC_CONFIG_FILES([ ksystemlog/src/config/Makefile ])
AC_CONFIG_FILES([ ksystemlog/src/cron/Makefile ])
AC_CONFIG_FILES([ ksystemlog/src/cups/Makefile ])
AC_CONFIG_FILES([ ksystemlog/src/daemon/Makefile ])
AC_CONFIG_FILES([ ksystemlog/src/kernel/Makefile ])
AC_CONFIG_FILES([ ksystemlog/src/postfix/Makefile ])
AC_CONFIG_FILES([ ksystemlog/src/samba/Makefile ])
AC_CONFIG_FILES([ ksystemlog/src/system/Makefile ])
AC_CONFIG_FILES([ ksystemlog/src/xorg/Makefile ])
AC_OUTPUT
if test "$all_tests" = "bad"; then
if test ! "$cache_file" = "/dev/null"; then
echo ""
echo "Please remove the file $cache_file after changing your setup"
echo "so that configure will find the changes next time."
echo ""
fi
else
echo ""
echo "Good - your configure finished. Start make now"
echo ""
fi

@ -0,0 +1,6 @@
#MIN_CONFIG(3.2.0)
AM_INIT_AUTOMAKE(ksystemlog, 0.1)
AC_C_BIGENDIAN
AC_CHECK_KDEMAXPATHLEN

@ -0,0 +1,229 @@
<?xml version = '1.0'?>
<kdevelop>
<general>
<author>Nicolas Ternisien</author>
<email>nicolas.ternisien@gmail.com</email>
<version>0.3.2</version>
<projectmanagement>KDevKDEAutoProject</projectmanagement>
<primarylanguage>C++</primarylanguage>
<keywords>
<keyword>C++</keyword>
<keyword>Code</keyword>
<keyword>Qt</keyword>
<keyword>KDE</keyword>
</keywords>
<projectdirectory>.</projectdirectory>
<absoluteprojectpath>false</absoluteprojectpath>
<description/>
<ignoreparts>
<part>kdevfileview</part>
<part>kdevscripting</part>
<part>kdevfilter</part>
<part>kdevdoxygen</part>
<part>kdevbookmarks</part>
<part>kdevdistpart</part>
<part>kdevfilegroups</part>
<part>kdevctags2</part>
<part>kdevgrepview</part>
<part>kdevkonsoleview</part>
<part>kdevsnippet</part>
<part>kdevreplace</part>
<part>kdevpartexplorer</part>
</ignoreparts>
<versioncontrol/>
</general>
<kdevautoproject>
<general>
<activetarget>ksystemlog/src/ksystemlog</activetarget>
<useconfiguration>debug</useconfiguration>
</general>
<run>
<mainprogram>ksystemlog/src/ksystemlog</mainprogram>
<terminal>false</terminal>
<directoryradio>executable</directoryradio>
<runarguments>
<ksystemlog/>
</runarguments>
<customdirectory>/</customdirectory>
<programargs/>
<autocompile>true</autocompile>
<envvars/>
</run>
<make>
<envvars>
<envvar value="1" name="WANT_AUTOCONF_2_5" />
<envvar value="1" name="WANT_AUTOMAKE_1_6" />
</envvars>
<abortonerror>false</abortonerror>
<numberofjobs>1</numberofjobs>
<dontact>false</dontact>
<makebin/>
<prio>0</prio>
</make>
<configurations>
<optimized>
<builddir>optimized</builddir>
<ccompiler>kdevgccoptions</ccompiler>
<cxxcompiler>kdevgppoptions</cxxcompiler>
<f77compiler>kdevg77options</f77compiler>
<cxxflags>-O2 -g0</cxxflags>
</optimized>
<debug>
<configargs>--enable-debug=full</configargs>
<builddir>debug</builddir>
<ccompiler>kdevgccoptions</ccompiler>
<cxxcompiler>kdevgppoptions</cxxcompiler>
<f77compiler>kdevg77options</f77compiler>
<cxxflags>-O0 -g3</cxxflags>
<envvars/>
</debug>
</configurations>
</kdevautoproject>
<kdevfileview>
<groups>
<group pattern="*.cpp;*.cxx;*.h" name="Sources" />
<group pattern="*.ui" name="User Interface" />
<group pattern="*.png" name="Icons" />
<group pattern="*.po;*.ts" name="Translations" />
<group pattern="*" name="Others" />
<hidenonprojectfiles>false</hidenonprojectfiles>
<hidenonlocation>false</hidenonlocation>
</groups>
<tree>
<hidenonprojectfiles>false</hidenonprojectfiles>
<hidepatterns>*.o,*.lo,CVS</hidepatterns>
<showvcsfields>false</showvcsfields>
</tree>
</kdevfileview>
<kdevdoctreeview>
<ignoretocs>
<toc>ada</toc>
<toc>ada_bugs_gcc</toc>
<toc>bash</toc>
<toc>bash_bugs</toc>
<toc>clanlib</toc>
<toc>w3c-dom-level2-html</toc>
<toc>fortran_bugs_gcc</toc>
<toc>gnome1</toc>
<toc>gnustep</toc>
<toc>gtk</toc>
<toc>gtk_bugs</toc>
<toc>haskell</toc>
<toc>haskell_bugs_ghc</toc>
<toc>java_bugs_gcc</toc>
<toc>java_bugs_sun</toc>
<toc>pascal_bugs_fp</toc>
<toc>php</toc>
<toc>php_bugs</toc>
<toc>perl</toc>
<toc>perl_bugs</toc>
<toc>python</toc>
<toc>python_bugs</toc>
<toc>ruby</toc>
<toc>ruby_bugs</toc>
<toc>sdl</toc>
<toc>w3c-svg</toc>
<toc>sw</toc>
<toc>w3c-uaag10</toc>
<toc>wxwidgets_bugs</toc>
</ignoretocs>
<ignoreqt_xml>
<toc>qmake User Guide</toc>
</ignoreqt_xml>
</kdevdoctreeview>
<kdevdebugger>
<general>
<dbgshell>libtool</dbgshell>
<programargs/>
<gdbpath/>
<breakonloadinglibs>true</breakonloadinglibs>
<separatetty>false</separatetty>
<floatingtoolbar>false</floatingtoolbar>
<runappinappdirectory>true</runappinappdirectory>
<configGdbScript/>
<runShellScript/>
<runGdbScript/>
</general>
<display>
<staticmembers>false</staticmembers>
<demanglenames>true</demanglenames>
<outputradix>10</outputradix>
</display>
</kdevdebugger>
<kdevfilecreate>
<filetypes/>
<useglobaltypes>
<type ext="ui" />
<type ext="cpp" />
<type ext="h" />
</useglobaltypes>
</kdevfilecreate>
<kdevcvs>
<cvsoptions>-f</cvsoptions>
<commitoptions/>
<updateoptions>-dP</updateoptions>
<addoptions/>
<removeoptions>-f</removeoptions>
<diffoptions>-u3 -p</diffoptions>
<logoptions/>
<rshoptions/>
</kdevcvs>
<cppsupportpart>
<codecompletion/>
<filetemplates>
<choosefiles>false</choosefiles>
<interfaceURL/>
<implementationURL/>
<interfacesuffix>.h</interfacesuffix>
<implementationsuffix>.cpp</implementationsuffix>
<lowercasefilenames>true</lowercasefilenames>
</filetemplates>
</cppsupportpart>
<kdevclassview>
<folderhierarchy>true</folderhierarchy>
<depthoffolders>2</depthoffolders>
</kdevclassview>
<kdevdocumentation>
<projectdoc>
<docsystem>Collection de documentation Doxygen</docsystem>
<docurl>ksystemlog.tag</docurl>
<usermanualurl/>
</projectdoc>
</kdevdocumentation>
<substmap>
<APPNAME>ksystemlog</APPNAME>
<APPNAMELC>ksystemlog</APPNAMELC>
<APPNAMESC>Ksystemlog</APPNAMESC>
<APPNAMEUC>KSYSTEMLOG</APPNAMEUC>
<AUTHOR>Nicolas Ternisien</AUTHOR>
<EMAIL>nicolast@libertysurf.fr</EMAIL>
<LICENSE>GPL</LICENSE>
<LICENSEFILE>COPYING</LICENSEFILE>
<VERSION>0.1</VERSION>
<YEAR>2005</YEAR>
<dest>/mnt/boulot/devel/ksystemlog</dest>
</substmap>
<kdevcppsupport>
<references/>
<codecompletion>
<includeGlobalFunctions>true</includeGlobalFunctions>
<includeTypes>true</includeTypes>
<includeEnums>true</includeEnums>
<includeTypedefs>false</includeTypedefs>
<automaticCodeCompletion>true</automaticCodeCompletion>
<automaticArgumentsHint>true</automaticArgumentsHint>
<automaticHeaderCompletion>true</automaticHeaderCompletion>
<codeCompletionDelay>250</codeCompletionDelay>
<argumentsHintDelay>400</argumentsHintDelay>
<headerCompletionDelay>250</headerCompletionDelay>
</codecompletion>
<creategettersetter>
<prefixGet/>
<prefixSet>set</prefixSet>
<prefixVariable>m_,_</prefixVariable>
<parameterName>theValue</parameterName>
<inlineGet>true</inlineGet>
<inlineSet>true</inlineSet>
</creategettersetter>
</kdevcppsupport>
</kdevelop>

Binary file not shown.

@ -0,0 +1,139 @@
<?xml version = '1.0' encoding = 'UTF-8'?>
<!DOCTYPE KDevPrjSession>
<KDevPrjSession>
<DocsAndViews NumberOfDocuments="40" >
<Doc0 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/detailDialog.cpp" >
<View0 Type="Source" />
</Doc0>
<Doc1 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/detailDialog.h" >
<View0 line="47" Type="Source" />
</Doc1>
<Doc2 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/globals.h" >
<View0 line="33" Type="Source" />
</Doc2>
<Doc3 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/globals.cpp" >
<View0 line="0" Type="Source" />
</Doc3>
<Doc4 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/ksystemlog.cpp" >
<View0 line="117" Type="Source" />
</Doc4>
<Doc5 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/ksystemlog.h" >
<View0 line="157" Type="Source" />
</Doc5>
<Doc6 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/Makefile.am" >
<View0 line="52" Type="Source" />
</Doc6>
<Doc7 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/xorg/xorgReader.cpp" >
<View0 line="69" Type="Source" />
</Doc7>
<Doc8 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/xorg/xorgReader.h" >
<View0 line="41" Type="Source" />
</Doc8>
<Doc9 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/system/systemReader.cpp" >
<View0 line="24" Type="Source" />
</Doc9>
<Doc10 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/samba/sambaReader.cpp" >
<View0 line="0" Type="Source" />
</Doc10>
<Doc11 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/postfix/postfixOptions.cpp" >
<View0 line="41" Type="Source" />
</Doc11>
<Doc12 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/cups/cupsReader.cpp" >
<View0 line="34" Type="Source" />
</Doc12>
<Doc13 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/cups/cupsAccessReader.cpp" >
<View0 line="73" Type="Source" />
</Doc13>
<Doc14 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/cron/cronReader.cpp" >
<View0 line="33" Type="Source" />
</Doc14>
<Doc15 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/bootauth/bootAuthenticationOptions.cpp" >
<View0 line="113" Type="Source" />
</Doc15>
<Doc16 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/apache/apacheReader.cpp" >
<View0 line="116" Type="Source" />
</Doc16>
<Doc17 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/acpid/acpidReader.cpp" >
<View0 line="29" Type="Source" />
</Doc17>
<Doc18 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/view.h" >
<View0 line="61" Type="Source" />
</Doc18>
<Doc19 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/view.cpp" >
<View0 line="33" Type="Source" />
</Doc19>
<Doc20 NumberOfViews="1" URL="file:///usr/share/doc/HTML/en/kdelibs-apidocs/kdeui/html/classKListViewItem.html" >
<View0 Type="Documentation" />
</Doc20>
<Doc21 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/apache/apacheReader.h" >
<View0 line="0" Type="Source" />
</Doc21>
<Doc22 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/web/changelog.php" >
<View0 line="42" Type="Source" />
</Doc22>
<Doc23 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/web/ideas.php" >
<View0 line="30" Type="Source" />
</Doc23>
<Doc24 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/itemFactory.h" >
<View0 line="76" Type="Source" />
</Doc24>
<Doc25 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/itemFactory.cpp" >
<View0 line="494" Type="Source" />
</Doc25>
<Doc26 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/apache/apacheAccessReader.cpp" >
<View0 line="94" Type="Source" />
</Doc26>
<Doc27 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/parsingHelper.cpp" >
<View0 line="86" Type="Source" />
</Doc27>
<Doc28 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/slotLogAction.cpp" >
<View0 line="52" Type="Source" />
</Doc28>
<Doc29 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/main.cpp" >
<View0 line="0" Type="Source" />
</Doc29>
<Doc30 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/options.h" >
<View0 line="0" Type="Source" />
</Doc30>
<Doc31 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/viewToolTip.h" >
<View0 line="0" Type="Source" />
</Doc31>
<Doc32 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/specificFileList.h" >
<View0 line="0" Type="Source" />
</Doc32>
<Doc33 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/specificFileList.cpp" >
<View0 line="0" Type="Source" />
</Doc33>
<Doc34 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/logViewColumn.h" >
<View0 line="21" Type="Source" />
</Doc34>
<Doc35 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/logMode.h" >
<View0 line="63" Type="Source" />
</Doc35>
<Doc36 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/logManager.h" >
<View0 line="183" Type="Source" />
</Doc36>
<Doc37 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/logListItem.h" >
<View0 line="8" Type="Source" />
</Doc37>
<Doc38 NumberOfViews="1" URL="file:///mnt/boulot/devel/playground/sysadmin/ksystemlog/src/logManager.cpp" >
<View0 line="246" Type="Source" />
</Doc38>
<Doc39 NumberOfViews="1" URL="file:///usr/share/doc/HTML/en/kdelibs-apidocs/kdeui/html/classKAction.html" >
<View0 Type="Documentation" />
</Doc39>
</DocsAndViews>
<pluginList>
<kdevdebugger>
<breakpointList>
<breakpoint0 location="/mnt/boulot/devel/ksystemlog/src/samba/sambaReader.cpp:115" type="1" condition="" enabled="1" />
</breakpointList>
</kdevdebugger>
<kdevvalgrind>
<executable path="" params="" />
<valgrind path="/usr/bin/valgrind" params="--tool=memcheck --leak-check=yes" />
<calltree path="calltree" params=" --trace-children=yes" />
<kcachegrind path="/usr/bin/kcachegrind" />
</kdevvalgrind>
</pluginList>
</KDevPrjSession>

@ -0,0 +1,3 @@
Nicolas Ternisien <nicolas.ternisien@gmail.com>
Please see http://annivernet.free.fr/ksystemlog/ for more informations.

@ -0,0 +1,340 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 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.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, 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 or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
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 give any other recipients of the Program a copy of this License
along with the Program.
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 Program or any portion
of it, thus forming a work based on the Program, 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) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
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 Program, 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 Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) 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; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, 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 executable. However, as a
special exception, the source code 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.
If distribution of executable or 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 counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program 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.
5. 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 Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program 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 to
this License.
7. 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 Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program 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 Program.
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.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program 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.
9. The Free Software Foundation may publish revised and/or new versions
of the 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 Program
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 Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, 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
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "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 PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. 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 PROGRAM 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 PROGRAM (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 PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), 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 Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. 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 program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, 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.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.

@ -0,0 +1,16 @@
----------------------------------
KSystemLog Changelog
----------------------------------
Please see the changelog of KSystemLog online at :
http://annivernet.free.fr/ksystemlog/changelog.php
Thank you.
For any information and/or improvements, do not hesitate to send a mail to :
Nicolas Ternisien <nicolas.ternisien@gmail.com>
KSystemLog Web site :
http://annivernet.free.fr/ksystemlog/

@ -0,0 +1,181 @@
Specific Trouble case with KSystemLog
===================================================
I hope that you will don't have any problems to compile and test KSystemLog.
If you successfully compile KSystemLog but you have strange problems (with the
tool bars, please manually copy src/ksystemlogui.rc in the $HOME/.kde/share/apps/ksystemlog
folder (create it if it does not exist).
If you still have problems, do not hesitate do email me ;-)
Nicolas Ternisien <nicolas.ternisien@gmail.com>
For more informations, please also see the KsystemLog Web site :
http://annivernet.free.fr/ksystemlog/
Basic Installation
===================================================
These are generic installation instructions.
The `configure' shell script attempts to guess correct values for
various system-dependent variables used during compilation. It uses
those values to create a `Makefile' in each directory of the package.
It may also create one or more `.h' files containing system-dependent
definitions. Finally, it creates a shell script `config.status' that
you can run in the future to recreate the current configuration, a file
`config.cache' that saves the results of its tests to speed up
reconfiguring, and a file `config.log' containing compiler output
(useful mainly for debugging `configure').
If you need to do unusual things to compile the package, please try
to figure out how `configure' could check whether to do them, and mail
diffs or instructions to the address given in the `README' so they can
be considered for the next release. If at some point `config.cache'
contains results you don't want to keep, you may remove or edit it.
The file `configure.in' is used to create `configure' by a program
called `autoconf'. You only need `configure.in' if you want to change
it or regenerate `configure' using a newer version of `autoconf'.
The simplest way to compile this package is:
1. `cd' to the directory containing the package's source code and type
`./configure' to configure the package for your system. If you're
using `csh' on an old version of System V, you might need to type
`sh ./configure' instead to prevent `csh' from trying to execute
`configure' itself.
Running `configure' takes a while. While running, it prints some
messages telling which features it is checking for.
2. Type `make' to compile the package.
3. Type `make install' to install the programs and any data files and
documentation.
4. You can remove the program binaries and object files from the
source code directory by typing `make clean'.
Compilers and Options
=====================
Some systems require unusual options for compilation or linking that
the `configure' script does not know about. You can give `configure'
initial values for variables by setting them in the environment. Using
a Bourne-compatible shell, you can do that on the command line like
this:
CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
Or on systems that have the `env' program, you can do it like this:
env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
Compiling For Multiple Architectures
====================================
You can compile the package for more than one kind of computer at the
same time, by placing the object files for each architecture in their
own directory. To do this, you must use a version of `make' that
supports the `VPATH' variable, such as GNU `make'. `cd' to the
directory where you want the object files and executables to go and run
the `configure' script. `configure' automatically checks for the
source code in the directory that `configure' is in and in `..'.
If you have to use a `make' that does not supports the `VPATH'
variable, you have to compile the package for one architecture at a time
in the source code directory. After you have installed the package for
one architecture, use `make distclean' before reconfiguring for another
architecture.
Installation Names
==================
By default, `make install' will install the package's files in
`/usr/local/bin', `/usr/local/man', etc. You can specify an
installation prefix other than `/usr/local' by giving `configure' the
option `--prefix=PATH'.
You can specify separate installation prefixes for
architecture-specific files and architecture-independent files. If you
give `configure' the option `--exec-prefix=PATH', the package will use
PATH as the prefix for installing programs and libraries.
Documentation and other data files will still use the regular prefix.
If the package supports it, you can cause programs to be installed
with an extra prefix or suffix on their names by giving `configure' the
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
Optional Features
=================
Some packages pay attention to `--enable-FEATURE' options to
`configure', where FEATURE indicates an optional part of the package.
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
is something like `gnu-as' or `x' (for the X Window System). The
`README' should mention any `--enable-' and `--with-' options that the
package recognizes.
For packages that use the X Window System, `configure' can usually
find the X include and library files automatically, but if it doesn't,
you can use the `configure' options `--x-includes=DIR' and
`--x-libraries=DIR' to specify their locations.
Specifying the System Type
==========================
There may be some features `configure' can not figure out
automatically, but needs to determine by the type of host the package
will run on. Usually `configure' can figure that out, but if it prints
a message saying it can not guess the host type, give it the
`--host=TYPE' option. TYPE can either be a short name for the system
type, such as `sun4', or a canonical name with three fields:
CPU-COMPANY-SYSTEM
See the file `config.sub' for the possible values of each field. If
`config.sub' isn't included in this package, then this package doesn't
need to know the host type.
If you are building compiler tools for cross-compiling, you can also
use the `--target=TYPE' option to select the type of system they will
produce code for and the `--build=TYPE' option to select the type of
system on which you are compiling the package.
Sharing Defaults
================
If you want to set default values for `configure' scripts to share,
you can create a site shell script called `config.site' that gives
default values for variables like `CC', `cache_file', and `prefix'.
`configure' looks for `PREFIX/share/config.site' if it exists, then
`PREFIX/etc/config.site' if it exists. Or, you can set the
`CONFIG_SITE' environment variable to the location of the site script.
A warning: not all `configure' scripts look for a site script.
Operation Controls
==================
`configure' recognizes the following options to control how it
operates.
`--cache-file=FILE'
Use and save the results of the tests in FILE instead of
`./config.cache'. Set FILE to `/dev/null' to disable caching, for
debugging `configure'.
`--help'
Print a summary of the options to `configure', and exit.
`--quiet'
`--silent'
`-q'
Do not print messages saying which checks are being made.
`--srcdir=DIR'
Look for the package's source code in directory DIR. Usually
`configure' can determine that directory automatically.
`--version'
Print the version of Autoconf used to generate the `configure'
script, and exit.
`configure' also accepts some other, not widely useful, options.

@ -0,0 +1 @@
SUBDIRS = src

@ -0,0 +1,16 @@
----------------------------------
KSystemLog News
----------------------------------
Please see the news of KSystemLog online at :
http://localhost.localdomain/ksystemlog/index.php#news
Thank you.
For any information and/or improvements, do not hesitate to send a mail to :
Nicolas Ternisien <nicolas.ternisien@gmail.com>
KSystemLog Web site :
http://annivernet.free.fr/ksystemlog/

@ -0,0 +1,14 @@
----------------------------------
KSystemLog Readme
----------------------------------
Please see the official KSystemLog Web site online at :
http://localhost.localdomain/ksystemlog/
Thank you.
For any information and/or improvements, do not hesitate to send a mail to :
Nicolas Ternisien <nicolas.ternisien@gmail.com>
KSystemLog Web site :
http://annivernet.free.fr/ksystemlog/

@ -0,0 +1,15 @@
----------------------------------
KSystemLog TODO List
----------------------------------
Please see the changelog of KSystemLog online at :
http://annivernet.free.fr/ksystemlog/ideas.php
Thank you.
For any information and/or improvements, do not hesitate to send a mail to :
Nicolas Ternisien <nicolas.ternisien@gmail.com>
KSystemLog Web site :
http://annivernet.free.fr/ksystemlog/

@ -0,0 +1,646 @@
# Makefile.in generated by automake 1.7.9 from Makefile.am.
# KDE tags expanded automatically by am_edit - $Revision: 1.7 $
# ksystemlog/doc/Makefile. Generated from Makefile.in by config.pl.
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
# Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
# the SUBDIRS is filled automatically by am_edit. If files are
# in this directory they are installed into the english dir
srcdir = .
top_srcdir = ../..
VPATH = .
pkgdatadir = $(datadir)/ksystemlog
pkglibdir = $(libdir)/ksystemlog
pkgincludedir = $(includedir)/ksystemlog
top_builddir = ../..
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
INSTALL = /usr/bin/install -c -p
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = i686-pc-linux-gnu
host_triplet = i686-pc-linux-gnu
target_triplet = i686-pc-linux-gnu
ACLOCAL = ${SHELL} /root/ksystemlog/ksystemlog-0.3.2/admin/missing --run aclocal-1.7
AMDEP_FALSE = #
AMDEP_TRUE =
AMTAR = ${SHELL} /root/ksystemlog/ksystemlog-0.3.2/admin/missing --run tar
AR = ar
ARTSCCONFIG = /usr/bin/artsc-config
AUTOCONF = $(SHELL) $(top_srcdir)/admin/cvs.sh configure || touch configure
AUTODIRS =
AUTOHEADER = ${SHELL} /root/ksystemlog/ksystemlog-0.3.2/admin/missing --run autoheader
AUTOMAKE = ${SHELL} /root/ksystemlog/ksystemlog-0.3.2/admin/missing --run automake-1.7
AWK = gawk
CC = gcc
CCDEPMODE = depmode=gcc3
CFLAGS = -ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -O2 -Wformat-security -Wmissing-format-attribute
CONF_FILES = $(top_srcdir)/./admin/configure.in.min $(top_srcdir)/configure.in.in
CPP = gcc -E
CPPFLAGS = -DQT_THREAD_SUPPORT -D_REENTRANT
CXX = g++
CXXCPP = g++ -E
CXXDEPMODE = depmode=gcc3
CXXFLAGS = -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common
CYGPATH_W = echo
DCOPIDL = /usr/bin/dcopidl
DCOPIDL2CPP = /usr/bin/dcopidl2cpp
DCOPIDLNG = /usr/bin/dcopidlng
DCOP_DEPENDENCIES = $(DCOPIDL) $(DCOPIDLNG)
DEFS = -DHAVE_CONFIG_H
DEPDIR = .deps
ECHO = echo
ECHO_C =
ECHO_N = -n
ECHO_T =
EGREP = grep -E
EXEEXT =
F77 =
FFLAGS =
FRAMEWORK_COREAUDIO =
GMSGFMT = /usr/bin/msgfmt
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_PROGRAM = ${INSTALL} $(INSTALL_STRIP_FLAG)
INSTALL_SCRIPT = ${INSTALL}
INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s
KCFG_DEPENDENCIES = $(KCONFIG_COMPILER)
KCONFIG_COMPILER = /usr/bin/kconfig_compiler
KDECONFIG = /usr/bin/kde-config
KDE_EXTRA_RPATH =
KDE_INCLUDES = -I/usr/include/kde
KDE_LDFLAGS = -L/usr/lib
KDE_MT_LDFLAGS =
KDE_MT_LIBS = -lpthread
KDE_NO_UNDEFINED = -Wl,--no-undefined -Wl,--allow-shlib-undefined
KDE_PLUGIN = -avoid-version -module -no-undefined $(KDE_NO_UNDEFINED) $(KDE_RPATH) $(KDE_MT_LDFLAGS)
KDE_RPATH = -R $(kde_libraries) -R $(qt_libraries) -R $(x_libraries)
KDE_USE_CLOSURE_FALSE =
KDE_USE_CLOSURE_TRUE = #
KDE_USE_FINAL_FALSE =
KDE_USE_FINAL_TRUE = #
KDE_USE_NMCHECK_FALSE =
KDE_USE_NMCHECK_TRUE = #
KDE_XSL_STYLESHEET = /usr/share/apps/ksgmltools2/customization/kde-chunk.xsl
LDFLAGS =
LIBCOMPAT =
LIBCRYPT = -lcrypt
LIBDL = -ldl
LIBJPEG = -ljpeg
LIBOBJS =
LIBPNG = -lpng -lz -lm
LIBPTHREAD = -lpthread
LIBRESOLV = -lresolv
LIBS =
LIBSM = -lSM -lICE
LIBSOCKET =
LIBTOOL = $(SHELL) $(top_builddir)/libtool --silent
LIBUCB =
LIBUTIL = -lutil
LIBZ = -lz
LIB_KAB = -lkab
LIB_KABC = -lkabc
LIB_KDECORE = -lkdecore
LIB_KDEPIM = -lkdepim
LIB_KDEPRINT = -lkdeprint
LIB_KDEUI = -lkdeui
LIB_KFILE = -lkio
LIB_KFM =
LIB_KHTML = -lkhtml
LIB_KIO = -lkio
LIB_KPARTS = -lkparts
LIB_KSPELL = -lkspell
LIB_KSYCOCA = -lkio
LIB_KUTILS = -lkutils
LIB_POLL =
LIB_QPE =
LIB_QT = -lqt-mt $(LIBZ) $(LIBPNG) -lXext $(LIB_X11) $(LIBSM) -lpthread
LIB_SMB = -lsmb
LIB_X11 = -lX11 $(LIBSOCKET)
LIB_XEXT = -lXext
LIB_XRENDER =
LN_S = ln -s
LTLIBOBJS =
MAKEINFO = ${SHELL} /root/ksystemlog/ksystemlog-0.3.2/admin/missing --run makeinfo
MCOPIDL = /usr/bin/mcopidl
MEINPROC = /usr/bin/meinproc
MOC = /usr/share/qt3/bin/moc
MSGFMT = /usr/bin/msgfmt
NOOPT_CFLAGS = -O0
NOOPT_CXXFLAGS = -O0
OBJEXT = o
PACKAGE = ksystemlog
PACKAGE_BUGREPORT =
PACKAGE_NAME =
PACKAGE_STRING =
PACKAGE_TARNAME =
PACKAGE_VERSION =
PATH_SEPARATOR = :
PERL = /usr/bin/perl
QTE_NORTTI =
QT_INCLUDES = -I/usr/share/qt3/include
QT_LDFLAGS = -L/usr/share/qt3/lib
RANLIB = ranlib
SET_MAKE =
SHELL = /bin/sh
STRIP = strip
TOPSUBDIRS = ksystemlog
UIC = /usr/share/qt3/bin/uic -L $(kde_widgetdir) -nounload
UIC_TR = tr2i18n
USER_INCLUDES =
USER_LDFLAGS =
USE_EXCEPTIONS = -fexceptions
USE_RTTI =
USE_THREADS =
VERSION = 0.1
WOVERLOADED_VIRTUAL =
XGETTEXT = /usr/bin/xgettext
XMLLINT = /usr/bin/xmllint
X_EXTRA_LIBS =
X_INCLUDES = -I.
X_LDFLAGS = -L/usr/lib
X_PRE_LIBS =
X_RPATH = -R $(x_libraries)
ac_ct_AR = ar
ac_ct_CC = gcc
ac_ct_CXX = g++
ac_ct_F77 =
ac_ct_RANLIB = ranlib
ac_ct_STRIP = strip
all_includes = -I/usr/include/kde -I/usr/share/qt3/include -I.
all_libraries = -L/usr/lib -L/usr/share/qt3/lib
am__fastdepCC_FALSE = #
am__fastdepCC_TRUE =
am__fastdepCXX_FALSE = #
am__fastdepCXX_TRUE =
am__include = include
am__leading_dot = .
am__quote =
bindir = ${exec_prefix}/bin
build = i686-pc-linux-gnu
build_alias =
build_cpu = i686
build_os = linux-gnu
build_vendor = pc
datadir = ${prefix}/share
exec_prefix = ${prefix}
host = i686-pc-linux-gnu
host_alias =
host_cpu = i686
host_os = linux-gnu
host_vendor = pc
include_ARTS_FALSE = #
include_ARTS_TRUE =
includedir = ${prefix}/include
infodir = ${prefix}/info
install_sh = /root/ksystemlog/ksystemlog-0.3.2/admin/install-sh
kde_appsdir = ${datadir}/applnk
kde_bindir = ${exec_prefix}/bin
kde_confdir = ${datadir}/config
kde_datadir = ${datadir}/apps
kde_htmldir = ${datadir}/doc/HTML
kde_icondir = ${datadir}/icons
kde_includes = /usr/include/kde
kde_kcfgdir = ${datadir}/config.kcfg
kde_libraries = /usr/lib
kde_libs_htmldir = /usr/share/doc/kde/HTML
kde_libs_prefix = /usr
kde_locale = ${datadir}/locale
kde_mimedir = ${datadir}/mimelnk
kde_moduledir = ${libdir}/kde3
kde_qtver = 3
kde_servicesdir = ${datadir}/services
kde_servicetypesdir = ${datadir}/servicetypes
kde_sounddir = ${datadir}/sounds
kde_styledir = ${libdir}/kde3/plugins/styles
kde_templatesdir = ${datadir}/templates
kde_wallpaperdir = ${datadir}/wallpapers
kde_widgetdir = /usr/lib/kde3/plugins/designer
kdeinitdir = $(kde_moduledir)
libdir = ${exec_prefix}/lib
libexecdir = ${exec_prefix}/libexec
localstatedir = ${prefix}/var
mandir = ${prefix}/man
oldincludedir = /usr/include
prefix = /usr
program_transform_name = s,x,x,
qt_includes = /usr/share/qt3/include
qt_libraries = /usr/share/qt3/lib
sbindir = ${exec_prefix}/sbin
sharedstatedir = ${prefix}/com
sysconfdir = ${prefix}/etc
target = i686-pc-linux-gnu
target_alias =
target_cpu = i686
target_os = linux-gnu
target_vendor = pc
x_includes = .
x_libraries = /usr/lib
xdg_appsdir = ${datadir}/applications/kde
xdg_directorydir = ${datadir}/desktop-directories
xdg_menudir = ${sysconfdir}/xdg/menus
KDE_LANG = en
KDE_DOCS = ksystemlog
#>- SUBDIRS = $(AUTODIRS)
#>+ 1
SUBDIRS =. en
subdir = ksystemlog/doc
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/admin/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
DIST_SOURCES =
#>- RECURSIVE_TARGETS = info-recursive dvi-recursive pdf-recursive \
#>- ps-recursive install-info-recursive uninstall-info-recursive \
#>- all-recursive install-data-recursive install-exec-recursive \
#>- installdirs-recursive install-recursive uninstall-recursive \
#>- check-recursive installcheck-recursive
#>+ 5
RECURSIVE_TARGETS = info-recursive dvi-recursive pdf-recursive \
ps-recursive install-info-recursive uninstall-info-recursive \
all-recursive install-data-recursive install-exec-recursive \
installdirs-recursive install-recursive uninstall-recursive \
check-recursive installcheck-recursive nmcheck-recursive bcheck-recursive
DIST_COMMON = $(srcdir)/Makefile.in Makefile.am
DIST_SUBDIRS = $(SUBDIRS)
#>- all: all-recursive
#>+ 1
all: docs-am all-recursive
.SUFFIXES:
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
#>- cd $(top_srcdir) && \
#>- $(AUTOMAKE) --gnu ksystemlog/doc/Makefile
#>+ 3
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu ksystemlog/doc/Makefile
cd $(top_srcdir) && perl admin/am_edit ksystemlog/doc/Makefile.in
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
distclean-libtool:
-rm -f libtool
uninstall-info-am:
# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.
# To change the values of `make' variables: instead of editing Makefiles,
# (1) if the variable is set in `config.status', edit `config.status'
# (which will cause the Makefiles to be regenerated when you run `make');
# (2) otherwise, pass the desired values on the `make' command line.
$(RECURSIVE_TARGETS):
@set fnord $$MAKEFLAGS; amf=$$2; \
dot_seen=no; \
target=`echo $@ | sed s/-recursive//`; \
list='$(SUBDIRS)'; for subdir in $$list; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
dot_seen=yes; \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done; \
if test "$$dot_seen" = "no"; then \
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
fi; test -z "$$fail"
mostlyclean-recursive clean-recursive distclean-recursive \
maintainer-clean-recursive:
@set fnord $$MAKEFLAGS; amf=$$2; \
dot_seen=no; \
case "$@" in \
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
*) list='$(SUBDIRS)' ;; \
esac; \
rev=''; for subdir in $$list; do \
if test "$$subdir" = "."; then :; else \
rev="$$subdir $$rev"; \
fi; \
done; \
rev="$$rev ."; \
target=`echo $@ | sed s/-recursive//`; \
for subdir in $$rev; do \
echo "Making $$target in $$subdir"; \
if test "$$subdir" = "."; then \
local_target="$$target-am"; \
else \
local_target="$$target"; \
fi; \
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$$fail"
tags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
done
ctags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
done
ETAGS = etags
ETAGSFLAGS =
CTAGS = ctags
CTAGSFLAGS =
tags: TAGS
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
mkid -fID $$unique
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
tags=; \
here=`pwd`; \
if (etags --etags-include --version) >/dev/null 2>&1; then \
include_option=--etags-include; \
else \
include_option=--include; \
fi; \
list='$(SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
test -f $$subdir/TAGS && \
tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
fi; \
done; \
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
test -z "$(ETAGS_ARGS)$$tags$$unique" \
|| $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$tags $$unique
ctags: CTAGS
CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | \
$(AWK) ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
test -z "$(CTAGS_ARGS)$$tags$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$tags $$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& cd $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) $$here
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
#>- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
#>+ 1
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) $(KDE_DIST)
top_distdir = ../..
distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
distdir: $(DISTFILES)
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
list='$(DISTFILES)'; for file in $$list; do \
case $$file in \
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
esac; \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
dir="/$$dir"; \
$(mkinstalldirs) "$(distdir)$$dir"; \
else \
dir=''; \
fi; \
if test -d $$d/$$file; then \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
fi; \
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
else \
test -f $(distdir)/$$file \
|| cp -p $$d/$$file $(distdir)/$$file \
|| exit 1; \
fi; \
done
list='$(SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
test -d $(distdir)/$$subdir \
|| mkdir $(distdir)/$$subdir \
|| exit 1; \
(cd $$subdir && \
$(MAKE) $(AM_MAKEFLAGS) \
top_distdir="$(top_distdir)" \
distdir=../$(distdir)/$$subdir \
distdir) \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-recursive
all-am: Makefile
installdirs: installdirs-recursive
installdirs-am:
install: install-recursive
install-exec: install-exec-recursive
install-data: install-data-recursive
uninstall: uninstall-recursive
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-recursive
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
clean-generic:
distclean-generic:
-rm -f $(CONFIG_CLEAN_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
#>- clean: clean-recursive
#>+ 1
clean: kde-rpo-clean clean-recursive
#>- clean-am: clean-generic clean-libtool mostlyclean-am
#>+ 1
clean-am: clean-bcheck clean-generic clean-libtool mostlyclean-am
distclean: distclean-recursive
-rm -f Makefile
distclean-am: clean-am distclean-generic distclean-libtool \
distclean-tags
dvi: dvi-recursive
dvi-am:
info: info-recursive
info-am:
install-data-am:
install-exec-am:
install-info: install-info-recursive
install-man:
installcheck-am:
maintainer-clean: maintainer-clean-recursive
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-recursive
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
pdf: pdf-recursive
pdf-am:
ps: ps-recursive
ps-am:
uninstall-am: uninstall-info-am
uninstall-info: uninstall-info-recursive
.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am clean \
clean-generic clean-libtool clean-recursive ctags \
ctags-recursive distclean distclean-generic distclean-libtool \
distclean-recursive distclean-tags distdir dvi dvi-am \
dvi-recursive info info-am info-recursive install install-am \
install-data install-data-am install-data-recursive \
install-exec install-exec-am install-exec-recursive \
install-info install-info-am install-info-recursive install-man \
install-recursive install-strip installcheck installcheck-am \
installdirs installdirs-am installdirs-recursive \
maintainer-clean maintainer-clean-generic \
maintainer-clean-recursive mostlyclean mostlyclean-generic \
mostlyclean-libtool mostlyclean-recursive pdf pdf-am \
pdf-recursive ps ps-am ps-recursive tags tags-recursive \
uninstall uninstall-am uninstall-info-am \
uninstall-info-recursive uninstall-recursive
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
#>+ 2
KDE_DIST=Makefile.in
#>+ 2
docs-am:
#>+ 6
force-reedit:
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu ksystemlog/doc/Makefile
cd $(top_srcdir) && perl admin/am_edit ksystemlog/doc/Makefile.in
#>+ 21
clean-bcheck:
rm -f *.bchecktest.cc *.bchecktest.cc.class a.out
bcheck: bcheck-recursive
bcheck-am:
@for i in ; do \
if test $(srcdir)/$$i -nt $$i.bchecktest.cc; then \
echo "int main() {return 0;}" > $$i.bchecktest.cc ; \
echo "#include \"$$i\"" >> $$i.bchecktest.cc ; \
echo "$$i"; \
if ! $(CXX) $(DEFS) -I. -I$(srcdir) -I$(top_builddir) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(KDE_CXXFLAGS) --dump-class-hierarchy -c $$i.bchecktest.cc; then \
rm -f $$i.bchecktest.cc; exit 1; \
fi ; \
echo "" >> $$i.bchecktest.cc.class; \
perl $(top_srcdir)/admin/bcheck.pl $$i.bchecktest.cc.class || { rm -f $$i.bchecktest.cc; exit 1; }; \
rm -f a.out; \
fi ; \
done
#>+ 3
final:
$(MAKE) all-am
#>+ 3
final-install:
$(MAKE) install-am
#>+ 3
no-final:
$(MAKE) all-am
#>+ 3
no-final-install:
$(MAKE) install-am
#>+ 3
cvs-clean:
$(MAKE) admindir=$(top_srcdir)/admin -f $(top_srcdir)/admin/Makefile.common cvs-clean
#>+ 3
kde-rpo-clean:
-rm -f *.rpo
#>+ 3
nmcheck:
nmcheck-am: nmcheck

@ -0,0 +1,6 @@
# the SUBDIRS is filled automatically by am_edit. If files are
# in this directory they are installed into the english dir
KDE_LANG = en
KDE_DOCS = ksystemlog
SUBDIRS = $(AUTODIRS)

@ -0,0 +1,532 @@
# Makefile.in generated by automake 1.7.9 from Makefile.am.
# KDE tags expanded automatically by am_edit - $Revision: 1.7 $
# ksystemlog/doc/en/Makefile. Generated from Makefile.in by config.pl.
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
# Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
srcdir = .
top_srcdir = ../../..
VPATH = .
pkgdatadir = $(datadir)/ksystemlog
pkglibdir = $(libdir)/ksystemlog
pkgincludedir = $(includedir)/ksystemlog
top_builddir = ../../..
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
INSTALL = /usr/bin/install -c -p
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = i686-pc-linux-gnu
host_triplet = i686-pc-linux-gnu
target_triplet = i686-pc-linux-gnu
ACLOCAL = ${SHELL} /root/ksystemlog/ksystemlog-0.3.2/admin/missing --run aclocal-1.7
AMDEP_FALSE = #
AMDEP_TRUE =
AMTAR = ${SHELL} /root/ksystemlog/ksystemlog-0.3.2/admin/missing --run tar
AR = ar
ARTSCCONFIG = /usr/bin/artsc-config
AUTOCONF = $(SHELL) $(top_srcdir)/admin/cvs.sh configure || touch configure
AUTODIRS =
AUTOHEADER = ${SHELL} /root/ksystemlog/ksystemlog-0.3.2/admin/missing --run autoheader
AUTOMAKE = ${SHELL} /root/ksystemlog/ksystemlog-0.3.2/admin/missing --run automake-1.7
AWK = gawk
CC = gcc
CCDEPMODE = depmode=gcc3
CFLAGS = -ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -O2 -Wformat-security -Wmissing-format-attribute
CONF_FILES = $(top_srcdir)/./admin/configure.in.min $(top_srcdir)/configure.in.in
CPP = gcc -E
CPPFLAGS = -DQT_THREAD_SUPPORT -D_REENTRANT
CXX = g++
CXXCPP = g++ -E
CXXDEPMODE = depmode=gcc3
CXXFLAGS = -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common
CYGPATH_W = echo
DCOPIDL = /usr/bin/dcopidl
DCOPIDL2CPP = /usr/bin/dcopidl2cpp
DCOPIDLNG = /usr/bin/dcopidlng
DCOP_DEPENDENCIES = $(DCOPIDL) $(DCOPIDLNG)
DEFS = -DHAVE_CONFIG_H
DEPDIR = .deps
ECHO = echo
ECHO_C =
ECHO_N = -n
ECHO_T =
EGREP = grep -E
EXEEXT =
F77 =
FFLAGS =
FRAMEWORK_COREAUDIO =
GMSGFMT = /usr/bin/msgfmt
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_PROGRAM = ${INSTALL} $(INSTALL_STRIP_FLAG)
INSTALL_SCRIPT = ${INSTALL}
INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s
KCFG_DEPENDENCIES = $(KCONFIG_COMPILER)
KCONFIG_COMPILER = /usr/bin/kconfig_compiler
KDECONFIG = /usr/bin/kde-config
KDE_EXTRA_RPATH =
KDE_INCLUDES = -I/usr/include/kde
KDE_LDFLAGS = -L/usr/lib
KDE_MT_LDFLAGS =
KDE_MT_LIBS = -lpthread
KDE_NO_UNDEFINED = -Wl,--no-undefined -Wl,--allow-shlib-undefined
KDE_PLUGIN = -avoid-version -module -no-undefined $(KDE_NO_UNDEFINED) $(KDE_RPATH) $(KDE_MT_LDFLAGS)
KDE_RPATH = -R $(kde_libraries) -R $(qt_libraries) -R $(x_libraries)
KDE_USE_CLOSURE_FALSE =
KDE_USE_CLOSURE_TRUE = #
KDE_USE_FINAL_FALSE =
KDE_USE_FINAL_TRUE = #
KDE_USE_NMCHECK_FALSE =
KDE_USE_NMCHECK_TRUE = #
KDE_XSL_STYLESHEET = /usr/share/apps/ksgmltools2/customization/kde-chunk.xsl
LDFLAGS =
LIBCOMPAT =
LIBCRYPT = -lcrypt
LIBDL = -ldl
LIBJPEG = -ljpeg
LIBOBJS =
LIBPNG = -lpng -lz -lm
LIBPTHREAD = -lpthread
LIBRESOLV = -lresolv
LIBS =
LIBSM = -lSM -lICE
LIBSOCKET =
LIBTOOL = $(SHELL) $(top_builddir)/libtool --silent
LIBUCB =
LIBUTIL = -lutil
LIBZ = -lz
LIB_KAB = -lkab
LIB_KABC = -lkabc
LIB_KDECORE = -lkdecore
LIB_KDEPIM = -lkdepim
LIB_KDEPRINT = -lkdeprint
LIB_KDEUI = -lkdeui
LIB_KFILE = -lkio
LIB_KFM =
LIB_KHTML = -lkhtml
LIB_KIO = -lkio
LIB_KPARTS = -lkparts
LIB_KSPELL = -lkspell
LIB_KSYCOCA = -lkio
LIB_KUTILS = -lkutils
LIB_POLL =
LIB_QPE =
LIB_QT = -lqt-mt $(LIBZ) $(LIBPNG) -lXext $(LIB_X11) $(LIBSM) -lpthread
LIB_SMB = -lsmb
LIB_X11 = -lX11 $(LIBSOCKET)
LIB_XEXT = -lXext
LIB_XRENDER =
LN_S = ln -s
LTLIBOBJS =
MAKEINFO = ${SHELL} /root/ksystemlog/ksystemlog-0.3.2/admin/missing --run makeinfo
MCOPIDL = /usr/bin/mcopidl
MEINPROC = /usr/bin/meinproc
MOC = /usr/share/qt3/bin/moc
MSGFMT = /usr/bin/msgfmt
NOOPT_CFLAGS = -O0
NOOPT_CXXFLAGS = -O0
OBJEXT = o
PACKAGE = ksystemlog
PACKAGE_BUGREPORT =
PACKAGE_NAME =
PACKAGE_STRING =
PACKAGE_TARNAME =
PACKAGE_VERSION =
PATH_SEPARATOR = :
PERL = /usr/bin/perl
QTE_NORTTI =
QT_INCLUDES = -I/usr/share/qt3/include
QT_LDFLAGS = -L/usr/share/qt3/lib
RANLIB = ranlib
SET_MAKE =
SHELL = /bin/sh
STRIP = strip
TOPSUBDIRS = ksystemlog
UIC = /usr/share/qt3/bin/uic -L $(kde_widgetdir) -nounload
UIC_TR = tr2i18n
USER_INCLUDES =
USER_LDFLAGS =
USE_EXCEPTIONS = -fexceptions
USE_RTTI =
USE_THREADS =
VERSION = 0.1
WOVERLOADED_VIRTUAL =
XGETTEXT = /usr/bin/xgettext
XMLLINT = /usr/bin/xmllint
X_EXTRA_LIBS =
X_INCLUDES = -I.
X_LDFLAGS = -L/usr/lib
X_PRE_LIBS =
X_RPATH = -R $(x_libraries)
ac_ct_AR = ar
ac_ct_CC = gcc
ac_ct_CXX = g++
ac_ct_F77 =
ac_ct_RANLIB = ranlib
ac_ct_STRIP = strip
all_includes = -I/usr/include/kde -I/usr/share/qt3/include -I.
all_libraries = -L/usr/lib -L/usr/share/qt3/lib
am__fastdepCC_FALSE = #
am__fastdepCC_TRUE =
am__fastdepCXX_FALSE = #
am__fastdepCXX_TRUE =
am__include = include
am__leading_dot = .
am__quote =
bindir = ${exec_prefix}/bin
build = i686-pc-linux-gnu
build_alias =
build_cpu = i686
build_os = linux-gnu
build_vendor = pc
datadir = ${prefix}/share
exec_prefix = ${prefix}
host = i686-pc-linux-gnu
host_alias =
host_cpu = i686
host_os = linux-gnu
host_vendor = pc
include_ARTS_FALSE = #
include_ARTS_TRUE =
includedir = ${prefix}/include
infodir = ${prefix}/info
install_sh = /root/ksystemlog/ksystemlog-0.3.2/admin/install-sh
kde_appsdir = ${datadir}/applnk
kde_bindir = ${exec_prefix}/bin
kde_confdir = ${datadir}/config
kde_datadir = ${datadir}/apps
kde_htmldir = ${datadir}/doc/HTML
kde_icondir = ${datadir}/icons
kde_includes = /usr/include/kde
kde_kcfgdir = ${datadir}/config.kcfg
kde_libraries = /usr/lib
kde_libs_htmldir = /usr/share/doc/kde/HTML
kde_libs_prefix = /usr
kde_locale = ${datadir}/locale
kde_mimedir = ${datadir}/mimelnk
kde_moduledir = ${libdir}/kde3
kde_qtver = 3
kde_servicesdir = ${datadir}/services
kde_servicetypesdir = ${datadir}/servicetypes
kde_sounddir = ${datadir}/sounds
kde_styledir = ${libdir}/kde3/plugins/styles
kde_templatesdir = ${datadir}/templates
kde_wallpaperdir = ${datadir}/wallpapers
kde_widgetdir = /usr/lib/kde3/plugins/designer
kdeinitdir = $(kde_moduledir)
libdir = ${exec_prefix}/lib
libexecdir = ${exec_prefix}/libexec
localstatedir = ${prefix}/var
mandir = ${prefix}/man
oldincludedir = /usr/include
prefix = /usr
program_transform_name = s,x,x,
qt_includes = /usr/share/qt3/include
qt_libraries = /usr/share/qt3/lib
sbindir = ${exec_prefix}/sbin
sharedstatedir = ${prefix}/com
sysconfdir = ${prefix}/etc
target = i686-pc-linux-gnu
target_alias =
target_cpu = i686
target_os = linux-gnu
target_vendor = pc
x_includes = .
x_libraries = /usr/lib
xdg_appsdir = ${datadir}/applications/kde
xdg_directorydir = ${datadir}/desktop-directories
xdg_menudir = ${sysconfdir}/xdg/menus
KDE_DOCS = ksystemlog
KDE_LANG = en
subdir = ksystemlog/doc/en
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/admin/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
DIST_SOURCES =
DIST_COMMON = $(srcdir)/Makefile.in Makefile.am
#>- all: all-am
#>+ 1
all: docs-am all-am
.SUFFIXES:
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
#>- cd $(top_srcdir) && \
#>- $(AUTOMAKE) --gnu ksystemlog/doc/en/Makefile
#>+ 3
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu ksystemlog/doc/en/Makefile
cd $(top_srcdir) && perl admin/am_edit ksystemlog/doc/en/Makefile.in
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
distclean-libtool:
-rm -f libtool
uninstall-info-am:
tags: TAGS
TAGS:
ctags: CTAGS
CTAGS:
#>- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
#>+ 1
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) $(KDE_DIST)
top_distdir = ../../..
distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
#>- distdir: $(DISTFILES)
#>+ 1
distdir: distdir-nls $(DISTFILES)
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
list='$(DISTFILES)'; for file in $$list; do \
case $$file in \
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
esac; \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
dir="/$$dir"; \
$(mkinstalldirs) "$(distdir)$$dir"; \
else \
dir=''; \
fi; \
if test -d $$d/$$file; then \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
fi; \
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
else \
test -f $(distdir)/$$file \
|| cp -p $$d/$$file $(distdir)/$$file \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile
installdirs:
install: install-am
install-exec: install-exec-am
install-data: install-data-am
#>- uninstall: uninstall-am
#>+ 1
uninstall: uninstall-docs uninstall-nls uninstall-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
clean-generic:
distclean-generic:
-rm -f $(CONFIG_CLEAN_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
#>- clean: clean-am
#>+ 1
clean: kde-rpo-clean clean-am
#>- clean-am: clean-generic clean-libtool mostlyclean-am
#>+ 1
clean-am: clean-docs clean-bcheck clean-generic clean-libtool mostlyclean-am
distclean: distclean-am
-rm -f Makefile
distclean-am: clean-am distclean-generic distclean-libtool
dvi: dvi-am
dvi-am:
info: info-am
info-am:
#>- install-data-am:
#>+ 1
install-data-am: install-docs install-nls
install-exec-am:
install-info: install-info-am
install-man:
installcheck-am:
maintainer-clean: maintainer-clean-am
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
pdf: pdf-am
pdf-am:
ps: ps-am
ps-am:
uninstall-am: uninstall-info-am
.PHONY: all all-am check check-am clean clean-generic clean-libtool \
distclean distclean-generic distclean-libtool distdir dvi \
dvi-am info info-am install install-am install-data \
install-data-am install-exec install-exec-am install-info \
install-info-am install-man install-strip installcheck \
installcheck-am installdirs maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-generic \
mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
uninstall-info-am
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
#>+ 2
KDE_DIST=Makefile.in index.docbook
#>+ 24
index.cache.bz2: $(srcdir)/index.docbook $(KDE_XSL_STYLESHEET) index.docbook
@if test -n "$(MEINPROC)"; then echo $(MEINPROC) --check --cache index.cache.bz2 $(srcdir)/index.docbook; $(MEINPROC) --check --cache index.cache.bz2 $(srcdir)/index.docbook; fi
docs-am: index.cache.bz2
install-docs: docs-am install-nls
$(mkinstalldirs) $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/ksystemlog
@if test -f index.cache.bz2; then \
echo $(INSTALL_DATA) index.cache.bz2 $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/ksystemlog/; \
$(INSTALL_DATA) index.cache.bz2 $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/ksystemlog/; \
elif test -f $(srcdir)/index.cache.bz2; then \
echo $(INSTALL_DATA) $(srcdir)/index.cache.bz2 $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/ksystemlog/; \
$(INSTALL_DATA) $(srcdir)/index.cache.bz2 $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/ksystemlog/; \
fi
-rm -f $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/ksystemlog/common
$(LN_S) $(kde_libs_htmldir)/$(KDE_LANG)/common $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/ksystemlog/common
uninstall-docs:
-rm -rf $(kde_htmldir)/$(KDE_LANG)/ksystemlog
clean-docs:
-rm -f index.cache.bz2
#>+ 13
install-nls:
$(mkinstalldirs) $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/ksystemlog
@for base in index.docbook ; do \
echo $(INSTALL_DATA) $$base $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/ksystemlog/$$base ;\
$(INSTALL_DATA) $(srcdir)/$$base $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/ksystemlog/$$base ;\
done
uninstall-nls:
for base in index.docbook ; do \
rm -f $(DESTDIR)$(kde_htmldir)/$(KDE_LANG)/ksystemlog/$$base ;\
done
#>+ 5
distdir-nls:
for file in index.docbook ; do \
cp $(srcdir)/$$file $(distdir); \
done
#>+ 6
force-reedit:
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu ksystemlog/doc/en/Makefile
cd $(top_srcdir) && perl admin/am_edit ksystemlog/doc/en/Makefile.in
#>+ 21
clean-bcheck:
rm -f *.bchecktest.cc *.bchecktest.cc.class a.out
bcheck: bcheck-am
bcheck-am:
@for i in ; do \
if test $(srcdir)/$$i -nt $$i.bchecktest.cc; then \
echo "int main() {return 0;}" > $$i.bchecktest.cc ; \
echo "#include \"$$i\"" >> $$i.bchecktest.cc ; \
echo "$$i"; \
if ! $(CXX) $(DEFS) -I. -I$(srcdir) -I$(top_builddir) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(KDE_CXXFLAGS) --dump-class-hierarchy -c $$i.bchecktest.cc; then \
rm -f $$i.bchecktest.cc; exit 1; \
fi ; \
echo "" >> $$i.bchecktest.cc.class; \
perl $(top_srcdir)/admin/bcheck.pl $$i.bchecktest.cc.class || { rm -f $$i.bchecktest.cc; exit 1; }; \
rm -f a.out; \
fi ; \
done
#>+ 3
final:
$(MAKE) all-am
#>+ 3
final-install:
$(MAKE) install-am
#>+ 3
no-final:
$(MAKE) all-am
#>+ 3
no-final-install:
$(MAKE) install-am
#>+ 3
cvs-clean:
$(MAKE) admindir=$(top_srcdir)/admin -f $(top_srcdir)/admin/Makefile.common cvs-clean
#>+ 3
kde-rpo-clean:
-rm -f *.rpo
#>+ 3
nmcheck:
nmcheck-am: nmcheck

@ -0,0 +1,2 @@
KDE_DOCS = ksystemlog
KDE_LANG = en

@ -0,0 +1,555 @@
<?xml version="1.0" ?>
<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.1.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [
<!ENTITY ksystemlog "<application>ksystemlog 0.1</application>">
<!ENTITY kappname "&ksystemlog;"><!-- Do *not* replace kappname-->
<!ENTITY package "kde-module"><!-- kdebase, kdeadmin, etc -->
<!ENTITY % addindex "IGNORE">
<!ENTITY % English "INCLUDE"><!-- change language only here -->
<!-- Do not define any other entities; instead, use the entities
from kde-genent.entities and $LANG/user.entities. -->
]>
<!-- kdoctemplate v0.8 October 1 1999
Minor update to "Credits and Licenses" section on August 24, 2000
Removed "Revision history" section on 22 January 2001
Changed to Installation/Help menu entities 18 October 2001
Other minor cleanup and changes 18 October 2001 -->
<!--
This template was designed by: David Rugge davidrugge@mindspring.com
with lots of help from: Eric Bischoff ebisch@cybercable.tm.fr
and Frederik Fouvry fouvry@sfs.nphil.uni-tuebingen.de
of the KDE DocBook team.
You may freely use this template for writing any sort of KDE documentation.
If you have any changes or improvements, please let us know.
Remember:
- in XML, the case of the <tags> and attributes is relevant ;
- also, quote all attributes.
Please don't forget to remove all these comments in your final documentation,
thanks ;-).
-->
<!-- ................................................................ -->
<!-- The language must NOT be changed here. -->
<book lang="&language;">
<!-- This header contains all of the meta-information for the document such
as Authors, publish date, the abstract, and Keywords -->
<bookinfo>
<title>The &ksystemlog; Handbook</title>
<authorgroup>
<author>
<firstname></firstname>
<othername></othername>
<surname>Nicolas Ternisien</surname>
<affiliation>
<address><email>nicolast@libertysurf.fr</email></address>
</affiliation>
</author>
</authorgroup>
<!-- TRANS:ROLES_OF_TRANSLATORS -->
<copyright>
<year>1999</year>
<year>2005</year>
<holder>Nicolas Ternisien</holder>
</copyright>
<!-- Translators: put here the copyright notice of the translation -->
<!-- Put here the FDL notice. Read the explanation in fdl-notice.docbook
and in the FDL itself on how to use it. -->
<legalnotice>&FDLNotice;</legalnotice>
<!-- Date and version information of the documentation
Don't forget to include this last date and this last revision number, we
need them for translation coordination !
Please respect the format of the date (YYYY-MM-DD) and of the version
(V.MM.LL), it could be used by automation scripts.
Do NOT change these in the translation. -->
<date>2001-10-18</date>
<releaseinfo>0.1</releaseinfo>
<!-- Abstract about this handbook -->
<abstract>
<para>
&ksystemlog; is an application specially designed to do nothing you would
ever want.
</para>
</abstract>
<!-- This is a set of Keywords for indexing by search engines.
Please at least include KDE, the KDE package it is in, the name
of your application, and a few relevant keywords. -->
<keywordset>
<keyword>KDE</keyword>
<keyword>ksystemlog</keyword>
<keyword>nothing</keyword>
<keyword>nothing else</keyword>
</keywordset>
</bookinfo>
<!-- The contents of the documentation begin here. Label
each chapter so with the id attribute. This is necessary for two reasons: it
allows you to easily reference the chapter from other chapters of your
document, and if there is no ID, the name of the generated HTML files will vary
from time to time making it hard to manage for maintainers and for the CVS
system. Any chapter labelled (OPTIONAL) may be left out at the author's
discretion. Other chapters should not be left out in order to maintain a
consistent documentation style across all KDE apps. -->
<chapter id="introduction">
<title>Introduction</title>
<!-- The introduction chapter contains a brief introduction for the
application that explains what it does and where to report
problems. Basically a long version of the abstract. Don't include a
revision history. (see installation appendix comment) -->
<para>
&ksystemlog; is a program that lets you do absolutely nothing. Please report
any problems or feature requests to the &kde; mailing lists.
</para>
</chapter>
<chapter id="using-ksystemlog">
<title>Using &ksystemlog;</title>
<!-- This chapter should tell the user how to use your app. You should use as
many sections (Chapter, Sect1, Sect3, etc...) as is necessary to fully document
your application. -->
<para>
<!-- Note that all graphics should be in .png format. Use no gifs because of
patent issues. -->
<screenshot>
<screeninfo>Here's a screenshot of &ksystemlog;</screeninfo>
<mediaobject>
<imageobject>
<imagedata fileref="screenshot.png" format="PNG"/>
</imageobject>
<imageobject>
<imagedata fileref="screenshot.eps" format="EPS"/>
</imageobject>
<textobject>
<phrase>Screenshot</phrase>
</textobject>
</mediaobject>
</screenshot>
</para>
<sect1 id="ksystemlog-features">
<title>More &ksystemlog; features</title>
<para>It slices! It dices! and it comes with a free toaster!</para>
<para>
The Squiggle Tool <guiicon><inlinemediaobject>
<imageobject>
<imagedata fileref="squiggle.png" format="PNG"/>
</imageobject>
<imageobject>
<imagedata fileref="squiggle.eps" format="EPS"/>
</imageobject>
<textobject>
<phrase>Squiggle</phrase>
</textobject>
</inlinemediaobject></guiicon> is used to draw squiggly lines all over
the &ksystemlog; main window. It's not a bug, it's a feature!
</para>
</sect1>
</chapter>
<chapter id="commands">
<title>Command Reference</title>
<!-- (OPTIONAL, BUT RECOMMENDED) This chapter should list all of the
application windows and their menubar and toolbar commands for easy reference.
Also include any keys that have a special function but have no equivalent in the
menus or toolbars. This may not be necessary for small apps or apps with no tool
or menu bars. -->
<sect1 id="ksystemlog-mainwindow">
<title>The main &ksystemlog; window</title>
<sect2>
<title>The File Menu</title>
<para>
<variablelist>
<varlistentry>
<term><menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>N</keycap></keycombo>
</shortcut>
<guimenu>File</guimenu>
<guimenuitem>New</guimenuitem>
</menuchoice></term>
<listitem><para><action>Creates a new document</action></para></listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>S</keycap></keycombo>
</shortcut>
<guimenu>File</guimenu>
<guimenuitem>Save</guimenuitem>
</menuchoice></term>
<listitem><para><action>Saves the document</action></para></listitem>
</varlistentry>
<varlistentry>
<term><menuchoice>
<shortcut>
<keycombo action="simul">&Ctrl;<keycap>Q</keycap></keycombo>
</shortcut>
<guimenu>File</guimenu>
<guimenuitem>Quit</guimenuitem>
</menuchoice></term>
<listitem><para><action>Quits</action> &ksystemlog;</para></listitem>
</varlistentry>
</variablelist>
</para>
</sect2>
<sect2>
<title>The <guimenu>Help</guimenu> Menu</title>
<!-- Assuming you have a standard help menu (help, what's this, about -->
<!-- &ksystemlog;, about KDE) then the documentation is already written. -->
<!-- The following entity is valid anywhere that a variablelist is -->
<!-- valid. -->
&help.menu.documentation;
</sect2>
</sect1>
</chapter>
<chapter id="developers">
<title>Developer's Guide to &ksystemlog;</title>
<!-- (OPTIONAL) A Programming/Scripting reference chapter should be
used for apps that use plugins or that provide their own scripting hooks
and/or development libraries. -->
<para>
Programming &ksystemlog; plugins is a joy to behold. Just read through the next
66 pages of API's to learn how!
</para>
<!-- Use refentries to describe APIs. Refentries are fairly complicated and you
should consult the docbook reference for further details. The example below was
taken from that reference and shortened a bit for readability. -->
<refentry id="re-1007-unmanagechildren-1">
<refmeta>
<refentrytitle>XtUnmanageChildren</refentrytitle>
<refmiscinfo>Xt - Geometry Management</refmiscinfo>
</refmeta>
<refnamediv>
<refname>XtUnmanageChildren
</refname>
<refpurpose>remove a list of children from a parent widget's managed
list.
<indexterm id="ix-1007-unmanagechildren-1"><primary>widgets</primary><secondary>removing</secondary></indexterm>
<indexterm id="ix-1007-unmanagechildren-2"><primary>XtUnmanageChildren</primary></indexterm>
</refpurpose>
</refnamediv>
<refsynopsisdiv>
<refsynopsisdivinfo>
<date>4 March 1996</date>
</refsynopsisdivinfo>
<synopsis>
void XtUnmanageChildren(<replaceable class="parameter">children</replaceable>, <replaceable class="parameter">num_children</replaceable>)
WidgetList <replaceable class="parameter">children</replaceable>;
Cardinal <replaceable class="parameter">num_children</replaceable>;
</synopsis>
<refsect2 id="r2-1007-unmanagechildren-1">
<title>Inputs</title>
<variablelist>
<varlistentry>
<term><replaceable class="parameter">children</replaceable>
</term>
<listitem>
<para>Specifies an array of child widgets. Each child must be of
class RectObj or any subclass thereof.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><replaceable class="parameter">num_children</replaceable>
</term>
<listitem>
<para>Specifies the number of elements in <replaceable class="parameter">children</replaceable>.
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect2></refsynopsisdiv>
<refsect1 id="r1-1007-unmanagechildren-1">
<title>Description
</title>
<para><function>XtUnmanageChildren()</function> unmaps the specified widgets
and removes them from their parent's geometry management.
The widgets will disappear from the screen, and (depending
on its parent) may no longer have screen space allocated for
them.
</para>
<para>Each of the widgets in the <replaceable class="parameter">children</replaceable> array must have
the same parent.
</para>
<para>See the &ldquo;Algorithm&rdquo; section below for full details of the
widget unmanagement procedure.
</para>
</refsect1>
<refsect1 id="r1-1007-unmanagechildren-2">
<title>Usage</title>
<para>Unmanaging widgets is the usual method for temporarily
making them invisible. They can be re-managed with
<function>XtManageChildren()</function>.
</para>
<para>You can unmap a widget, but leave it under geometry
management by calling <function>XtUnmapWidget()</function>. You can
destroy a widget's window without destroying the widget by
calling <function>XtUnrealizeWidget()</function>. You can destroy a
widget completely with <function>XtDestroyWidget()</function>.
</para>
<para>If you are only going to unmanage a single widget, it is
more convenient to call <function>XtUnmanageChild()</function>. It is
often more convenient to call <function>XtUnmanageChild()</function>
several times than it is to declare and initialize an array
of widgets to pass to <function>XtUnmanageChildren()</function>. Calling
<function>XtUnmanageChildren()</function> is more efficient, however,
because it only calls the parent's <function>change_managed()</function>
method once.
</para>
</refsect1>
<refsect1 id="r1-1007-unmanagechildren-3">
<title>Algorithm
</title>
<para><function>XtUnmanageChildren()</function> performs the following:
</para>
<variablelist>
<varlistentry>
<term>-
</term>
<listitem>
<para>Ignores the child if it already is unmanaged or is being
destroyed.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>-
</term>
<listitem>
<para>Otherwise, if the child is realized, it makes it nonvisible
by unmapping it.
</para>
</listitem>
</varlistentry>
</variablelist>
<para>
</para>
</refsect1>
<refsect1 id="r1-1007-unmanagechildren-4">
<title>Structures</title>
<para>The <type>WidgetList</type> type is simply an array of widgets:
</para>
<screen id="sc-1007-unmanagechildren-1">typedef Widget *WidgetList;
</screen>
</refsect1>
</refentry>
</chapter>
<chapter id="faq">
<title>Questions and Answers</title>
<!-- (OPTIONAL but recommended) This chapter should include all of the silly
(and not-so-silly) newbie questions that fill up your mailbox. This chapter
should be reserved for BRIEF questions and answers! If one question uses more
than a page or so then it should probably be part of the
"Using this Application" chapter instead. You should use links to
cross-reference questions to the parts of your documentation that answer them.
This is also a great place to provide pointers to other FAQ's if your users
must do some complicated configuration on other programs in order for your
application work. -->
&reporting.bugs;
&updating.documentation;
<qandaset id="faqlist">
<qandaentry>
<question>
<para>My Mouse doesn't work. How do I quit &ksystemlog;?</para>
</question>
<answer>
<para>You silly goose! Check out the <link linkend="commands">Commands
Section</link> for the answer.</para>
</answer>
</qandaentry>
<qandaentry>
<question>
<para>Why can't I twiddle my documents?</para>
</question>
<answer>
<para>You can only twiddle your documents if you have the foobar.lib
installed.</para>
</answer>
</qandaentry>
</qandaset>
</chapter>
<chapter id="credits">
<!-- Include credits for the programmers, documentation writers, and
contributors here. The license for your software should then be included below
the credits with a reference to the appropriate license file included in the KDE
distribution. -->
<title>Credits and License</title>
<para>
&ksystemlog;
</para>
<para>
Program copyright 2005 Nicolas Ternisien <email>nicolast@libertysurf.fr</email>
</para>
<para>
Contributors:
<itemizedlist>
<listitem><para>Konqui the KDE Dragon <email>konqui@kde.org</email></para>
</listitem>
<listitem><para>Tux the Linux Penguin <email>tux@linux.org</email></para>
</listitem>
</itemizedlist>
</para>
<para>
Documentation copyright 2005 Nicolas Ternisien <email>nicolast@libertysurf.fr</email>
</para>
<!-- TRANS:CREDIT_FOR_TRANSLATORS -->
&underFDL; <!-- FDL: do not remove -->
<!-- Determine which license your application is licensed under,
and delete all the remaining licenses below:
(NOTE: All documentation are licensed under the FDL,
regardless of what license the application uses) -->
&underGPL; <!-- GPL License -->
&underBSDLicense; <!-- BSD License -->
&underArtisticLicense; <!-- BSD Artistic License -->
&underX11License; <!-- X11 License -->
</chapter>
<appendix id="installation">
<title>Installation</title>
<sect1 id="getting-ksystemlog">
<title>How to obtain &ksystemlog;</title>
<!-- This first entity contains boiler plate for applications that are
part of KDE CVS. You should remove it if you are releasing your
application -->
&install.intro.documentation;
</sect1>
<sect1 id="requirements">
<title>Requirements</title>
<!--
List any special requirements for your application here. This should include:
.Libraries or other software that is not included in kdesupport,
kdelibs, or kdebase.
.Hardware requirements like amount of RAM, disk space, graphics card
capabilities, screen resolution, special expansion cards, etc.
.Operating systems the app will run on. If your app is designed only for a
specific OS, (you wrote a graphical LILO configurator for example) put this
information here.
-->
<para>
In order to successfully use &ksystemlog;, you need &kde; 1.1. Foobar.lib is
required in order to support the advanced &ksystemlog; features. &ksystemlog; uses
about 5 megs of memory to run, but this may vary depending on your
platform and configuration.
</para>
<para>
All required libraries as well as &ksystemlog; itself can be found
on <ulink url="ftp://ftp.ksystemlog.org">The &ksystemlog; home page</ulink>.
</para>
<!-- For a list of updates, you may refer to the application web site
or the ChangeLog file, or ... -->
<para>
You can find a list of changes at <ulink
url="http://apps.kde.org/ksystemlog">http://apps.kde.org/ksystemlog</ulink>.
</para>
</sect1>
<sect1 id="compilation">
<title>Compilation and Installation</title>
<!-- This entity contains the boilerplate text for standard -->
<!-- compilation instructions. If your application requires any -->
<!-- special handling, remove it, and replace with your own text. -->
&install.compile.documentation;
</sect1>
<sect1 id="configuration">
<title>Configuration</title>
<para>Don't forget to tell your system to start the <filename>dtd</filename>
dicer-toaster daemon first, or &ksystemlog; won't work !</para>
</sect1>
</appendix>
&documentation.index;
</book>
<!--
Local Variables:
mode: sgml
sgml-minimize-attributes:nil
sgml-general-insert-case:lower
sgml-indent-step:0
sgml-indent-data:nil
End:
vim:tabstop=2:shiftwidth=2:expandtab
-->

@ -0,0 +1,589 @@
# Makefile.in generated by automake 1.7.9 from Makefile.am.
# KDE tags expanded automatically by am_edit - $Revision: 1.7 $
# ksystemlog/po/Makefile. Generated from Makefile.in by config.pl.
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
# Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
srcdir = .
top_srcdir = ../..
VPATH = .
pkgdatadir = $(datadir)/ksystemlog
pkglibdir = $(libdir)/ksystemlog
pkgincludedir = $(includedir)/ksystemlog
top_builddir = ../..
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
INSTALL = /usr/bin/install -c -p
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = i686-pc-linux-gnu
host_triplet = i686-pc-linux-gnu
target_triplet = i686-pc-linux-gnu
ACLOCAL = ${SHELL} /root/ksystemlog/ksystemlog-0.3.2/admin/missing --run aclocal-1.7
AMDEP_FALSE = #
AMDEP_TRUE =
AMTAR = ${SHELL} /root/ksystemlog/ksystemlog-0.3.2/admin/missing --run tar
AR = ar
ARTSCCONFIG = /usr/bin/artsc-config
AUTOCONF = $(SHELL) $(top_srcdir)/admin/cvs.sh configure || touch configure
AUTODIRS =
AUTOHEADER = ${SHELL} /root/ksystemlog/ksystemlog-0.3.2/admin/missing --run autoheader
AUTOMAKE = ${SHELL} /root/ksystemlog/ksystemlog-0.3.2/admin/missing --run automake-1.7
AWK = gawk
CC = gcc
CCDEPMODE = depmode=gcc3
CFLAGS = -ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -O2 -Wformat-security -Wmissing-format-attribute
CONF_FILES = $(top_srcdir)/./admin/configure.in.min $(top_srcdir)/configure.in.in
CPP = gcc -E
CPPFLAGS = -DQT_THREAD_SUPPORT -D_REENTRANT
CXX = g++
CXXCPP = g++ -E
CXXDEPMODE = depmode=gcc3
CXXFLAGS = -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common
CYGPATH_W = echo
DCOPIDL = /usr/bin/dcopidl
DCOPIDL2CPP = /usr/bin/dcopidl2cpp
DCOPIDLNG = /usr/bin/dcopidlng
DCOP_DEPENDENCIES = $(DCOPIDL) $(DCOPIDLNG)
DEFS = -DHAVE_CONFIG_H
DEPDIR = .deps
ECHO = echo
ECHO_C =
ECHO_N = -n
ECHO_T =
EGREP = grep -E
EXEEXT =
F77 =
FFLAGS =
FRAMEWORK_COREAUDIO =
GMSGFMT = /usr/bin/msgfmt
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_PROGRAM = ${INSTALL} $(INSTALL_STRIP_FLAG)
INSTALL_SCRIPT = ${INSTALL}
INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s
KCFG_DEPENDENCIES = $(KCONFIG_COMPILER)
KCONFIG_COMPILER = /usr/bin/kconfig_compiler
KDECONFIG = /usr/bin/kde-config
KDE_EXTRA_RPATH =
KDE_INCLUDES = -I/usr/include/kde
KDE_LDFLAGS = -L/usr/lib
KDE_MT_LDFLAGS =
KDE_MT_LIBS = -lpthread
KDE_NO_UNDEFINED = -Wl,--no-undefined -Wl,--allow-shlib-undefined
KDE_PLUGIN = -avoid-version -module -no-undefined $(KDE_NO_UNDEFINED) $(KDE_RPATH) $(KDE_MT_LDFLAGS)
KDE_RPATH = -R $(kde_libraries) -R $(qt_libraries) -R $(x_libraries)
KDE_USE_CLOSURE_FALSE =
KDE_USE_CLOSURE_TRUE = #
KDE_USE_FINAL_FALSE =
KDE_USE_FINAL_TRUE = #
KDE_USE_NMCHECK_FALSE =
KDE_USE_NMCHECK_TRUE = #
KDE_XSL_STYLESHEET = /usr/share/apps/ksgmltools2/customization/kde-chunk.xsl
LDFLAGS =
LIBCOMPAT =
LIBCRYPT = -lcrypt
LIBDL = -ldl
LIBJPEG = -ljpeg
LIBOBJS =
LIBPNG = -lpng -lz -lm
LIBPTHREAD = -lpthread
LIBRESOLV = -lresolv
LIBS =
LIBSM = -lSM -lICE
LIBSOCKET =
LIBTOOL = $(SHELL) $(top_builddir)/libtool --silent
LIBUCB =
LIBUTIL = -lutil
LIBZ = -lz
LIB_KAB = -lkab
LIB_KABC = -lkabc
LIB_KDECORE = -lkdecore
LIB_KDEPIM = -lkdepim
LIB_KDEPRINT = -lkdeprint
LIB_KDEUI = -lkdeui
LIB_KFILE = -lkio
LIB_KFM =
LIB_KHTML = -lkhtml
LIB_KIO = -lkio
LIB_KPARTS = -lkparts
LIB_KSPELL = -lkspell
LIB_KSYCOCA = -lkio
LIB_KUTILS = -lkutils
LIB_POLL =
LIB_QPE =
LIB_QT = -lqt-mt $(LIBZ) $(LIBPNG) -lXext $(LIB_X11) $(LIBSM) -lpthread
LIB_SMB = -lsmb
LIB_X11 = -lX11 $(LIBSOCKET)
LIB_XEXT = -lXext
LIB_XRENDER =
LN_S = ln -s
LTLIBOBJS =
MAKEINFO = ${SHELL} /root/ksystemlog/ksystemlog-0.3.2/admin/missing --run makeinfo
MCOPIDL = /usr/bin/mcopidl
MEINPROC = /usr/bin/meinproc
MOC = /usr/share/qt3/bin/moc
MSGFMT = /usr/bin/msgfmt
NOOPT_CFLAGS = -O0
NOOPT_CXXFLAGS = -O0
OBJEXT = o
PACKAGE = ksystemlog
PACKAGE_BUGREPORT =
PACKAGE_NAME =
PACKAGE_STRING =
PACKAGE_TARNAME =
PACKAGE_VERSION =
PATH_SEPARATOR = :
PERL = /usr/bin/perl
QTE_NORTTI =
QT_INCLUDES = -I/usr/share/qt3/include
QT_LDFLAGS = -L/usr/share/qt3/lib
RANLIB = ranlib
SET_MAKE =
SHELL = /bin/sh
STRIP = strip
TOPSUBDIRS = ksystemlog
UIC = /usr/share/qt3/bin/uic -L $(kde_widgetdir) -nounload
UIC_TR = tr2i18n
USER_INCLUDES =
USER_LDFLAGS =
USE_EXCEPTIONS = -fexceptions
USE_RTTI =
USE_THREADS =
VERSION = 0.1
WOVERLOADED_VIRTUAL =
XGETTEXT = /usr/bin/xgettext
XMLLINT = /usr/bin/xmllint
X_EXTRA_LIBS =
X_INCLUDES = -I.
X_LDFLAGS = -L/usr/lib
X_PRE_LIBS =
X_RPATH = -R $(x_libraries)
ac_ct_AR = ar
ac_ct_CC = gcc
ac_ct_CXX = g++
ac_ct_F77 =
ac_ct_RANLIB = ranlib
ac_ct_STRIP = strip
all_includes = -I/usr/include/kde -I/usr/share/qt3/include -I.
all_libraries = -L/usr/lib -L/usr/share/qt3/lib
am__fastdepCC_FALSE = #
am__fastdepCC_TRUE =
am__fastdepCXX_FALSE = #
am__fastdepCXX_TRUE =
am__include = include
am__leading_dot = .
am__quote =
bindir = ${exec_prefix}/bin
build = i686-pc-linux-gnu
build_alias =
build_cpu = i686
build_os = linux-gnu
build_vendor = pc
datadir = ${prefix}/share
exec_prefix = ${prefix}
host = i686-pc-linux-gnu
host_alias =
host_cpu = i686
host_os = linux-gnu
host_vendor = pc
include_ARTS_FALSE = #
include_ARTS_TRUE =
includedir = ${prefix}/include
infodir = ${prefix}/info
install_sh = /root/ksystemlog/ksystemlog-0.3.2/admin/install-sh
kde_appsdir = ${datadir}/applnk
kde_bindir = ${exec_prefix}/bin
kde_confdir = ${datadir}/config
kde_datadir = ${datadir}/apps
kde_htmldir = ${datadir}/doc/HTML
kde_icondir = ${datadir}/icons
kde_includes = /usr/include/kde
kde_kcfgdir = ${datadir}/config.kcfg
kde_libraries = /usr/lib
kde_libs_htmldir = /usr/share/doc/kde/HTML
kde_libs_prefix = /usr
kde_locale = ${datadir}/locale
kde_mimedir = ${datadir}/mimelnk
kde_moduledir = ${libdir}/kde3
kde_qtver = 3
kde_servicesdir = ${datadir}/services
kde_servicetypesdir = ${datadir}/servicetypes
kde_sounddir = ${datadir}/sounds
kde_styledir = ${libdir}/kde3/plugins/styles
kde_templatesdir = ${datadir}/templates
kde_wallpaperdir = ${datadir}/wallpapers
kde_widgetdir = /usr/lib/kde3/plugins/designer
kdeinitdir = $(kde_moduledir)
libdir = ${exec_prefix}/lib
libexecdir = ${exec_prefix}/libexec
localstatedir = ${prefix}/var
mandir = ${prefix}/man
oldincludedir = /usr/include
prefix = /usr
program_transform_name = s,x,x,
qt_includes = /usr/share/qt3/include
qt_libraries = /usr/share/qt3/lib
sbindir = ${exec_prefix}/sbin
sharedstatedir = ${prefix}/com
sysconfdir = ${prefix}/etc
target = i686-pc-linux-gnu
target_alias =
target_cpu = i686
target_os = linux-gnu
target_vendor = pc
x_includes = .
x_libraries = /usr/lib
xdg_appsdir = ${datadir}/applications/kde
xdg_directorydir = ${datadir}/desktop-directories
xdg_menudir = ${sysconfdir}/xdg/menus
#>- POFILES = AUTO
#>+ 2
POFILES = br.po da.po de.po el.po et.po ga.po fr.po it.po pa.po pl.po rw.po sv.po tr.po en_GB.po
GMOFILES = br.gmo da.gmo de.gmo el.gmo et.gmo ga.gmo fr.gmo it.gmo pa.gmo pl.gmo rw.gmo sv.gmo tr.gmo en_GB.gmo
subdir = ksystemlog/po
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/admin/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/config.h
CONFIG_CLEAN_FILES =
DIST_SOURCES =
DIST_COMMON = $(srcdir)/Makefile.in Makefile.am
#>- all: all-am
#>+ 1
all: all-nls docs-am all-am
.SUFFIXES:
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
#>- cd $(top_srcdir) && \
#>- $(AUTOMAKE) --gnu ksystemlog/po/Makefile
#>+ 3
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu ksystemlog/po/Makefile
cd $(top_srcdir) && perl admin/am_edit ksystemlog/po/Makefile.in
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
distclean-libtool:
-rm -f libtool
uninstall-info-am:
tags: TAGS
TAGS:
ctags: CTAGS
CTAGS:
#>- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
#>+ 1
#>- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) $(KDE_DIST)
#>+ 1
DISTFILES = $(GMOFILES) $(POFILES) $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) $(KDE_DIST)
top_distdir = ../..
distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
#>- distdir: $(DISTFILES)
#>+ 1
distdir: distdir-nls $(DISTFILES)
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
list='$(DISTFILES)'; for file in $$list; do \
case $$file in \
$(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
$(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
esac; \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
dir="/$$dir"; \
$(mkinstalldirs) "$(distdir)$$dir"; \
else \
dir=''; \
fi; \
if test -d $$d/$$file; then \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
fi; \
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
else \
test -f $(distdir)/$$file \
|| cp -p $$d/$$file $(distdir)/$$file \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile
installdirs:
install: install-am
install-exec: install-exec-am
install-data: install-data-am
#>- uninstall: uninstall-am
#>+ 1
uninstall: uninstall-nls uninstall-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
clean-generic:
distclean-generic:
-rm -f $(CONFIG_CLEAN_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
#>- clean: clean-am
#>+ 1
clean: kde-rpo-clean clean-am
#>- clean-am: clean-generic clean-libtool mostlyclean-am
#>+ 1
clean-am: clean-bcheck clean-generic clean-libtool mostlyclean-am
distclean: distclean-am
-rm -f Makefile
distclean-am: clean-am distclean-generic distclean-libtool
dvi: dvi-am
dvi-am:
info: info-am
info-am:
#>- install-data-am:
#>+ 1
install-data-am: install-nls
install-exec-am:
install-info: install-info-am
install-man:
installcheck-am:
#>- maintainer-clean: maintainer-clean-am
#>+ 1
maintainer-clean: clean-nls maintainer-clean-am
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
pdf: pdf-am
pdf-am:
ps: ps-am
ps-am:
uninstall-am: uninstall-info-am
.PHONY: all all-am check check-am clean clean-generic clean-libtool \
distclean distclean-generic distclean-libtool distdir dvi \
dvi-am info info-am install install-am install-data \
install-data-am install-exec install-exec-am install-info \
install-info-am install-man install-strip installcheck \
installcheck-am installdirs maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-generic \
mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
uninstall-info-am
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
#>+ 2
KDE_DIST=rw.po Makefile.in da.po sv.po ksystemlog.pot pl.po de.po br.po et.po en_GB.po it.po fr.po ga.po el.po tr.po pa.po
#>+ 43
br.gmo: br.po
rm -f br.gmo; $(GMSGFMT) -o br.gmo $(srcdir)/br.po
test ! -f br.gmo || touch br.gmo
da.gmo: da.po
rm -f da.gmo; $(GMSGFMT) -o da.gmo $(srcdir)/da.po
test ! -f da.gmo || touch da.gmo
de.gmo: de.po
rm -f de.gmo; $(GMSGFMT) -o de.gmo $(srcdir)/de.po
test ! -f de.gmo || touch de.gmo
el.gmo: el.po
rm -f el.gmo; $(GMSGFMT) -o el.gmo $(srcdir)/el.po
test ! -f el.gmo || touch el.gmo
et.gmo: et.po
rm -f et.gmo; $(GMSGFMT) -o et.gmo $(srcdir)/et.po
test ! -f et.gmo || touch et.gmo
ga.gmo: ga.po
rm -f ga.gmo; $(GMSGFMT) -o ga.gmo $(srcdir)/ga.po
test ! -f ga.gmo || touch ga.gmo
fr.gmo: fr.po
rm -f fr.gmo; $(GMSGFMT) -o fr.gmo $(srcdir)/fr.po
test ! -f fr.gmo || touch fr.gmo
it.gmo: it.po
rm -f it.gmo; $(GMSGFMT) -o it.gmo $(srcdir)/it.po
test ! -f it.gmo || touch it.gmo
pa.gmo: pa.po
rm -f pa.gmo; $(GMSGFMT) -o pa.gmo $(srcdir)/pa.po
test ! -f pa.gmo || touch pa.gmo
pl.gmo: pl.po
rm -f pl.gmo; $(GMSGFMT) -o pl.gmo $(srcdir)/pl.po
test ! -f pl.gmo || touch pl.gmo
rw.gmo: rw.po
rm -f rw.gmo; $(GMSGFMT) -o rw.gmo $(srcdir)/rw.po
test ! -f rw.gmo || touch rw.gmo
sv.gmo: sv.po
rm -f sv.gmo; $(GMSGFMT) -o sv.gmo $(srcdir)/sv.po
test ! -f sv.gmo || touch sv.gmo
tr.gmo: tr.po
rm -f tr.gmo; $(GMSGFMT) -o tr.gmo $(srcdir)/tr.po
test ! -f tr.gmo || touch tr.gmo
en_GB.gmo: en_GB.po
rm -f en_GB.gmo; $(GMSGFMT) -o en_GB.gmo $(srcdir)/en_GB.po
test ! -f en_GB.gmo || touch en_GB.gmo
#>+ 3
clean-nls:
-rm -f br.gmo da.gmo de.gmo el.gmo et.gmo ga.gmo fr.gmo it.gmo pa.gmo pl.gmo rw.gmo sv.gmo tr.gmo en_GB.gmo
#>+ 10
install-nls:
@for base in br da de el et ga fr it pa pl rw sv tr en_GB ; do \
echo $(INSTALL_DATA) $$base.gmo $(DESTDIR)$(kde_locale)/$$base/LC_MESSAGES/$(PACKAGE).mo ;\
$(mkinstalldirs) $(DESTDIR)$(kde_locale)/$$base/LC_MESSAGES ; \
if test -f $$base.gmo; then $(INSTALL_DATA) $$base.gmo $(DESTDIR)$(kde_locale)/$$base/LC_MESSAGES/$(PACKAGE).mo ;\
elif test -f $(srcdir)/$$base.gmo; then $(INSTALL_DATA) $(srcdir)/$$base.gmo $(DESTDIR)$(kde_locale)/$$base/LC_MESSAGES/$(PACKAGE).mo ;\
fi ;\
done
#>+ 16
uninstall-nls:
rm -f $(DESTDIR)$(kde_locale)/br/LC_MESSAGES/$(PACKAGE).mo
rm -f $(DESTDIR)$(kde_locale)/da/LC_MESSAGES/$(PACKAGE).mo
rm -f $(DESTDIR)$(kde_locale)/de/LC_MESSAGES/$(PACKAGE).mo
rm -f $(DESTDIR)$(kde_locale)/el/LC_MESSAGES/$(PACKAGE).mo
rm -f $(DESTDIR)$(kde_locale)/et/LC_MESSAGES/$(PACKAGE).mo
rm -f $(DESTDIR)$(kde_locale)/ga/LC_MESSAGES/$(PACKAGE).mo
rm -f $(DESTDIR)$(kde_locale)/fr/LC_MESSAGES/$(PACKAGE).mo
rm -f $(DESTDIR)$(kde_locale)/it/LC_MESSAGES/$(PACKAGE).mo
rm -f $(DESTDIR)$(kde_locale)/pa/LC_MESSAGES/$(PACKAGE).mo
rm -f $(DESTDIR)$(kde_locale)/pl/LC_MESSAGES/$(PACKAGE).mo
rm -f $(DESTDIR)$(kde_locale)/rw/LC_MESSAGES/$(PACKAGE).mo
rm -f $(DESTDIR)$(kde_locale)/sv/LC_MESSAGES/$(PACKAGE).mo
rm -f $(DESTDIR)$(kde_locale)/tr/LC_MESSAGES/$(PACKAGE).mo
rm -f $(DESTDIR)$(kde_locale)/en_GB/LC_MESSAGES/$(PACKAGE).mo
#>+ 2
all-nls: $(GMOFILES)
#>+ 8
distdir-nls:$(GMOFILES)
for file in $(POFILES); do \
cp $(srcdir)/$$file $(distdir); \
done
for file in $(GMOFILES); do \
cp $(srcdir)/$$file $(distdir); \
done
#>+ 4
merge:
$(MAKE) -f $(top_srcdir)/admin/Makefile.common package-merge POFILES="${POFILES}" PACKAGE=${PACKAGE}
#>+ 2
docs-am:
#>+ 6
force-reedit:
cd $(top_srcdir) && \
$(AUTOMAKE) --gnu ksystemlog/po/Makefile
cd $(top_srcdir) && perl admin/am_edit ksystemlog/po/Makefile.in
#>+ 21
clean-bcheck:
rm -f *.bchecktest.cc *.bchecktest.cc.class a.out
bcheck: bcheck-am
bcheck-am:
@for i in ; do \
if test $(srcdir)/$$i -nt $$i.bchecktest.cc; then \
echo "int main() {return 0;}" > $$i.bchecktest.cc ; \
echo "#include \"$$i\"" >> $$i.bchecktest.cc ; \
echo "$$i"; \
if ! $(CXX) $(DEFS) -I. -I$(srcdir) -I$(top_builddir) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(KDE_CXXFLAGS) --dump-class-hierarchy -c $$i.bchecktest.cc; then \
rm -f $$i.bchecktest.cc; exit 1; \
fi ; \
echo "" >> $$i.bchecktest.cc.class; \
perl $(top_srcdir)/admin/bcheck.pl $$i.bchecktest.cc.class || { rm -f $$i.bchecktest.cc; exit 1; }; \
rm -f a.out; \
fi ; \
done
#>+ 3
final:
$(MAKE) all-am
#>+ 3
final-install:
$(MAKE) install-am
#>+ 3
no-final:
$(MAKE) all-am
#>+ 3
no-final-install:
$(MAKE) install-am
#>+ 3
cvs-clean:
$(MAKE) admindir=$(top_srcdir)/admin -f $(top_srcdir)/admin/Makefile.common cvs-clean
#>+ 3
kde-rpo-clean:
-rm -f *.rpo
#>+ 3
nmcheck:
nmcheck-am: nmcheck

@ -0,0 +1 @@
POFILES = AUTO

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -0,0 +1,555 @@
# translation of ksystemlog.po to Deutsch
# This file is distributed under the same license as the PACKAGE package.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER.
# Elias Probst <elias.probst@gmx.de>, 2005.
#
msgid ""
msgstr ""
"Project-Id-Version: ksystemlog\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2005-05-06 14:20+0200\n"
"PO-Revision-Date: 2005-05-09 21:17+0200\n"
"Last-Translator: Elias Probst <elias.probst@gmx.de>\n"
"Language-Team: Deutsch <de@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 1.10\n"
#: bootAuthenticationOptions.cpp:48
msgid "Boot Log File"
msgstr "Log-Datei für Systemstart"
#: bootAuthenticationOptions.cpp:50
msgid "Boot Log File :"
msgstr "Log-Datei für Systemstart:"
#: bootAuthenticationOptions.cpp:57
msgid "Authentication Log File"
msgstr "Authentifizierungs-Log-Datei"
#: bootAuthenticationOptions.cpp:59
msgid "Authentication Log File :"
msgstr "Authentifizierungs-Log-Datei:"
#: cronOptions.cpp:50
msgid ""
"<qt><p>These files will be analyzed to display <b>Cron Logs</b> (i.e. "
"planned tasks logs). This list also determines the order in which the files "
"are read.</p></qt>"
msgstr "<qt><p>Diese Dateien werden analysiert um <b>Cron Log-Dateien</b> (z.B. Log-Dateien geplanter Aufgaben) anzuzeigen. Zudem legt diese Liste fest, in welcher Reihenfolge die Dateien ausgelesen werden.</p></qt>"
#: cronReader.cpp:41 sambaReader.cpp:39 systemReader.cpp:40
msgid "Date"
msgstr "Datum"
#: cronReader.cpp:42 systemReader.cpp:41
msgid "Host Name"
msgstr "Rechnername"
#: cronReader.cpp:43 sambaReader.cpp:42 systemReader.cpp:42
msgid "Process"
msgstr "Prozess"
#: cronReader.cpp:44
msgid "User"
msgstr "Benutzer"
#: cronReader.cpp:45 sambaReader.cpp:43 systemReader.cpp:43 xorgReader.cpp:56
msgid "Message"
msgstr "Nachricht"
#: daemonOptions.cpp:50
msgid ""
"<qt><p>These files will be analyzed to display <b>daemons Logs</b>. This "
"list also determine the order in which the files are read.</p></qt>"
msgstr "<qt><p>Diese Dateien werden analysiert um <b>Daemon Log-Dateien</b> anzuzeigen. Zudem legt diese Liste fest, in welcher Reihenfolge die Dateien ausgelesen werden.</p></qt>"
#: defaultReader.cpp:80
msgid "Opening file '%1'..."
msgstr "Datei '%1' wird geöffnet..."
#: defaultReader.cpp:148
msgid "Log file '%1' loaded successfully."
msgstr "Log-Datei '%1' erfolgreich geladen."
#: defaultReader.cpp:235
msgid "Log file '%1' has changed."
msgstr "Log-Datei '%1' hat sich geändert."
#: defaultReader.cpp:376 ksystemlog.cpp:157 logListItem.cpp:198
msgid "none"
msgstr "nichts"
#: defaultReader.moc.cpp:34 defaultReader.moc.cpp:42
msgid "DefaultReader"
msgstr "StandardLeser"
#: detailDialog.cpp:31
msgid "Log Line Details"
msgstr "Log-Zeilen-Details"
#: detailDialog.cpp:73
msgid "&Next"
msgstr "&Weiter"
#: fileList.cpp:63 fileList.cpp:80
msgid "&Add a file"
msgstr "Datei h&inzufügen"
#: fileList.cpp:69 fileList.cpp:83
msgid "Move &Up"
msgstr "&Nach oben"
#: fileList.cpp:72 fileList.cpp:84
msgid "Move &Down"
msgstr "Nach &unten"
#: fileList.cpp:75 fileList.cpp:86
msgid "Re&move All"
msgstr "Alle ent&fernen"
#: fileList.cpp:79
msgid "File list"
msgstr "Dateiliste"
#: fileList.cpp:123 specificFileList.cpp:83
msgid "All files (*)"
msgstr "Alle Dateien (*)"
#: fileList.cpp:123 specificFileList.cpp:83
msgid "Log files (*.log)"
msgstr "Log-Dateien (*.log)"
#: fileList.cpp:123 specificFileList.cpp:83
msgid "Choose a log file"
msgstr "Wähle eine Log-Datei"
#: fileList.cpp:143
msgid "'%1' is not valid."
msgstr "'%1' ist nicht gültig."
#: fileList.cpp:144 fileList.cpp:151 fileList.cpp:158
msgid "File selection failed"
msgstr "Dateiauswahl fehlgeschlagen"
#: fileList.cpp:150
msgid "'%1' is not a local file."
msgstr "'%1' ist keine lokale Datei."
#: fileList.cpp:157
msgid "'%1' is a folder."
msgstr "'%1' ist ein Verzeichnis."
#: generalOptions.cpp:46
msgid "Parsing"
msgstr "Analysiere"
#: generalOptions.cpp:48
msgid "Parsed line number :"
msgstr "Analysierte Zeilennummer:"
#: kernelOptions.cpp:50
msgid ""
"<qt><p>These files will be analyzed to display <b>Kernel logs</b>. This list "
"also determines the order in which the files are read.</p></qt>"
msgstr "<qt><p>Diese Dateien werden analysiert um <b>Kernel Log-Dateien</b> anzuzeigen. Zudem legt diese Liste fest, in welcher Reihenfolge die Dateien ausgelesen werden.</p></qt>"
#: ksystemlog.cpp:160
msgid "debug"
msgstr "Fehler finden und entfernen"
#: ksystemlog.cpp:162
msgid "information"
msgstr "Information"
#: ksystemlog.cpp:165
msgid "notice"
msgstr "Notiz"
#: ksystemlog.cpp:168
msgid "warning"
msgstr "Warnung"
#: ksystemlog.cpp:171
msgid "error"
msgstr "Fehler"
#: ksystemlog.cpp:174
msgid "critical"
msgstr "Kritisch"
#: ksystemlog.cpp:175
msgid "alert"
msgstr "Alarm"
#: ksystemlog.cpp:176
msgid "emergency"
msgstr "Notfall"
#: ksystemlog.cpp:225
msgid "Resu&me Parsing"
msgstr "A&nalysieren wiederaufnehmen"
#: ksystemlog.cpp:228
msgid "S&top Parsing"
msgstr "Analysieren s&toppen"
#: ksystemlog.cpp:230
msgid "&Details"
msgstr "D&etails"
#: ksystemlog.cpp:233
msgid "S&ystem log"
msgstr "S&ystem-Log"
#: ksystemlog.cpp:234
msgid "&Kernel log"
msgstr "&Kernel-Log"
#: ksystemlog.cpp:235
msgid "&X.org log"
msgstr "&X.org-Log"
#: ksystemlog.cpp:236
msgid "&Boot log"
msgstr "&Systemstart-Log"
#: ksystemlog.cpp:237
msgid "A&uthentication log"
msgstr "A&uthentifizierungs-Log"
#: ksystemlog.cpp:238
msgid "&Daemons log"
msgstr "&Daemon-Log"
#: ksystemlog.cpp:239
msgid "&Planned tasks log"
msgstr "Log ge&planter Aufgaben"
#: ksystemlog.cpp:241
msgid "&Apache log"
msgstr "&Apache-Log"
#: ksystemlog.cpp:242
msgid "Pro&FTP log"
msgstr "Pro&FTP-Log"
#: ksystemlog.cpp:243
msgid "Sa&mba log"
msgstr "Sa&mba-Log"
#: ksystemlog.cpp:245
msgid "&Enable Detailed Tooltips"
msgstr "D&etaillierte Kurzinfos aktivieren"
#: ksystemlog.cpp:248
msgid "&Display New Lines"
msgstr "Ne&ue Zeilen anzeigen"
#: ksystemlog.cpp:359
msgid "%1 log lines."
msgstr "%1 Log-Zeilen."
#: ksystemlog.cpp:363
msgid "Last updating : %1."
msgstr "Zuletzt aktualisiert: %1."
#: ksystemlog.cpp:400
msgid "No items selected. Nothing copied to clipboard."
msgstr "Keine Einträge ausgewählt. Es wurde nichts in die Zwischenablage kopiert."
#: ksystemlog.cpp:407
msgid "%1 log lines copied to clipboard."
msgstr "%1 Log-Zeilen wurden in die Zwischenablage kopiert."
#: ksystemlog.cpp:418
msgid "No items selected. Please select items to be able to save them."
msgstr "Keine Einträge ausgewählt. Bitte Einträge auswählen, um diese speichern zu können."
#: ksystemlog.cpp:448
msgid "%1 log lines saved to '%2'."
msgstr "%1 Log-Zeilen nach '%2' gesichert."
#: ksystemlog.cpp:451
msgid "Unable to save file '%1': Permission Denied."
msgstr "Konnte Datei '%1' nicht speichern: Zugriff wurde verweigert."
#: ksystemlog.cpp:452
msgid "Unable to save file."
msgstr "Konnte Datei nicht speichern."
#: ksystemlog.cpp:569
msgid "Open Location"
msgstr "Datei öffnen"
#: ksystemlog.cpp:582
msgid "Malformed URL. Unable to open this file."
msgstr "Ungültige URL. Datei kann nicht geöffnet werden."
#: ksystemlog.cpp:583
msgid "Unable to open this file."
msgstr "Datei kann nicht geöffnet werden."
#: ksystemlog.cpp:703 ksystemlog.cpp:741 ksystemlog.cpp:799
msgid "URL '%1' is not valid, skipping this URL."
msgstr "Die URL '%1' ist nicht gültig. Übergehe diese URL."
#: ksystemlog.cpp:722
msgid "The two arrays size are different, skipping the reading of log files."
msgstr "Die Größen der Felder sind unterschiedlich. Das Lesen der Log-Dateien wird übersprungen."
#: ksystemlog.cpp:871
msgid "Loading file log..."
msgstr "Log-Datei wird geladen..."
#: ksystemlog.cpp:901 options.cpp:132
msgid "System Log"
msgstr "System-Log"
#: ksystemlog.cpp:933
msgid "Boot Log"
msgstr "Systemstart-Log"
#: ksystemlog.cpp:964
msgid "Authentication Log"
msgstr "Authentifizierungs-Log"
#: ksystemlog.cpp:994 options.cpp:161
msgid "Kernel Log"
msgstr "Kernel-Log"
#: ksystemlog.cpp:1024 options.cpp:215
msgid "Daemons Log"
msgstr "Daemon-Log"
#: ksystemlog.cpp:1059
msgid "Planified tasks Log"
msgstr "Log geplanter Aufgaben"
#: ksystemlog.cpp:1090 options.cpp:242
msgid "X.org Log"
msgstr "X.org-Log"
#: ksystemlog.cpp:1122
msgid "Samba Server Log"
msgstr "Samba Server-Log"
#: logListItem.cpp:123 logListItem.cpp:166
msgid "Date :"
msgstr "Datum:"
#: logListItem.cpp:124 logListItem.cpp:167
msgid "Host Name :"
msgstr "Rechnername:"
#: logListItem.cpp:125 logListItem.cpp:168
msgid "Process :"
msgstr "Prozess:"
#: logListItem.cpp:126
msgid "User :"
msgstr "Benutzer:"
#: logListItem.cpp:127 logListItem.cpp:169
msgid "Level :"
msgstr "Einstufung:"
#: logListItem.cpp:128 logListItem.cpp:170 logListItem.cpp:202
msgid "Original File :"
msgstr "Originaldatei:"
#: logListItem.cpp:141 logListItem.cpp:153 logListItem.cpp:184
msgid "<hr />"
msgstr "<hr/>"
#: logListItem.cpp:198 logListItem.cpp:200
msgid "Type :"
msgstr "Typ:"
#: logListItem.moc.cpp:34 logListItem.moc.cpp:42
msgid "LogListItem"
msgstr "LogListItem"
#: main.cpp:31
msgid "A system log viewer tool for KDE"
msgstr "Ein Programm für KDE um System-Logs darzustellen."
#: main.cpp:37
msgid "Document to open"
msgstr "Zu öffnendes Dokument"
#: main.cpp:43
msgid "KSystemlog"
msgstr "KSystemlog"
#: options.cpp:77
msgid "General"
msgstr "Allgemein"
#: options.cpp:106
msgid "Boot / Authentication"
msgstr "Systemstart/Authentifizierung"
#: options.cpp:106
msgid "Boot && Authentication Logs"
msgstr "Systemstart && Authentifizierungs-Logs"
#: options.cpp:188
msgid "Cron Log"
msgstr "Cron-Log"
#: options.cpp:270
msgid "Samba Log"
msgstr "Samba-Log"
#: rc.cpp:6
#, no-c-format
msgid "Logs"
msgstr "Logs"
#: rc.cpp:9
#, no-c-format
msgid "&Window"
msgstr "&Fenster"
#: rc.cpp:12
#, no-c-format
msgid "Log Toolbar"
msgstr "Log-Werkzeugleiste"
#: rc.cpp:15
#, no-c-format
msgid "Main toolbar"
msgstr "Haupt-Werkzeugleiste"
#: reader.cpp:162
msgid "This file is not valid. Please adjust it in the settings of KSystemLog."
msgstr "Diese Datei ist ungültig. Bitte in den Einstellungen von KSystemLog korrigieren."
#: reader.cpp:163 reader.cpp:175
msgid "The file does not exist"
msgstr "Die Datei existiert nicht"
#: reader.cpp:174
msgid "The file '%1' does not exist."
msgstr "Die Datei '%1' existiert nicht."
#: reader.cpp:183
msgid "You do not have sufficient permissions to read '%1'."
msgstr "Es bestehen nicht genügende Berechtigungen um '%1' zu lesen."
#: reader.cpp:184
msgid "Insufficient permissions"
msgstr "Unzureichende Zugriffsrechte"
#: sambaOptions.cpp:50
msgid ""
"<qt><p>These files will be analyzed to display <b>Samba log</b>. This list "
"also determines the order in which the files are read.</p></qt>"
msgstr "<qt><p>Diese Dateien werden analysiert um <b>Samba Log-Dateien</b> anzuzeigen. Zudem legt diese Liste fest, in welcher Reihenfolge die Dateien ausgelesen werden.</p></qt>"
#: sambaReader.cpp:40
msgid "Time"
msgstr "Zeit"
#: sambaReader.cpp:41
msgid "Host"
msgstr "Rechnername"
#: sortedReader.moc.cpp:34 sortedReader.moc.cpp:42
msgid "SortedReader"
msgstr "SortedReader"
#: specificFileList.cpp:51 specificFileList.cpp:55
msgid "&Change status"
msgstr "Einst&ufung ändern"
#: specificFileList.cpp:111
msgid "Selecting the file type"
msgstr "Dateityp auswählen"
#: specificFileList.cpp:117
msgid "Please select the type of this file :"
msgstr "Bitte den Typ dieser Datei auswählen"
#: specificFileList.cpp:193
msgid "The two arrays size are different, skipping the reading of generic paths."
msgstr "Die beiden Feldgrößen sind unterschiedlich. Das einlesen der Standardpfade wird übersprungen."
#: systemOptions.cpp:50
msgid ""
"<qt><p>These files will be analyzed to display <b>System logs</b>. This list "
"also determines the order in which the files are read.</p></qt>"
msgstr "<qt><p>Diese Dateien werden analysiert um <b>Systen Log-Dateien</b> anzuzeigen. Zudem legt diese Liste fest, in welcher Reihenfolge die Dateien ausgelesen werden.</p></qt>"
#: systemOptions.moc.cpp:34 systemOptions.moc.cpp:42
msgid "SystemOptions"
msgstr "SystemOptions"
#: _translatorinfo.cpp:1
msgid ""
"_: NAME OF TRANSLATORS\n"
"Your names"
msgstr ""
"_: Namen der Übersetzer\n"
"Elias Probst"
#: _translatorinfo.cpp:3
msgid ""
"_: EMAIL OF TRANSLATORS\n"
"Your emails"
msgstr ""
"_: eMail-Adressen der Übersetzer\n"
"elias.probst@gmx.de"
#: view.cpp:77
msgid "Clear search"
msgstr "Suche zurücksetzen"
#: view.cpp:79
msgid "Filter :"
msgstr "Filter:"
#: view.cpp:85
msgid "Column :"
msgstr "Spalte:"
#: view.cpp:164 view.cpp:296
msgid "All"
msgstr "Alles"
#: xorgOptions.cpp:50
msgid ""
"<qt><p>These files will be analyzed to display <b>X.org log</b>. This list "
"also determines the order in which the files are read.</p></qt>"
msgstr "<qt><p>Diese Dateien werden analysiert um <b>X.org Log-Dateien</b> anzuzeigen. Zudem legt diese Liste fest, in welcher Reihenfolge die Dateien ausgelesen werden.</p></qt>"
#: xorgReader.cpp:54
msgid "Order"
msgstr "Reihenfolge"
#: xorgReader.cpp:55
msgid "Type"
msgstr "Typ"
#: xorgReader.cpp:89
msgid "probed"
msgstr "geprüft"
#: xorgReader.cpp:90
msgid "from config file"
msgstr "Aus Konfigurationsdatei"
#: xorgReader.cpp:91
msgid "default setting"
msgstr "Standardeinstellung"
#: xorgReader.cpp:92
msgid "from command Line"
msgstr "Von Kommandozeile"
#: xorgReader.cpp:97
msgid "not implemented"
msgstr "nicht implementiert"

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -0,0 +1,76 @@
## Makefile.am for ksystemlog
# this is the program that gets installed. it's name is used for all
# of the other Makefile.am variables
bin_PROGRAMS = ksystemlog
# set the include path for X, qt and KDE
INCLUDES = -I$(top_srcdir)/ksystemlog/src -I$(top_builddir)/ksystemlog/src/config \
-I$(top_srcdir)/ksystemlog/src/acpid -I$(top_builddir)/ksystemlog/src \
-I$(top_srcdir)/ksystemlog/src/apache -I$(top_srcdir)/ksystemlog/src/bootauth \
-I$(top_srcdir)/ksystemlog/src/cron -I$(top_srcdir)/ksystemlog/src/cups \
-I$(top_srcdir)/ksystemlog/src/daemon -I$(top_srcdir)/ksystemlog/src/kernel \
-I$(top_srcdir)/ksystemlog/src/postfix -I$(top_srcdir)/ksystemlog/src/samba \
-I$(top_srcdir)/ksystemlog/src/system -I$(top_srcdir)/ksystemlog/src/xorg $(all_includes)
# the library search path.
ksystemlog_LDFLAGS = $(KDE_RPATH) $(all_libraries) -lkutils
# the libraries to link against.
ksystemlog_LDADD = \
$(top_builddir)/ksystemlog/src/bootauth/libksystemlog_bootauth.la \
$(top_builddir)/ksystemlog/src/config/libksystemlog_config.la \
$(top_builddir)/ksystemlog/src/acpid/libksystemlog_acpid.la \
$(top_builddir)/ksystemlog/src/daemon/libksystemlog_daemon.la \
$(top_builddir)/ksystemlog/src/cups/libksystemlog_cups.la \
$(top_builddir)/ksystemlog/src/kernel/libksystemlog_kernel.la \
$(top_builddir)/ksystemlog/src/postfix/libksystemlog_postfix.la \
$(top_builddir)/ksystemlog/src/xorg/libksystemlog_xorg.la \
$(top_builddir)/ksystemlog/src/system/libksystemlog_system.la \
$(top_builddir)/ksystemlog/src/cron/libksystemlog_cron.la \
$(top_builddir)/ksystemlog/src/apache/libksystemlog_apache.la \
$(top_builddir)/ksystemlog/src/samba/libksystemlog_samba.la \
$(LIB_KFILE) $(LIB_KDEPRINT)
# which sources should be compiled for ksystemlog
# these are the headers for your project
# client stuff
# let automoc handle all of the meta source files (moc)
METASOURCES = AUTO
messages: rc.cpp
$(EXTRACTRC) `find . -name \*.ui -o -name \*.rc` > rc.cpp
$(XGETTEXT) *.cpp -o $(podir)/ksystemlog.pot
KDE_ICON = AUTO
# this is where the kdelnk file will go
kdelnkdir = $(kde_appsdir)/Utilities
kdelnk_DATA = ksystemlog.desktop
# this is where the XML-GUI resource file goes
rcdir = $(kde_datadir)/ksystemlog
rc_DATA = ksystemlogui.rc
ksystemlog_SOURCES = detailDialogBase.ui loggerDialogBase.ui detailDialog.cpp \
fileList.cpp generalOptions.cpp globals.cpp ksystemlog.cpp logFile.cpp logLevel.cpp \
logLine.cpp logLineList.cpp logListItem.cpp logViewColumn.cpp main.cpp options.cpp \
reader.cpp specificFileList.cpp view.cpp viewToolTip.cpp logManager.cpp \
defaultReader.cpp logMode.cpp ksystemlogiface.skel childLogLine.cpp parentLogLine.cpp \
logLineTree.cpp readerFactory.cpp itemFactory.cpp logViewColumns.cpp loadingDialog.cpp \
slotLogAction.cpp parsingHelper.cpp logLineFilter.cpp loggerDialog.cpp findManager.cpp
noinst_HEADERS = defaultReader.h detailDialog.h fileList.h generalOptions.h \
globals.h ksystemlogiface.h logFile.h logLevel.h logLine.h logLineList.h \
logListItem.h logViewColumn.h options.h reader.h specificFileList.h view.h \
viewToolTip.h logManager.h logMode.h childLogLine.h parentLogLine.h logLineTree.h \
readerFactory.h itemFactory.h logViewColumns.h loadingDialog.h slotLogAction.h \
slotLogActionCompatibility.h parsingHelper.h logLineFilter.h loggerDialog.h findManager.h
SUBDIRS = config bootauth acpid apache cron system xorg postfix kernel cups daemon samba .

@ -0,0 +1,8 @@
INCLUDES = -I$(top_srcdir)/ksystemlog/src -I$(top_builddir)/ksystemlog/src/config $(all_includes)
METASOURCES = AUTO
noinst_LTLIBRARIES = libksystemlog_acpid.la
libksystemlog_acpid_la_LDFLAGS = $(all_libraries)
libksystemlog_acpid_la_SOURCES = acpidOptions.cpp acpidReader.cpp
noinst_HEADERS = acpidOptions.h acpidReader.h

@ -0,0 +1,104 @@
/***************************************************************************
* Copyright (C) 2005 by Nicolas Ternisien *
* nicolas.ternisien@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
//Qt includes
#include <qlayout.h>
#include <qvgroupbox.h>
#include <qbuttongroup.h>
#include <qlabel.h>
#include <qpushbutton.h>
#include <qvbox.h>
#include <qhbox.h>
//KDE includes
#include <klocale.h>
#include <kactioncollection.h>
#include <kbuttonbox.h>
#include <klistbox.h>
#include <kfiledialog.h>
#include <kurl.h>
#include <kmessagebox.h>
#include <kiconloader.h>
#include <kdebug.h>
//Project includes
#include "acpidOptions.h"
#include "ksystemlogConfig.h"
AcpidOptions::AcpidOptions(QWidget *parent) :
QWidget(parent)
{
QHBoxLayout *layout = new QHBoxLayout(this);
layout->setAutoAdd(true);
QString description=i18n("<qt><p>These files will be analyzed to display <b>ACPId log</b>. This list also determines the order in which the files are read.</p></qt>");
fileList=new FileList(this, description);
connect(fileList, SIGNAL(fileListChanged(int)), this, SLOT(slotFileListChanged(int)));
readConfig();
}
AcpidOptions::~AcpidOptions() {
//TODO Delete fileList (and also in other *Options classes)
}
bool AcpidOptions::isValid() {
if (fileList->count()>0)
return(true);
else
return(false);
}
void AcpidOptions::slotFileListChanged(int itemLeft) {
if (itemLeft==0)
emit optionsChanged(false);
else
emit optionsChanged(true);
}
void AcpidOptions::saveConfig() {
kdDebug() << "Save config from AcpidOptions" << endl;
QStringList list;
int count=fileList->count();
for (int i=0; i<count; i++) {
list.push_back(fileList->getText(i));
}
KSystemLogConfig::setAcpidPaths(list);
}
void AcpidOptions::readConfig() {
QStringList files(KSystemLogConfig::acpidPaths());
QStringList::iterator it;
for(it=files.begin(); it!=files.end(); ++it) {
fileList->insertItem(*it);
}
}
#include "acpidOptions.moc"

@ -0,0 +1,63 @@
/***************************************************************************
* Copyright (C) 2005 by Nicolas Ternisien *
* nicolas.ternisien@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#ifndef _ACPID_OPTIONS_H_
#define _ACPID_OPTIONS_H_
#include <qframe.h>
#include <qspinbox.h>
#include <kpopupmenu.h>
#include <kconfig.h>
#include <kdialogbase.h>
#include <kurlrequester.h>
#include <kurl.h>
#include <kaction.h>
#include "globals.h"
#include "fileList.h"
class AcpidOptions : public QWidget {
Q_OBJECT
public:
AcpidOptions(QWidget *parent = 0);
~AcpidOptions();
bool isValid();
public slots:
void saveConfig();
void readConfig();
void slotFileListChanged(int itemLeft);
signals:
void optionsChanged(bool valid);
private:
FileList* fileList;
};
#endif

@ -0,0 +1,113 @@
/***************************************************************************
* Copyright (C) 2005 by Nicolas Ternisien *
* nicolas.ternisien@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#include <klocale.h>
#include <kmessagebox.h>
#include "parsingHelper.h"
#include "acpidReader.h"
AcpidReader::AcpidReader(QObject *parent, const char *name) :
DefaultReader(parent, name)
{
}
AcpidReader::~AcpidReader() {
}
void AcpidReader::initColumns(LogViewColumns* columns) {
columns->append(new LogViewColumn(i18n("Date"), true, false));
columns->append(new LogViewColumn(i18n("Type"), true, true));
columns->append(new LogViewColumn(i18n("Message"), true, false));
}
LogLine* AcpidReader::parseMessage(QString& logLine, LogFile* logFile) {
int dateBegin=logLine.find("[");
int dateEnd=logLine.find("]");
QString type;
QString message;
QDate date;
QTime time;
//If there is a format problem in the line
if (dateBegin==-1 || dateEnd==-1) {
type=i18n("none");
message=logLine;
date=QDate::currentDate();
time=QTime::currentTime();
}
else {
QString strDate=logLine.mid(dateBegin+1, dateEnd-dateBegin-1);
QString month=strDate.mid(4, 3);
QString day=strDate.mid(8, 2);
QString hour=strDate.mid(11, 2);
QString min=strDate.mid(14, 2);
QString sec=strDate.mid(17, 2);
QString year=strDate.mid(20, 4);
date=QDate(year.toInt(), ParsingHelper::parseMonthNumber(month), day.toInt());
time=QTime(hour.toInt(), min.toInt(), sec.toInt());
//kdDebug() << "Date=" << date.toString() << endl;
//kdDebug() << "Time=" << time.toString() << endl;
logLine=logLine.remove(0, dateEnd+2);
int endType=logLine.find("\"");
//If the " character does not exist, it means that there is no Type category
if (endType==-1) {
type=i18n("none");
message=logLine;
}
else {
type=logLine.left(endType-1);
logLine=logLine.remove(0, endType+1);
message=logLine.left(logLine.length()-2);
}
}
QStringList list;
list.push_back(type);
list.push_back(message);
QString filePath=logFile->url.path();
LogLine* line=new LogLine(date, time, list, filePath, Globals::informationLogLevel, Globals::acpidMode->id);
return(line);
}
#include "acpidReader.moc"

@ -0,0 +1,54 @@
/***************************************************************************
* Copyright (C) 2005 by Nicolas Ternisien *
* nicolas.ternisien@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#ifndef _ACPID_READER_H_
#define _ACPID_READER_H_
#include <qobject.h>
#include <qstringlist.h>
#include <kurl.h>
#include <qfile.h>
#include "view.h"
#include "globals.h"
#include "defaultReader.h"
/**
* @author Nicolas Ternisien
*/
class AcpidReader : public DefaultReader {
Q_OBJECT
public:
AcpidReader(QObject *parent = 0, const char *name = 0);
virtual ~AcpidReader();
virtual void initColumns(LogViewColumns* columns);
protected:
virtual LogLine* parseMessage(QString& logLine, LogFile* logFile);
};
#endif

@ -0,0 +1,8 @@
INCLUDES = -I$(top_srcdir)/ksystemlog/src -I$(top_builddir)/ksystemlog/src/config $(all_includes)
METASOURCES = AUTO
noinst_LTLIBRARIES = libksystemlog_apache.la
libksystemlog_apache_la_LDFLAGS = $(all_libraries)
libksystemlog_apache_la_SOURCES = apacheAccessReader.cpp apacheOptions.cpp apacheReader.cpp
noinst_HEADERS = apacheAccessReader.h apacheOptions.h apacheReader.h

@ -0,0 +1,119 @@
/***************************************************************************
* Copyright (C) 2005 by Nicolas Ternisien *
* nicolas.ternisien@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#include <klocale.h>
#include <kmessagebox.h>
#include "parsingHelper.h"
#include "apacheAccessReader.h"
ApacheAccessReader::ApacheAccessReader(QObject *parent, const char *name) :
DefaultReader(parent, name)
{
}
ApacheAccessReader::~ApacheAccessReader() {
}
void ApacheAccessReader::initColumns(LogViewColumns* columns) {
columns->append(new LogViewColumn(i18n("Date"), true, false));
columns->append(new LogViewColumn(i18n("Host Name"), true, true));
columns->append(new LogViewColumn(i18n("Id."), true, true)); //=Identification protocol [From RFC1413 (see Google for more infos)]
columns->append(new LogViewColumn(i18n("User"), true, true));
columns->append(new LogViewColumn(i18n("Response"), true, true));
columns->append(new LogViewColumn(i18n("Bytes Sent"), true, false));
columns->append(new LogViewColumn(i18n("Agent Identity"), true, true));
columns->append(new LogViewColumn(i18n("HTTP Request"), true, false));
columns->append(new LogViewColumn(i18n("URL"), true, true));
}
LogLine* ApacheAccessReader::parseMessage(QString& logLine, LogFile* logFile) {
int spacePos=logLine.find(' ');
QString hostName=logLine.left(spacePos);
logLine=logLine.remove(0, spacePos+1);
spacePos=logLine.find(' ');
QString identd=logLine.left(spacePos);
logLine=logLine.remove(0, spacePos+1);
spacePos=logLine.find(' ');
QString userName=logLine.left(spacePos);
logLine=logLine.remove(0, spacePos+1);
int endDate=logLine.find(']');
QString strDateTime=logLine.left(endDate);
logLine=logLine.remove(0, endDate+3);
QDateTime dateTime=ParsingHelper::parseDateTimeFromHTTP(strDateTime);
QDate date=dateTime.date();
QTime time=dateTime.time();
int endQuote=logLine.find('\"');
QString message=logLine.left(endQuote);
logLine=logLine.remove(0, endQuote+2);
spacePos=logLine.find(' ');
QString httpResponse=ParsingHelper::parseHTTPResponse(logLine.left(spacePos));
logLine=logLine.remove(0, spacePos+1);
spacePos=logLine.find(' ');
QString bytesSent=ParsingHelper::parseSize(logLine.left(spacePos));
logLine=logLine.remove(0, spacePos+2);
QString url;
endQuote=logLine.find('\"');
if (endQuote!=-1) {
url=logLine.left(endQuote);
logLine=logLine.remove(0, endQuote+3);
}
QString agent;
//TODO Convert this value to find a more simple name for the Agent
endQuote=logLine.find('\"');
if (endQuote!=-1) {
agent=ParsingHelper::parseAgent(logLine.left(endQuote));
}
QStringList list;
list.push_back(hostName);
list.push_back(identd);
list.push_back(userName);
list.push_back(httpResponse);
list.push_back(bytesSent);
list.push_back(agent);
list.push_back(message);
list.push_back(url);
QString filePath=logFile->url.path();
LogLine* line=new LogLine(date, time, list, filePath, Globals::informationLogLevel, Globals::apacheAccessMode->id);
return(line);
}
#include "apacheAccessReader.moc"

@ -0,0 +1,54 @@
/***************************************************************************
* Copyright (C) 2005 by Nicolas Ternisien *
* nicolas.ternisien@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#ifndef _APACHE_ACCESS_READER_H_
#define _APACHE_ACCESS_READER_H_
#include <qobject.h>
#include <qstringlist.h>
#include <kurl.h>
#include <qfile.h>
#include "view.h"
#include "globals.h"
#include "defaultReader.h"
/**
* @author Nicolas Ternisien
*/
class ApacheAccessReader : public DefaultReader {
Q_OBJECT
public:
ApacheAccessReader(QObject *parent = 0, const char *name = 0);
virtual ~ApacheAccessReader();
virtual void initColumns(LogViewColumns* columns);
protected:
virtual LogLine* parseMessage(QString& logLine, LogFile* logFile);
};
#endif

@ -0,0 +1,124 @@
/***************************************************************************
* Copyright (C) 2005 by Nicolas Ternisien *
* nicolas.ternisien@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
//Qt includes
#include <qlayout.h>
#include <qvgroupbox.h>
#include <qbuttongroup.h>
#include <qlabel.h>
#include <qpushbutton.h>
#include <qvbox.h>
#include <qhbox.h>
//KDE includes
#include <klocale.h>
#include <kactioncollection.h>
#include <kbuttonbox.h>
#include <klistbox.h>
#include <kfiledialog.h>
#include <kurl.h>
#include <kmessagebox.h>
#include <kiconloader.h>
#include <kdebug.h>
//Project includes
#include "apacheOptions.h"
#include "ksystemlogConfig.h"
ApacheOptions::ApacheOptions(QWidget *parent) :
QWidget(parent),
tabs(this, "tabs"),
apacheFileList(this, i18n("<qt><p>These files will be analyzed to display <b>Apache log</b>. This list also determines the order in which the files are read.</p></qt>")),
apacheAccessFileList(this, i18n("<qt><p>These files will be analyzed to display <b>Apache Access log</b>. This list also determines the order in which the files are read.</p></qt>"))
{
QHBoxLayout *layout = new QHBoxLayout(this);
layout->setAutoAdd(true);
tabs.addTab(&apacheFileList, Globals::apacheMode->pixmap, Globals::apacheMode->name);
tabs.addTab(&apacheAccessFileList, Globals::apacheAccessMode->pixmap, Globals::apacheAccessMode->name);
connect(&apacheFileList, SIGNAL(fileListChanged(int)), this, SLOT(slotFileListChanged(int)));
connect(&apacheAccessFileList, SIGNAL(fileListChanged(int)), this, SLOT(slotFileListChanged(int)));
readConfig();
}
ApacheOptions::~ApacheOptions() {
}
bool ApacheOptions::isValid() {
if (apacheFileList.count()>0 && apacheAccessFileList.count()>0)
return(true);
else
return(false);
}
void ApacheOptions::slotFileListChanged(int itemLeft) {
if (itemLeft==0)
emit optionsChanged(false);
else
emit optionsChanged(true);
}
void ApacheOptions::saveConfig() {
kdDebug() << "Save config from ApacheOptions" << endl;
QStringList list;
int count=apacheFileList.count();
for (int i=0; i<count; i++) {
list.push_back(apacheFileList.getText(i));
}
KSystemLogConfig::setApachePaths(list);
list.clear();
count=apacheAccessFileList.count();
for (int i=0; i<count; i++) {
list.push_back(apacheAccessFileList.getText(i));
}
KSystemLogConfig::setApacheAccessPaths(list);
}
void ApacheOptions::readConfig() {
QStringList apacheFiles(KSystemLogConfig::apachePaths());
QStringList::iterator it;
for(it=apacheFiles.begin(); it!=apacheFiles.end(); ++it) {
apacheFileList.insertItem(*it);
}
QStringList apacheAccessFiles(KSystemLogConfig::apacheAccessPaths());
for(it=apacheAccessFiles.begin(); it!=apacheAccessFiles.end(); ++it) {
apacheAccessFileList.insertItem(*it);
}
}
#include "apacheOptions.moc"

@ -0,0 +1,68 @@
/***************************************************************************
* Copyright (C) 2005 by Nicolas Ternisien *
* nicolas.ternisien@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#ifndef _APACHE_OPTIONS_H_
#define _APACHE_OPTIONS_H_
#include <qframe.h>
#include <qspinbox.h>
#include <kpopupmenu.h>
#include <kconfig.h>
#include <kdialogbase.h>
#include <kurlrequester.h>
#include <kurl.h>
#include <kaction.h>
#include <ktabwidget.h>
#include "globals.h"
#include "fileList.h"
#include "logMode.h"
class ApacheOptions : public QWidget {
Q_OBJECT
public:
ApacheOptions(QWidget *parent = 0);
~ApacheOptions();
bool isValid();
public slots:
void saveConfig();
void readConfig();
void slotFileListChanged(int itemLeft);
signals:
void optionsChanged(bool valid);
private:
KTabWidget tabs;
FileList apacheFileList;
FileList apacheAccessFileList;
};
#endif

@ -0,0 +1,154 @@
/***************************************************************************
* Copyright (C) 2005 by Nicolas Ternisien *
* nicolas.ternisien@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#include <klocale.h>
#include <kmessagebox.h>
#include "parsingHelper.h"
#include "apacheReader.h"
ApacheReader::ApacheReader(QObject *parent, const char *name) :
DefaultReader(parent, name)
{
initializeTypeLevels();
}
ApacheReader::~ApacheReader() {
}
void ApacheReader::initColumns(LogViewColumns* columns) {
columns->append(new LogViewColumn(i18n("Date"), true, false));
columns->append(new LogViewColumn(i18n("Client"), true, false));
columns->append(new LogViewColumn(i18n("Message"), true, false));
}
LogLine* ApacheReader::parseMessage(QString& logLine, LogFile* logFile) {
/*
* Log line examples :
* [Wed May 18 22:16:02 2005] [error] [client 127.0.0.1] File does not exist: /var/www/html/ksystemlog/screenshots/small/kernel-view.png, referer: http://localhost.localdomain/ksystemlog/screenshots.php
* [Wed May 18 22:16:02 2005] [error] [client 127.0.0.1] File does not exist: /var/www/html/ksystemlog/screenshots/small/system-filter.png, referer: http://localhost.localdomain/ksystemlog/screenshots.php
* [Thu May 19 18:00:19 2005] [notice] mod_jk2.post_config() first invocation
* [Thu May 19 18:00:19 2005] [notice] Digest: generating secret for digest authentication ...
* [client 127.0.0.1] PHP Parse error: parse error, unexpected T_PRIVATE, expecting T_STRING in /mnt/boulot/web/annivernet/src/fonctions/formulaire.inc.php on line 25
*/
QDate date;
QTime time;
QString level;
//Temporary variable
int squareBracket;
//Special case which sometimes happens
if (logLine.find("[client")==0) {
date=QDate::currentDate();
time=QTime::currentTime();
level="notice";
}
else {
//The Date
int dateBegin=logLine.find("[");
int dateEnd=logLine.find("]");
QString type;
QString message;
QString strDate=logLine.mid(dateBegin+1, dateEnd-dateBegin-1);
QString month=strDate.mid(4, 3);
QString day=strDate.mid(8, 2);
QString hour=strDate.mid(11, 2);
QString min=strDate.mid(14, 2);
QString sec=strDate.mid(17, 2);
QString year=strDate.mid(20, 4);
date=QDate(year.toInt(), ParsingHelper::parseMonthNumber(month), day.toInt());
time=QTime(hour.toInt(), min.toInt(), sec.toInt());
logLine=logLine.remove(0, dateEnd+3);
//The log level
squareBracket=logLine.find("]");
level=logLine.left(squareBracket);
logLine=logLine.remove(0, squareBracket+2);
}
//The client
int beginSquareBracket=logLine.find("[client");
squareBracket=logLine.find("]");
QString client;
if (beginSquareBracket==-1 || squareBracket==-1) {
client="";
}
else {
client=logLine.mid(8, squareBracket-8); //8=strlen("[client ")
logLine=logLine.remove(0, squareBracket+2);
}
QStringList list;
list.push_back(client);
list.push_back(logLine);
QString filePath=logFile->url.path();
LogLine* line=new LogLine(date, time, list, filePath, getTypeLevel(level), Globals::apacheMode->id);
return(line);
}
void ApacheReader::initializeTypeLevels() {
mapTypeLevels["notice"]=Globals::informationLogLevel;
mapTypeLevels["warn"]=Globals::warningLogLevel;
mapTypeLevels["error"]=Globals::errorLogLevel;
}
LogLevel* ApacheReader::getTypeLevel(const QString& type) {
QMap<QString, LogLevel*>::iterator it;
it=mapTypeLevels.find(type);
if (it!=mapTypeLevels.end()) {
return(*it);
}
else {
kdDebug() << i18n("New Log Level detected: Please send this log file to the KSystemLog developer to add it.") << endl;
return(Globals::noneLogLevel);
}
}
#include "apacheReader.moc"

@ -0,0 +1,62 @@
/***************************************************************************
* Copyright (C) 2005 by Nicolas Ternisien *
* nicolas.ternisien@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#ifndef _APACHE_READER_H_
#define _APACHE_READER_H_
#include <qobject.h>
#include <qstringlist.h>
#include <kurl.h>
#include <qfile.h>
#include "view.h"
#include "globals.h"
#include "defaultReader.h"
/**
* @author Nicolas Ternisien
*/
class ApacheReader : public DefaultReader {
Q_OBJECT
public:
ApacheReader(QObject *parent = 0, const char *name = 0);
virtual ~ApacheReader();
virtual void initColumns(LogViewColumns* columns);
protected:
virtual LogLine* parseMessage(QString& logLine, LogFile* logFile);
private:
QMap<QString, LogLevel*> mapTypeLevels;
void initializeTypeLevels();
LogLevel* getTypeLevel(const QString& type);
};
#endif

@ -0,0 +1,8 @@
INCLUDES = -I$(top_srcdir)/ksystemlog/src -I$(top_builddir)/ksystemlog/src/config $(all_includes)
METASOURCES = AUTO
noinst_LTLIBRARIES = libksystemlog_bootauth.la
libksystemlog_bootauth_la_LDFLAGS = $(all_libraries)
libksystemlog_bootauth_la_SOURCES = bootAuthenticationOptions.cpp
noinst_HEADERS = bootAuthenticationOptions.h

@ -0,0 +1,121 @@
/***************************************************************************
* Copyright (C) 2005 by Nicolas Ternisien *
* nicolas.ternisien@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
//Qt includes
#include <qlayout.h>
#include <qlabel.h>
#include <qvgroupbox.h>
#include <qbutton.h>
#include <qradiobutton.h>
#include <qwhatsthis.h>
#include <qtooltip.h>
//KDE includes
#include <kfile.h>
#include <klocale.h>
#include <kdialogbase.h>
#include <kiconloader.h>
#include <kapplication.h>
#include <kstandarddirs.h>
#include <kdebug.h>
//Project includes
#include "bootAuthenticationOptions.h"
#include "ksystemlogConfig.h"
BootAuthenticationOptions::BootAuthenticationOptions(QWidget *parent) :
QWidget(parent)
{
QVBoxLayout *layout = new QVBoxLayout(this);
layout->setSpacing(10);
//Boot log file
QVGroupBox* bootBox=new QVGroupBox(i18n("Boot Log File"), this);
new QLabel(i18n("Boot Log File:"), bootBox);
bootURLRequester=new KURLRequester(bootBox);
bootURLRequester->setMode(KFile::File);
QToolTip::add(bootURLRequester, i18n("<qt>Here, you can type or choose the boot log file (example: <i>/var/log/boot.log</i>).</qt>"));
QWhatsThis::add(bootURLRequester, i18n("<qt>You can type or choose here the boot log file. This file will be analyzed by KSystemLog when you will choose the <b>Boot log</b> menu item. Generally, its name is <i>/var/log/boot.log</i></qt>"));
connect(bootURLRequester, SIGNAL(textChanged(const QString&)), this, SLOT(onOptionsChanged(const QString&)));
//Authentication log file
QVGroupBox* authenticationBox=new QVGroupBox(i18n("Authentication Log File"), this);
new QLabel(i18n("Authentication Log File:"), authenticationBox);
authenticationURLRequester=new KURLRequester(authenticationBox);
authenticationURLRequester->setMode(KFile::File);
QToolTip::add(authenticationURLRequester, i18n("<qt>Here, you can type or choose the authentication log file (example: <i>/var/log/auth.log</i>).</qt>"));
QWhatsThis::add(authenticationURLRequester, i18n("<qt>You can type or choose here the authentication log file. This file will be analyzed by KSystemLog when you will choose the <b>Authentication log</b> menu item. Generally, its name is <i>/var/log/auth.log</i></qt>"));
connect(authenticationURLRequester, SIGNAL(textChanged(const QString&)), this, SLOT(onOptionsChanged(const QString&)));
QSpacerItem* spacer=new QSpacerItem(0, 0, QSizePolicy::Preferred, QSizePolicy::Expanding);
layout->addWidget(bootBox);
layout->addWidget(authenticationBox);
layout->addItem(spacer);
readConfig();
}
void BootAuthenticationOptions::readConfig() {
QString file=KSystemLogConfig::bootPath();
bootURLRequester->setURL(file);
file=KSystemLogConfig::authenticationPath();
authenticationURLRequester->setURL(file);
}
void BootAuthenticationOptions::saveConfig() {
kdDebug() << "Save config from Boot Authentication Options" << endl;
KSystemLogConfig::setAuthenticationPath(bootURLRequester->url());
KSystemLogConfig::setAuthenticationPath(authenticationURLRequester->url());
}
//TODO Please verify that this is OK !
bool BootAuthenticationOptions::isValid() {
KURL test1(bootURLRequester->url());
KURL test2(authenticationURLRequester->url());
if (test1.isValid() && test2.isValid())
return(true);
else
return(false);
}
void BootAuthenticationOptions::onOptionsChanged(const QString& /*text*/) {
emit optionsChanged(true);
}
#include "bootAuthenticationOptions.moc"

@ -0,0 +1,60 @@
/***************************************************************************
* Copyright (C) 2005 by Nicolas Ternisien *
* nicolas.ternisien@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#ifndef _BOOT_AUTHENTICATION_OPTIONS_H_
#define _BOOT_AUTHENTICATION_OPTIONS_H_
#include <qframe.h>
#include <qspinbox.h>
#include <qbuttongroup.h>
#include <kconfig.h>
#include <kdialogbase.h>
#include <kurlrequester.h>
#include "globals.h"
class BootAuthenticationOptions : public QWidget {
Q_OBJECT
public:
BootAuthenticationOptions(QWidget *parent = 0);
bool isValid();
public slots:
void saveConfig();
void readConfig();
signals:
void optionsChanged(bool valid);
private slots:
void onOptionsChanged(const QString&);
private:
KURLRequester* bootURLRequester;
KURLRequester* authenticationURLRequester;
};
#endif // _BOOT_AUTHENTICATION_OPTIONS_H_

@ -0,0 +1,45 @@
/***************************************************************************
* Copyright (C) 2005 by Nicolas Ternisien *
* nicolas.ternisien@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#include "parentLogLine.h"
#include "childLogLine.h"
ChildLogLine::ChildLogLine(QDate& date, QTime& time, QStringList& list, QString& file, LogLevel* level, int type) :
LogLine(date, time, list, file, level, type),
parent(NULL) {
}
ChildLogLine::~ChildLogLine() {
}
void ChildLogLine::setParent(ParentLogLine* line) {
parent=line;
}
ParentLogLine* ChildLogLine::getParent() {
return(parent);
}
bool ChildLogLine::isChildLogLine() {
return(true);
}

@ -0,0 +1,55 @@
/***************************************************************************
* Copyright (C) 2005 by Nicolas Ternisien *
* nicolas.ternisien@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#ifndef _CHILD_LOG_LINE_H_
#define _CHILD_LOG_LINE_H_
#include <qobject.h>
#include <kurl.h>
#include "globals.h"
#include "logLine.h"
class ParentLogLine;
/**
* @author Nicolas Ternisien
*/
class ChildLogLine : public LogLine {
public:
ChildLogLine(QDate& date, QTime& time, QStringList& list, QString& originalFile, LogLevel* level, int tpe);
virtual ~ChildLogLine();
void setParent(ParentLogLine* line);
ParentLogLine* getParent();
virtual bool isChildLogLine();
protected:
ParentLogLine* parent;
};
#endif

@ -0,0 +1,7 @@
INCLUDES = -I$(top_srcdir)/ksystemlog/src -I$(top_builddir)/ksystemlog/src $(all_includes)
METASOURCES = AUTO
noinst_LTLIBRARIES = libksystemlog_config.la
libksystemlog_config_la_SOURCES = ksystemlogConfig.kcfgc dummyConfig.cpp
kde_kcfg_DATA = ksystemlog.kcfg

@ -0,0 +1,20 @@
/***************************************************************************
* Copyright (C) 2005 by Nicolas Ternisien *
* nicolas.ternisien@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/

@ -0,0 +1,181 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE kcfg SYSTEM "http://www.kde.org/standards/kcfg/1.0/kcfg.dtd">
<kcfg>
<kcfgfile name="ksystemlogrc" />
<group name="ksystemlog">
<entry name="MaxLines" type="Int">
<label>The log view line count limit.</label>
<default>1000</default>
</entry>
<entry name="MaxReadCharacters" type="Int">
<label>The maximum number of characters read per line.</label>
<default>1024</default>
</entry>
<entry name="DeleteDuplicatedLines" type="Bool">
<label>Option is true when user want to delete same log lines.</label>
<default>false</default>
</entry>
<entry name="DeleteProcessIdentifier" type="Bool">
<label>Does we display the PID in the process column of the SystemLog ?</label>
<default>false</default>
</entry>
<entry name="ColorizeLogLines" type="Bool">
<label>Does we colorize the log lines depending of their log level ?</label>
<default>true</default>
</entry>
<entry name="TooltipEnabled" type="Bool">
<label>Is the tooltip enabled.</label>
<default>true</default>
</entry>
<entry name="NewLinesDisplayed" type="Bool">
<label>Is the new lines displayed.</label>
<default>true</default>
</entry>
<entry name="ToggleFilterBar" type="Bool">
<label>Does we display the filter bar.</label>
<default>true</default>
</entry>
<entry name="GroupBy" type="IntList">
<label>The group by method.</label>
<default></default>
</entry>
<entry name="GroupByColumns" type="IntList">
<label>The column which the list is grouped by.</label>
<default>-1</default>
</entry>
<!-- System config entries -->
<entry name="SystemPaths" type="StringList">
<label>The System log files paths.</label>
<default>/var/log/syslog</default>
</entry>
<entry name="SystemLevels" type="IntList">
<label>The System log files levels.</label>
<default>2</default>
</entry>
<!-- Kernel config entries -->
<entry name="KernelPaths" type="StringList">
<label>The Kernel log files paths.</label>
<default>/var/log/kern.log</default>
</entry>
<entry name="KernelLevels" type="IntList">
<label>The Kernel log files levels.</label>
<default>2,4,5</default>
</entry>
<!-- Cron config entries -->
<entry name="CronPaths" type="StringList">
<label>The Cron log files paths.</label>
<default>/var/log/cron.log</default>
</entry>
<entry name="CronLevels" type="IntList">
<label>The Cron log files levels.</label>
<default>2,4,5</default>
</entry>
<!-- Daemon config entries -->
<entry name="DaemonPaths" type="StringList">
<label>The Daemon log files paths.</label>
<default>/var/log/daemon.log</default>
</entry>
<entry name="DaemonLevels" type="IntList">
<label>The Daemon log files levels.</label>
<default>2,4,5</default>
</entry>
<!-- X.org config entries -->
<entry name="XorgPaths" type="StringList">
<label>The Xorg log files paths.</label>
<default>/var/log/Xorg.0.log</default>
</entry>
<!-- Cups config entries -->
<entry name="CupsPaths" type="StringList">
<label>The Cups log files paths.</label>
<default>/var/log/cups/error_log</default>
</entry>
<!-- Cups Access config entries -->
<entry name="CupsAccessPaths" type="StringList">
<label>The Cups Access log files paths.</label>
<default>/var/log/cups/access_log</default>
</entry>
<!-- Apache config entries -->
<entry name="ApachePaths" type="StringList">
<label>The Apache log files paths.</label>
<default>/var/log/apache/error.log</default>
</entry>
<!-- Apache Access config entries -->
<entry name="ApacheAccessPaths" type="StringList">
<label>The Apache Access log files paths.</label>
<default>/var/log/apache/access.log</default>
</entry>
<!-- Postfix config entries -->
<entry name="PostfixPaths" type="StringList">
<label>The Postfix log files paths.</label>
<default>/var/log/mail.info,/var/log/mail.warn,/var/log/mail.err</default>
</entry>
<entry name="PostfixLevels" type="IntList">
<label>The Postfix log files levels.</label>
<default>2,4,5</default>
</entry>
<!-- Samba config entries -->
<entry name="SambaPaths" type="StringList">
<label>The Samba log files paths.</label>
<default>/var/log/samba/log.nmbd,/var/log/samba/log.smbd</default>
</entry>
<!-- ACPID config entries -->
<entry name="AcpidPaths" type="StringList">
<label>The Acpid log files paths.</label>
<default>/var/log/acpid</default>
</entry>
<!-- Boot config entries -->
<entry name="BootPath" type="String">
<label>The Boot log file path.</label>
<default>/var/log/boot.log</default>
</entry>
<!-- Authentication config entries -->
<entry name="AuthenticationPath" type="String">
<label>The Authentication log files paths.</label>
<default>/var/log/auth.log</default>
</entry>
<entry name="LogModes" type="IntList">
<label>The current log modes (one log mode per tab).</label>
<default>2</default>
</entry>
<entry name="OpenedURLs" type="StringList">
<label>The last opened URL if the mode was equals to OPENING_MODE. As many items as there are LogMode=OPENING_MODE.</label>
</entry>
<entry name="SelectedTab" type="Int">
<label>The last selected tab.</label>
<default>0</default>
</entry>
</group>
</kcfg>

@ -0,0 +1,4 @@
File=ksystemlog.kcfg
ClassName=KSystemLogConfig
Singleton=true
Mutators=true

@ -0,0 +1,8 @@
INCLUDES = -I$(top_srcdir)/ksystemlog/src -I$(top_builddir)/ksystemlog/src/config $(all_includes)
METASOURCES = AUTO
noinst_LTLIBRARIES = libksystemlog_cron.la
libksystemlog_cron_la_LDFLAGS = $(all_libraries)
libksystemlog_cron_la_SOURCES = cronOptions.cpp cronReader.cpp
noinst_HEADERS = cronOptions.h cronReader.h

@ -0,0 +1,99 @@
/***************************************************************************
* Copyright (C) 2005 by Nicolas Ternisien *
* nicolas.ternisien@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
//Qt includes
#include <qlayout.h>
#include <qvgroupbox.h>
#include <qbuttongroup.h>
#include <qlabel.h>
#include <qpushbutton.h>
#include <qvbox.h>
#include <qhbox.h>
//KDE includes
#include <klocale.h>
#include <kactioncollection.h>
#include <kbuttonbox.h>
#include <klistbox.h>
#include <kfiledialog.h>
#include <kurl.h>
#include <kmessagebox.h>
#include <kiconloader.h>
#include <kdebug.h>
//Project includes
#include "cronOptions.h"
#include "ksystemlogConfig.h"
CronOptions::CronOptions(QWidget *parent) :
QWidget(parent)
{
QHBoxLayout *layout = new QHBoxLayout(this);
layout->setAutoAdd(true);
QString description= i18n("<qt><p>These files will be analyzed to display <b>Cron Logs</b> (i.e. planned tasks logs). This list also determines the order in which the files are read.</p></qt>");
fileList=new SpecificFileList(this, description);
connect(fileList, SIGNAL(fileListChanged(int)), this, SLOT(slotFileListChanged(int)));
readConfig();
}
CronOptions::~CronOptions() {
//TODO Delete fileList
}
bool CronOptions::isValid() {
if (fileList->count()>0)
return(true);
else
return(false);
}
void CronOptions::slotFileListChanged(int itemLeft) {
if (itemLeft==0)
emit optionsChanged(false);
else
emit optionsChanged(true);
}
void CronOptions::saveConfig() {
kdDebug() << "Saving config from Cron Options..." << endl;
QStringList stringList;
QValueList<int> valueList;
fileList->saveConfig(stringList, valueList);
KSystemLogConfig::setCronPaths(stringList);
KSystemLogConfig::setCronLevels(valueList);
}
void CronOptions::readConfig() {
QStringList stringList=KSystemLogConfig::cronPaths();
QValueList<int> valueList=KSystemLogConfig::cronLevels();
fileList->readConfig(stringList, valueList);
}
#include "cronOptions.moc"

@ -0,0 +1,61 @@
/***************************************************************************
* Copyright (C) 2005 by Nicolas Ternisien *
* nicolas.ternisien@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#ifndef _CRON_OPTIONS_H_
#define _CRON_OPTIONS_H_
#include <qframe.h>
#include <qspinbox.h>
#include <kpopupmenu.h>
#include <kconfig.h>
#include <kdialogbase.h>
#include <kurlrequester.h>
#include <kurl.h>
#include <kaction.h>
#include "globals.h"
#include "specificFileList.h"
#include "logLevel.h"
class CronOptions : public QWidget {
Q_OBJECT
public:
CronOptions(QWidget *parent = 0);
~CronOptions();
bool isValid();
public slots:
void saveConfig();
void readConfig();
void slotFileListChanged(int itemLeft);
signals:
void optionsChanged(bool valid);
private:
SpecificFileList* fileList;
};
#endif

@ -0,0 +1,81 @@
/***************************************************************************
* Copyright (C) 2005 by Nicolas Ternisien *
* nicolas.ternisien@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#include "cronReader.h"
#include <klocale.h>
#include <kmessagebox.h>
CronReader::CronReader(QObject *parent, const char *name) :
DefaultReader(parent, name)
{
}
CronReader::~CronReader() {
}
void CronReader::initColumns(LogViewColumns* columns) {
columns->append(new LogViewColumn(i18n("Date"), true, false));
columns->append(new LogViewColumn(i18n("Host Name"), true, true));
columns->append(new LogViewColumn(i18n("Process"), true, true));
columns->append(new LogViewColumn(i18n("User"), true, true));
columns->append(new LogViewColumn(i18n("Message"), true, false));
}
/**
* TODO Improve speed of this method
*/
LogLine* CronReader::parseMessage(QString& line, LogFile* logFile) {
//Use the default parsing
LogLine* logLine=DefaultReader::parseMessage(line, logFile);
QStringList& list=logLine->getItemList();
//Gets the message column (last item) and deletes it
QString message=list.back();
list.pop_back();
int leftBracket=message.find('(');
int rightBracket=message.find(')');
QString user=message.mid(leftBracket+1, rightBracket-leftBracket-1);
list.push_back(user);
message=message.right(message.length() - rightBracket-2);
list.push_back(message);
//This log line comes from Cron Reader
logLine->setType(Globals::cronMode->id);
return(logLine);
}
#include "cronReader.moc"

@ -0,0 +1,55 @@
/***************************************************************************
* Copyright (C) 2005 by Nicolas Ternisien *
* nicolas.ternisien@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#ifndef _CRON_READER_H_
#define _CRON_READER_H_
#include <qobject.h>
#include <qstringlist.h>
#include <kurl.h>
#include <qfile.h>
#include "view.h"
#include "globals.h"
#include "defaultReader.h"
/**
* @author Nicolas Ternisien
*/
class CronReader : public DefaultReader {
Q_OBJECT
public:
CronReader(QObject *parent = 0, const char *name = 0);
virtual ~CronReader();
virtual void initColumns(LogViewColumns* columns);
protected:
virtual LogLine* parseMessage(QString& logLine, LogFile* logFile);
};
#endif

@ -0,0 +1,7 @@
INCLUDES = -I$(top_srcdir)/ksystemlog/src -I$(top_builddir)/ksystemlog/src/config $(all_includes)
METASOURCES = AUTO
noinst_LTLIBRARIES = libksystemlog_cups.la
libksystemlog_cups_la_LDFLAGS = $(all_libraries)
libksystemlog_cups_la_SOURCES = cupsAccessReader.cpp cupsOptions.cpp cupsReader.cpp
noinst_HEADERS = cupsAccessReader.h cupsOptions.h cupsReader.h

@ -0,0 +1,100 @@
/***************************************************************************
* Copyright (C) 2005 by Nicolas Ternisien *
* nicolas.ternisien@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#include <klocale.h>
#include <kmessagebox.h>
#include "parsingHelper.h"
#include "cupsAccessReader.h"
CupsAccessReader::CupsAccessReader(QObject *parent, const char *name) :
DefaultReader(parent, name)
{
}
CupsAccessReader::~CupsAccessReader() {
}
void CupsAccessReader::initColumns(LogViewColumns* columns) {
columns->append(new LogViewColumn(i18n("Date"), true, false));
columns->append(new LogViewColumn(i18n("Host Name"), true, true));
columns->append(new LogViewColumn(i18n("Id."), true, true)); //=Identification protocol [From RFC1413 (see Google for more infos)]
columns->append(new LogViewColumn(i18n("User"), true, true));
columns->append(new LogViewColumn(i18n("Response"), true, true));
columns->append(new LogViewColumn(i18n("Bytes Sent"), true, false));
columns->append(new LogViewColumn(i18n("HTTP Request"), true, false));
}
LogLine* CupsAccessReader::parseMessage(QString& logLine, LogFile* logFile) {
int spacePos=logLine.find(' ');
QString hostName=logLine.left(spacePos);
logLine=logLine.remove(0, spacePos+1);
spacePos=logLine.find(' ');
QString identd=logLine.left(spacePos);
logLine=logLine.remove(0, spacePos+1);
spacePos=logLine.find(' ');
QString userName=logLine.left(spacePos);
logLine=logLine.remove(0, spacePos+1);
int endDate=logLine.find(']');
QString strDateTime=logLine.left(endDate);
logLine=logLine.remove(0, endDate+3);
QDateTime dateTime=ParsingHelper::parseDateTimeFromHTTP(strDateTime);
QDate date=dateTime.date();
QTime time=dateTime.time();
int endQuote=logLine.find('\"');
QString message=logLine.left(endQuote);
logLine=logLine.remove(0, endQuote+2);
spacePos=logLine.find(' ');
QString httpResponse=ParsingHelper::parseHTTPResponse(logLine.left(spacePos));
logLine=logLine.remove(0, spacePos+1);
spacePos=logLine.find(' ');
QString bytesSent=ParsingHelper::parseSize(logLine.left(spacePos));
QStringList list;
list.push_back(hostName);
list.push_back(identd);
list.push_back(userName);
list.push_back(httpResponse);
list.push_back(bytesSent);
list.push_back(message);
QString filePath=logFile->url.path();
LogLine* line=new LogLine(date, time, list, filePath, Globals::informationLogLevel, Globals::cupsAccessMode->id);
return(line);
}
#include "cupsAccessReader.moc"

@ -0,0 +1,54 @@
/***************************************************************************
* Copyright (C) 2005 by Nicolas Ternisien *
* nicolas.ternisien@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#ifndef _CUPS_ACCESS_READER_H_
#define _CUPS_ACCESS_READER_H_
#include <qobject.h>
#include <qstringlist.h>
#include <kurl.h>
#include <qfile.h>
#include "view.h"
#include "globals.h"
#include "defaultReader.h"
/**
* @author Nicolas Ternisien
*/
class CupsAccessReader : public DefaultReader {
Q_OBJECT
public:
CupsAccessReader(QObject *parent = 0, const char *name = 0);
virtual ~CupsAccessReader();
virtual void initColumns(LogViewColumns* columns);
protected:
virtual LogLine* parseMessage(QString& logLine, LogFile* logFile);
};
#endif

@ -0,0 +1,124 @@
/***************************************************************************
* Copyright (C) 2005 by Nicolas Ternisien *
* nicolas.ternisien@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
//Qt includes
#include <qlayout.h>
#include <qvgroupbox.h>
#include <qbuttongroup.h>
#include <qlabel.h>
#include <qpushbutton.h>
#include <qvbox.h>
#include <qhbox.h>
//KDE includes
#include <klocale.h>
#include <kactioncollection.h>
#include <kbuttonbox.h>
#include <klistbox.h>
#include <kfiledialog.h>
#include <kurl.h>
#include <kmessagebox.h>
#include <kiconloader.h>
#include <kdebug.h>
//Project includes
#include "cupsOptions.h"
#include "ksystemlogConfig.h"
CupsOptions::CupsOptions(QWidget *parent) :
QWidget(parent),
tabs(this, "tabs"),
cupsFileList(this, i18n("<qt><p>These files will be analyzed to display <b>Cups log</b>. This list also determines the order in which the files are read.</p></qt>")),
cupsAccessFileList(this, i18n("<qt><p>These files will be analyzed to display <b>Cups Web Server log</b>. This list also determines the order in which the files are read.</p></qt>"))
{
QHBoxLayout *layout = new QHBoxLayout(this);
layout->setAutoAdd(true);
tabs.addTab(&cupsFileList, Globals::cupsMode->pixmap, Globals::cupsMode->name);
tabs.addTab(&cupsAccessFileList, Globals::cupsAccessMode->pixmap, Globals::cupsAccessMode->name);
connect(&cupsFileList, SIGNAL(fileListChanged(int)), this, SLOT(slotFileListChanged(int)));
connect(&cupsAccessFileList, SIGNAL(fileListChanged(int)), this, SLOT(slotFileListChanged(int)));
readConfig();
}
CupsOptions::~CupsOptions() {
}
bool CupsOptions::isValid() {
if (cupsFileList.count()>0 && cupsAccessFileList.count()>0)
return(true);
else
return(false);
}
void CupsOptions::slotFileListChanged(int itemLeft) {
if (itemLeft==0)
emit optionsChanged(false);
else
emit optionsChanged(true);
}
void CupsOptions::saveConfig() {
kdDebug() << "Save config from CupsOptions" << endl;
QStringList list;
int count=cupsFileList.count();
for (int i=0; i<count; i++) {
list.push_back(cupsFileList.getText(i));
}
KSystemLogConfig::setCupsPaths(list);
list.clear();
count=cupsAccessFileList.count();
for (int i=0; i<count; i++) {
list.push_back(cupsAccessFileList.getText(i));
}
KSystemLogConfig::setCupsAccessPaths(list);
}
void CupsOptions::readConfig() {
QStringList cupsFiles(KSystemLogConfig::cupsPaths());
QStringList::iterator it;
for(it=cupsFiles.begin(); it!=cupsFiles.end(); ++it) {
cupsFileList.insertItem(*it);
}
QStringList cupsAccessFiles(KSystemLogConfig::cupsAccessPaths());
for(it=cupsAccessFiles.begin(); it!=cupsAccessFiles.end(); ++it) {
cupsAccessFileList.insertItem(*it);
}
}
#include "cupsOptions.moc"

@ -0,0 +1,69 @@
/***************************************************************************
* Copyright (C) 2005 by Nicolas Ternisien *
* nicolas.ternisien@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#ifndef _CUPS_OPTIONS_H_
#define _CUPS_OPTIONS_H_
#include <qframe.h>
#include <qspinbox.h>
#include <kpopupmenu.h>
#include <kconfig.h>
#include <kdialogbase.h>
#include <kurlrequester.h>
#include <kurl.h>
#include <kaction.h>
#include <ktabwidget.h>
#include "globals.h"
#include "fileList.h"
#include "logMode.h"
class CupsOptions : public QWidget {
Q_OBJECT
public:
CupsOptions(QWidget *parent = 0);
~CupsOptions();
bool isValid();
public slots:
void saveConfig();
void readConfig();
void slotFileListChanged(int itemLeft);
signals:
void optionsChanged(bool valid);
private:
KTabWidget tabs;
FileList cupsFileList;
FileList cupsAccessFileList;
};
#endif

@ -0,0 +1,106 @@
/***************************************************************************
* Copyright (C) 2005 by Nicolas Ternisien *
* nicolas.ternisien@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#include <klocale.h>
#include <kmessagebox.h>
#include "parsingHelper.h"
#include "cupsReader.h"
#define DEBUG2_LOG_LEVEL_ICON "source"
CupsReader::CupsReader(QObject *parent, const char *name) :
DefaultReader(parent, name)
{
initializeTypeLevels();
}
CupsReader::~CupsReader() {
}
void CupsReader::initColumns(LogViewColumns* columns) {
columns->append(new LogViewColumn(i18n("Date"), true, false));
columns->append(new LogViewColumn(i18n("Message"), true, false));
}
LogLine* CupsReader::parseMessage(QString& logLine, LogFile* logFile) {
/*
* Log line examples :
* I [15/Feb/2004:01:29:32 +0100] LoadPPDs: No new or changed PPDs...
* E [15/Feb/2004:01:43:15 +0100] Scheduler shutting down due to SIGTERM.
*/
QChar level=logLine[0];
QString strDateTime=logLine.mid(2, 28);
QDateTime dateTime=ParsingHelper::parseDateTimeFromHTTP(strDateTime);
QDate date=dateTime.date();
QTime time=dateTime.time();
QString message=logLine.remove(0, 31);
LogLevel* logLevel=getTypeLevel(level);
QStringList list;
list.push_back(message);
QString filePath=logFile->url.path();
LogLine* line=new LogLine(date, time, list, filePath, logLevel, Globals::cupsMode->id);
return(line);
}
void CupsReader::initializeTypeLevels() {
mapTypeLevels['d']=new LogLevel(20, i18n("debug 2"), DEBUG2_LOG_LEVEL_ICON, QColor(169, 189, 165));
mapTypeLevels['D']=Globals::debugLogLevel;
mapTypeLevels['I']=Globals::informationLogLevel;
mapTypeLevels['N']=Globals::noticeLogLevel;
mapTypeLevels['W']=Globals::warningLogLevel;
mapTypeLevels['E']=Globals::errorLogLevel;
mapTypeLevels['C']=Globals::criticalLogLevel;
mapTypeLevels['A']=Globals::alertLogLevel;
mapTypeLevels['X']=Globals::emergencyLogLevel;
mapTypeLevels[' ']=Globals::noneLogLevel;
}
LogLevel* CupsReader::getTypeLevel(const QChar& type) {
QMap<QChar, LogLevel*>::iterator it;
it=mapTypeLevels.find(type);
if (it!=mapTypeLevels.end()) {
return(*it);
}
else {
kdDebug() << i18n("New Log Level detected: Please send this log file to the KSystemLog developer to add it.") << endl;
return(Globals::noneLogLevel);
}
}
#include "cupsReader.moc"

@ -0,0 +1,63 @@
/***************************************************************************
* Copyright (C) 2005 by Nicolas Ternisien *
* nicolas.ternisien@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#ifndef _CUPS_READER_H_
#define _CUPS_READER_H_
#include <qobject.h>
#include <qstringlist.h>
#include <kurl.h>
#include <qfile.h>
#include "view.h"
#include "globals.h"
#include "defaultReader.h"
/**
* @author Nicolas Ternisien
*/
class CupsReader : public DefaultReader {
Q_OBJECT
public:
CupsReader(QObject *parent = 0, const char *name = 0);
virtual ~CupsReader();
virtual void initColumns(LogViewColumns* columns);
protected:
virtual LogLine* parseMessage(QString& logLine, LogFile* logFile);
private:
QMap<QChar, LogLevel*> mapTypeLevels;
void initializeTypeLevels();
LogLevel* getTypeLevel(const QChar& type);
};
#endif

@ -0,0 +1,7 @@
INCLUDES = -I$(top_srcdir)/ksystemlog/src -I$(top_builddir)/ksystemlog/src/config $(all_includes)
METASOURCES = AUTO
noinst_LTLIBRARIES = libksystemlog_daemon.la
libksystemlog_daemon_la_LDFLAGS = $(all_libraries)
libksystemlog_daemon_la_SOURCES = daemonOptions.cpp
noinst_HEADERS = daemonOptions.h

@ -0,0 +1,99 @@
/***************************************************************************
* Copyright (C) 2005 by Nicolas Ternisien *
* nicolas.ternisien@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
//Qt includes
#include <qlayout.h>
#include <qvgroupbox.h>
#include <qbuttongroup.h>
#include <qlabel.h>
#include <qpushbutton.h>
#include <qvbox.h>
#include <qhbox.h>
//KDE includes
#include <klocale.h>
#include <kactioncollection.h>
#include <kbuttonbox.h>
#include <klistbox.h>
#include <kfiledialog.h>
#include <kurl.h>
#include <kmessagebox.h>
#include <kiconloader.h>
#include <kdebug.h>
//Project includes
#include "daemonOptions.h"
#include "ksystemlogConfig.h"
DaemonOptions::DaemonOptions(QWidget *parent) :
QWidget(parent)
{
QHBoxLayout *layout = new QHBoxLayout(this);
layout->setAutoAdd(true);
QString description= i18n("<qt><p>These files will be analyzed to display <b>daemons Logs</b>. This list also determine the order in which the files are read.</p></qt>");
fileList=new SpecificFileList(this, description);
connect(fileList, SIGNAL(fileListChanged(int)), this, SLOT(slotFileListChanged(int)));
readConfig();
}
DaemonOptions::~DaemonOptions() {
}
bool DaemonOptions::isValid() {
if (fileList->count()>0)
return(true);
else
return(false);
}
void DaemonOptions::slotFileListChanged(int itemLeft) {
if (itemLeft==0)
emit optionsChanged(false);
else
emit optionsChanged(true);
}
void DaemonOptions::saveConfig() {
kdDebug() << "Saving config from Daemon Options..." << endl;
QStringList stringList;
QValueList<int> valueList;
fileList->saveConfig(stringList, valueList);
KSystemLogConfig::setDaemonPaths(stringList);
KSystemLogConfig::setDaemonLevels(valueList);
}
void DaemonOptions::readConfig() {
QStringList stringList=KSystemLogConfig::daemonPaths();
QValueList<int> valueList=KSystemLogConfig::daemonLevels();
fileList->readConfig(stringList, valueList);
}
#include "daemonOptions.moc"

@ -0,0 +1,59 @@
/***************************************************************************
* Copyright (C) 2005 by Nicolas Ternisien *
* nicolas.ternisien@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#ifndef _DAEMON_OPTIONS_H_
#define _DAEMON_OPTIONS_H_
#include <qframe.h>
#include <qspinbox.h>
#include <kpopupmenu.h>
#include <kconfig.h>
#include <kdialogbase.h>
#include <kurlrequester.h>
#include <kurl.h>
#include <kaction.h>
#include "globals.h"
#include "specificFileList.h"
#include "logLevel.h"
class DaemonOptions : public QWidget {
Q_OBJECT
public:
DaemonOptions(QWidget *parent = 0);
~DaemonOptions();
bool isValid();
public slots:
void saveConfig();
void readConfig();
void slotFileListChanged(int itemLeft);
signals:
void optionsChanged(bool valid);
private:
SpecificFileList* fileList;
};
#endif

@ -0,0 +1,498 @@
/***************************************************************************
* Copyright (C) 2005 by Nicolas Ternisien *
* nicolas.ternisien@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#include <klocale.h>
#include <kmessagebox.h>
#include "logListItem.h"
#include "ksystemlogConfig.h"
#include "logLine.h"
#include "view.h"
#include "parsingHelper.h"
#include "defaultReader.h"
DefaultReader::DefaultReader(QObject *parent, const char *name) :
Reader(parent, name),
buffers(NULL)
{
}
DefaultReader::~DefaultReader() {
delete buffers;
}
void DefaultReader::readLog() {
//Each file in the Log file list are watched with the following method
watchLogFiles();
if (buffers!=NULL)
delete buffers;
if (logManager->getGroupBy()==NO_GROUP_BY)
buffers=new LogLineList();
else {
buffers=new LogLineTree(logManager->getColumns(), logManager->getGroupBy(), logManager->getGroupByColumn());
}
LogFiles& files=logManager->getLogFiles();
//Inform connected QObject that the reading has begun
emit readingBegin();
//Read each file of the list, and place their lines in the buffer
int i=files.count()-1;
LogFile* logFile;
while(i>=0) {
logFile=files[i];
kdDebug() << "Reading file " << logFile->url.path() << endl;
this->readFile(logFile);
i--;
}
//Synchronize the buffer once we have fill it
logManager->synchronize(buffers);
//Says to the buffer that we have read all files, and that
//the next adding will come from logChanged method
if (!buffers->isEmpty())
buffers->setFirstReadPerformed(true);
//Inform connected QObject that the reading is now finished
emit readingEnd();
//Emit a signal which informs connected slots that there are new lines
emit logUpdated(logManager->getView()->getLogList()->childCount());
}
void DefaultReader::readFile(LogFile* logFile) {
QString message=i18n("Opening file '%1'...").arg(logFile->url.path());
emit statusbarChanged(message);
//Inform connected QObject that we are now reading the "index" file
emit readingFile(logManager->getLogFiles().count() - logManager->getLogFiles().findIndex(logFile));
//We initialize these values from configuration to be used by the insert methods
tmpDeleteDuplicate=KSystemLogConfig::deleteDuplicatedLines();
tmpDeleteProcessId=KSystemLogConfig::deleteProcessIdentifier();
tmpMaxLines=KSystemLogConfig::maxLines();
tmpMaxCharacters=KSystemLogConfig::maxReadCharacters();
//Open the file
QFile* file=this->openFile(logFile->url.path());
//If an error occurs, end this method
if (file==NULL) {
return;
}
QString buffer;
QString filePath=logFile->url.path();
//Insert the content of the file in a string list
QStringList* rawBuffer=getRawBuffer(file);
//If there is no line
if (rawBuffer->size()==0) {
QString message=i18n("No log line in '%1'.").arg(logFile->url.path());
emit statusbarChanged(message);
delete rawBuffer;
return;
}
kdDebug() << "Testing each line..." << endl;
QStringList::iterator it;
it=rawBuffer->end();
it--;
//Calculate how many lines we will read
int size=rawBuffer->size();
int stop;
if (size>tmpMaxLines)
stop=size-tmpMaxLines;
else
stop=0;
//Test each line of the raw buffer
int i=size-1;
int progress=0;
int progressTotal=size-1 - stop;
int each=progressTotal / 100;
if (each==0)
each=progressTotal;
while(i>=stop) {
buffer=*it;
if (insertOrReplaceLine(buffer, logFile)==false)
break;
it--;
i--;
if (i>=0 && i%each==0) {
emit openingProgressed(progress++);
}
}
delete rawBuffer;
logFile->lastFileSize=file->size();
// Close the file
this->closeFile(file);
message=i18n("Log file '%1' loaded successfully.").arg(logFile->url.path());
emit statusbarChanged(message);
}
void DefaultReader::logChanged(LogFile* logFile) {
kdDebug() << "SortedReader : File has been modified !" << endl;
//We initialize these values from configuration to be used by the insert methods
tmpDeleteDuplicate=KSystemLogConfig::deleteDuplicatedLines();
tmpDeleteProcessId=KSystemLogConfig::deleteProcessIdentifier();
tmpMaxLines=KSystemLogConfig::maxLines();
tmpMaxCharacters=KSystemLogConfig::maxReadCharacters();
QString buffer;
QString filePath=logFile->url.path();
QFile* file=this->openFile(filePath);
if (file==NULL)
return;
//If there are new lines in the file, insert only them
if (logFile->lastFileSize <= (int) file->size()) {
//Place the cursor to the last line opened
file->at(logFile->lastFileSize);
kdDebug() << "Retrieving a part of the file..." << endl;
//Get the maximum number of line read from LogManager
int maxLines=KSystemLogConfig::maxLines();
QString buffer;
QStringList* rawBuffer=getRawBuffer(file);
//If there is no line
if (rawBuffer->size()==0) {
delete rawBuffer;
return;
}
kdDebug() << "Testing each line..." << endl;
QStringList::iterator it;
it=rawBuffer->end();
it--;
//Calculate how many lines we will read
int size=rawBuffer->size();
int stop=0;
if (size>maxLines)
stop=size-maxLines;
//Test each line of the raw buffer
int i=size-1;
while(i>=stop) {
buffer=*it;
if (insertOrReplaceLine(buffer, logFile)==false)
break;
it--;
i--;
}
kdDebug() << "Total read lines : " << (size-1-i) << endl;
delete rawBuffer;
}
//Else reread all lines, clear log list
else {
buffers->clear();
file->close();
this->readFile(logFile);
}
int newLineCount=buffers->getNewLineCount();
logManager->synchronize(buffers);
//Get the size file for the next calculation
logFile->lastFileSize=file->size();
// Close the file
this->closeFile(file);
QString message;
message=i18n("Log file '%1' has changed.").arg(logFile->url.path());
emit statusbarChanged(message);
//Emit a signal which informs connected slots that there are new lines
emit logUpdated(newLineCount);
}
bool DefaultReader::insertLine(QString& buffer, LogFile* originalFile) {
LogLine* line=this->parseMessage(buffer, originalFile);
//Do not insert the line if it NULL
//TODO Maybe return true (because we don't want to stop the reading for one dirty line)
if (line==NULL)
return(false);
//If the Delete Duplicated Line is checked, we first test that the line is really new
if (tmpDeleteDuplicate==true) {
if (buffers->lineAlreadyExists(line)==true)
return(true);
}
//If the line is newer, it can be inserted
if (buffers->isNewer(line)==true) {
if (buffers->getItemCount()<tmpMaxLines) {
buffers->insert(line);
}
else {
return(false);
}
}
//If the line is older, then inserts it only if there is still space in the buffer
else if (buffers->getItemCount()<tmpMaxLines) {
buffers->insert(line);
}
return(true);
}
bool DefaultReader::insertOrReplaceLine(QString& buffer, LogFile* originalFile) {
LogLine* line=this->parseMessage(buffer, originalFile);
//Do not insert the line if it NULL
//TODO Maybe return true (because we don't want to stop the reading for one dirty line)
if (line==NULL)
return(false);
//If the Delete Duplicated Line is checked, we first test that the line is really new
if (tmpDeleteDuplicate==true) {
if (buffers->lineAlreadyExists(line)==true) {
return(true);
}
}
//If the line is newer, it can be inserted
if (buffers->isNewer(line)==true) {
if (buffers->getItemCount()<tmpMaxLines) {
buffers->insert(line);
return(true);
}
else {
buffers->removeOldestLine();
buffers->insert(line);
return(true);
}
}
//If the line is older, then inserts it only if there is still space in the buffer
else if (buffers->getItemCount()<tmpMaxLines) {
buffers->insert(line);
return(true);
}
return(false);
}
/**
* TODO Improve speed of this method (with KRegExp class for example)
*/
LogLine* DefaultReader::parseMessage(QString& logLine, LogFile* originalFile) {
//kdDebug() << "Please don't use parseMessage() from SortedReader class" << endl;
int year=QDate::currentDate().year();
//Month number
QString month;
month=logLine.left(3);
logLine=logLine.remove(0, 4);
int monthNum=ParsingHelper::parseMonthNumber(month);
//Day number
QString day;
day=logLine.left(2);
int dayNum=day.toInt();
logLine=logLine.remove(0, 3);
QDate date(year, monthNum, dayNum);
if (!date.isValid()) {
kdDebug() << "Malformed date" << endl;
date=QDate::currentDate();
}
//Time
QString stringTime;
stringTime=logLine.left(8);
int h=stringTime.left(2).toInt();
stringTime.remove(0, 3);
int m=stringTime.left(2).toInt();
stringTime.remove(0, 3);
int s=stringTime.left(2).toInt();
stringTime.remove(0, 3);
QTime time(h, m, s);
if (!time.isValid()) {
kdDebug() << "Malformed time" << endl;
time=QTime::currentTime();
}
//QStringList
logLine=logLine.remove(0, 9);
int nextSpace;
nextSpace=logLine.find(' ');
//Host name
QString hostname;
hostname=logLine.left(nextSpace);
logLine=logLine.remove(0, nextSpace+1);
QString process;
QString message;
//Process name
nextSpace=logLine.find(':');
if (nextSpace!=-1) {
process=logLine.left(nextSpace);
//If the delete process identifier option is enabled
if (tmpDeleteProcessId==true) {
int squareBracket=process.find('[');
//If we find a bracket, we remove the useless part
if (squareBracket!=-1) {
process=process.left(squareBracket);
}
}
logLine=logLine.remove(0, nextSpace+1);
message=logLine.remove(0, 1);
}
//If we can't find any ':' character, it means that this line is a
//internal message of syslogd
else {
process=i18n("none");
message=logLine;
}
QStringList list;
list.append(hostname);
list.append(process);
list.append(message);
/*
*TODO Try to avoid that 2 columns with the same timestamps (but not the
*same appearance order are not sorted correctly
*/
/*
LogLine* lastLine=buffers->lastLineInserted();
if (lastLine!=NULL) {
if (lastLine->getTime().date()==date && lastLine->getTime().time()==time)
time=time.addMSecs(1);
}
*/
QString filePath=originalFile->url.path();
LogLine* logLineObject=new LogLine(date, time, list, filePath, originalFile->level, Globals::noMode->id);
return(logLineObject);
}
QStringList* DefaultReader::getRawBuffer(QFile* file) {
kdDebug() << "Retrieving the raw buffer..." << endl;
QString buffer;
QString tmpBuffer;
QStringList* rawBuffer=new QStringList();
int res;
//Insert the content of the file in a string list
while(!file->atEnd()) {
//Read the first MaxCharactersRead characters
res=file->readLine(buffer, tmpMaxCharacters);
//Ignore the rest of the line
while(res==tmpMaxCharacters)
file->readLine(tmpBuffer, tmpMaxCharacters);
//Push the new buffer to the list
rawBuffer->push_back(buffer);
}
kdDebug() << "Raw buffer retrieved." << endl;
return(rawBuffer);
}
#include "defaultReader.moc"

@ -0,0 +1,82 @@
/***************************************************************************
* Copyright (C) 2005 by Nicolas Ternisien *
* nicolas.ternisien@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#ifndef _DEFAULT_READER_H_
#define _DEFAULT_READER_H_
#include <qobject.h>
#include <qstringlist.h>
#include <qfile.h>
#include <qdatetime.h>
#include <kurl.h>
#include <kdebug.h>
#include "view.h"
#include "globals.h"
#include "reader.h"
#include "logLine.h"
#include "logLineList.h"
#include "logLineTree.h"
#include "logFile.h"
/**
* @author Nicolas Ternisien
*/
class DefaultReader : public Reader {
Q_OBJECT
public:
DefaultReader(QObject *parent = 0, const char *name = 0);
virtual ~DefaultReader();
virtual void readLog();
virtual void logChanged(LogFile* file);
protected:
virtual LogLine* parseMessage(QString& logLine, LogFile* originalFile);
void readFile(LogFile* logFile);
virtual QStringList* getRawBuffer(QFile* file);
LogLineList* buffers;
bool tmpDeleteDuplicate;
bool tmpDeleteProcessId;
int tmpMaxLines;
int tmpMaxCharacters;
private:
//Returns false if the line has not been inserted
bool insertLine(QString& buffer, LogFile* originalFile);
//Returns false if the line has not been inserted
bool insertOrReplaceLine(QString& buffer, LogFile* originalFile);
};
#endif // _DEFAULT_READER_H_

@ -0,0 +1,242 @@
/***************************************************************************
* Copyright (C) 2005 by Nicolas Ternisien *
* nicolas.ternisien@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
//Qt includes
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
//KDE includes
#include <kstdguiitem.h>
#include <ktextedit.h>
#include <kguiitem.h>
#include <kpushbutton.h>
#include <klocale.h>
#include <kdebug.h>
//Project includes
#include "parentLogLine.h"
#include "detailDialog.h"
DetailDialog::DetailDialog(View* v, QWidget *parent, const char *name) :
//KDialogBase(parent, name, false, i18n("Log Line Details"), 0 /*KDialogBase::Ok*/),
DetailDialogBase(parent, name, false, 0),
view(v),
currentLine(NULL) {
previous->setText(i18n("&Previous"));
connect(previous, SIGNAL(clicked()), this, SLOT(previousItem()));
next->setText(i18n("&Next"));
connect(next, SIGNAL(clicked()), this, SLOT(nextItem()));
//close->setText(KStdGuiItem::close().text());
//close->setIcon(KStdGuiItem::close().iconSet());
connect(closeButton, SIGNAL(clicked()), this, SLOT(closeDetails()));
updateDetails();
/* This code has been replaced by a pretty drawing of the Detail Dialog with Qt Designer
setMinimumHeight(200);
setMinimumWidth(450);
QWhatsThis::add(this, i18n("This dialog displays detailed information about the currently selected log line."));
QWidget* widget=new QWidget(this);
QVBoxLayout* mainLayout = new QVBoxLayout(widget, 0, 10);
QHBoxLayout* l1 = new QHBoxLayout(0, 0, 5);
icon=new QLabel(widget);
//icon->setSizePolicy( QSizePolicy( QSizePolicy::Minimum, QSizePolicy::Minimum ) );
l1->addWidget(icon, 0, Qt::AlignVCenter);
//header=new KActiveLabel(widget, "header");
header=new QLabel(widget, "header");
//header->setSizePolicy( QSizePolicy( QSizePolicy::Maximum, QSizePolicy::Minimum) );
//header->setSizePolicy( QSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::Minimum ) );
l1->addWidget(header, 0, Qt::AlignVCenter || Qt::AlignHCenter);
mainLayout->addLayout(l1);
message=new QTextEdit(widget);
message->setReadOnly(true);
//message->setSizePolicy( QSizePolicy( QSizePolicy::Minimum, QSizePolicy::Minimum) );
//message->setSizePolicy( QSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding ) );
//message->setMinimumHeight(40);
//message->setMinimumHeight(60);
//message->setMinimumWidth(400);
mainLayout->addWidget(message);
QHBoxLayout* buttons=new QHBoxLayout(0, 0, 10);
previous=new QPushButton(KStdGuiItem::back().iconSet(), i18n("&Previous"), widget);
connect(previous, SIGNAL(clicked()), this, SLOT(previousItem()));
//1=Stretch factor (ratio between object in the QHBoxLayout)
buttons->addWidget(previous, 1, Qt::AlignRight);
QToolTip::add(previous, i18n("Move to the previous line"));
QWhatsThis::add(previous, i18n("Moves to the previous line. This button is deactivated if there is no previous log line."));
buttons->setStretchFactor(previous, 1);
next=new QPushButton(KStdGuiItem::forward().iconSet(), i18n("&Next"), widget);
connect(next, SIGNAL(clicked()), this, SLOT(nextItem()));
//1=Stretch factor (ratio between object in the QHBoxLayout)
buttons->addWidget(next, 1, Qt::AlignLeft);
QToolTip::add(next, i18n("Move to the next line"));
QWhatsThis::add(next, i18n("Moves to the next line. This button is deactivated if there is no next log line."));
QPushButton* close=new QPushButton(KStdGuiItem::close().iconSet(), KStdGuiItem::close().text(), widget);
connect(close, SIGNAL(clicked()), this, SLOT(closeDetails()));
buttons->addWidget(close, 0, Qt::AlignRight);
QToolTip::add(next, i18n("Close the Detail dialog."));
QWhatsThis::add(next, i18n("Closes this Detail dialog."));
mainLayout->addLayout(buttons);
this->setMainWidget(widget);
//TODO Try to find a better solution (if it exists!)
//resize(500, 200);
*/
}
DetailDialog::~DetailDialog() {
}
void DetailDialog::setView(View* view) {
this->view=view;
updateDetails();
}
void DetailDialog::selectionChanged() {
updateDetails();
}
//TODO Try to find a method that reload (an resize) correctly the content of the detail dialog
void DetailDialog::updateDetails() {
//Get the current-last item selected
currentLine=view->getLastSelectedItem();
if (currentLine==NULL) {
//If no item are selected and the dialog is still open, we try to select the first
//item of the list.
currentLine=static_cast<LogListItem*> (view->getLogList()->firstChild());
if (currentLine==NULL) {
close();
return;
}
}
LogLine* logLine=currentLine->getLogLine();
//Special case if this is a ParentLogLine (Group By feature)
if (logLine->isParentLogLine()) {
icon->setPixmap(DesktopIcon(GROUP_BY_ICON));
header->setText(currentLine->getFormattedText());
message->setText("");
}
//Normal Log Line
else {
icon->setPixmap(DesktopIcon(logLine->getLogLevel()->icon));
header->setText(currentLine->getFormattedText());
message->setText(logLine->getItemList().last());
}
if (currentLine->itemAbove()==NULL)
previous->setEnabled(false);
else
previous->setEnabled(true);
if (currentLine->itemBelow()==NULL)
next->setEnabled(false);
else
next->setEnabled(true);
header->adjustSize();
this->adjustSize();
}
void DetailDialog::previousItem() {
//This case should not occurs
if (currentLine==NULL)
return;
//This case should not occurs
if (currentLine->itemAbove()==NULL) {
close();
return;
}
currentLine->setSelected(false);
currentLine->repaint();
currentLine=static_cast<LogListItem*> (currentLine->itemAbove());
currentLine->setSelected(true);
currentLine->repaint();
updateDetails();
}
void DetailDialog::closeDetails() {
this->close();
}
void DetailDialog::nextItem() {
//This case should not occurs
if (currentLine==NULL)
return;
//This case should not occurs