Added old abandoned KDE3 version of Kaffeine
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kaffeine@1088031 283d02a7-25f6-0310-bc7c-ecb5cbfe19dav3.5.13-sru
@ -0,0 +1,9 @@
|
||||
|
||||
Christophe Thommeret <hftom@free.fr>
|
||||
(Current maintainer)
|
||||
|
||||
Christoph Pfister <christophpfister@gmail.com>
|
||||
(Developer)
|
||||
|
||||
Jurgen Kofler <kaffeine@gmx.net>
|
||||
(Original author)
|
@ -0,0 +1,339 @@
|
||||
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 Lesser 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 Lesser General
|
||||
Public License instead of this License.
|
@ -0,0 +1,167 @@
|
||||
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,5 @@
|
||||
AUTOMAKE_OPTIONS = foreign 1.6.1
|
||||
|
||||
include admin/deps.am
|
||||
include admin/Doxyfile.am
|
||||
SUBDIRS=$(TOPSUBDIRS)
|
@ -0,0 +1,4 @@
|
||||
AUTOMAKE_OPTIONS = foreign 1.6.1
|
||||
|
||||
include admin/deps.am
|
||||
include admin/Doxyfile.am
|
@ -0,0 +1,86 @@
|
||||
|
||||
*******************************
|
||||
* Kaffeine 0.8.x README *
|
||||
*******************************
|
||||
|
||||
------------------------------------------------------
|
||||
!! HAVE A LOOK AT KAFFEINE HANDBOOK !!
|
||||
------------------------------------------------------
|
||||
|
||||
!!!!!!!!!! IMPORTANT !!!!!!!
|
||||
Live DVB only works with the xine backend (XinePart).
|
||||
Depending on your distro, this package could be called kaffeine-xine.
|
||||
Install it, start Kaffeine and change the backend in menu->settings->engine, then restart Kaffeine.
|
||||
Note that this is only needed for live playback. All other features (recording, broadcasting..) do not depend on the backend.
|
||||
Anyway, I strongly recommend the xine engine even if you don't have a DVB device. All others are incomplete and/or buggy.
|
||||
Also note that for licensing reasons, some distro (kubuntu, suse) comes with "restricted" media libraries (xine, gstreamer),
|
||||
so you won't be able to play some media files (in fact the most common ones:().
|
||||
You will have to install an "unrestricted" version in order to play all your media files.
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
|
||||
|
||||
Latest Kaffeine version is available on http://kaffeine.sourceforge.net
|
||||
|
||||
|
||||
MINIMUM REQUIREMENTS:
|
||||
---------------------
|
||||
|
||||
*) xine-lib 1.0.2 (we recommend 1.1.1) (http://www.xinehq.de)
|
||||
*) KDE >= 3.2 (http://www.kde.org)
|
||||
|
||||
*) for DVB support: see README.dvb
|
||||
*) for the gstreamer player-part: see README.gstreamer
|
||||
|
||||
RECOMMENDED:
|
||||
------------
|
||||
|
||||
*) WIN32 Codecs (http://www.mplayerhq.hu)
|
||||
*) libdvdcss (http://developers.videolan.org/libdvdcss)
|
||||
|
||||
|
||||
INSTALLATION:
|
||||
-------------
|
||||
|
||||
In order to compile and install Kaffeine on your system, type the following in the base
|
||||
directory of the Kaffeine distribution:
|
||||
|
||||
1.) ./configure --prefix=KDEDIR --mandir=MANPAGE_DIR (e.g. for SuSE: --prefix=/opt/kde3 --mandir=/usr/share/man)
|
||||
(use ./configure --help for more options)
|
||||
|
||||
2,) make
|
||||
|
||||
3.) make install
|
||||
|
||||
|
||||
On the download page you'll find RPM's for most distributions.
|
||||
|
||||
Problems? Post to the kaffeine-user mailing-list: kaffeine-user@lists.sourceforge.net
|
||||
|
||||
INSTALLATION FROM SVN:
|
||||
----------------------
|
||||
|
||||
See http://kaffeine.sourceforge.net/index.php?page=developers
|
||||
|
||||
|
||||
IMPORTANT CONFIGURE FLAGS:
|
||||
--------------------------
|
||||
|
||||
--with-xorg : use this ONLY(!) in the case Kaffeine hangs at startup
|
||||
--without-dvb : disables DVB support (may accelerate startup)
|
||||
--without-gstreamer: disables build of the gstreamer based player-part
|
||||
|
||||
|
||||
TROUBLESHOOTING:
|
||||
----------------
|
||||
|
||||
*) Fedora Users: If make aborts with '/usr/bin/ld: cannot find -lselinux' install
|
||||
the libselinux-devel package or disable selinux.
|
||||
|
||||
*) If Kaffeine hangs on start run 'configure --with-xinit-workaround' and recompile/reinstall.
|
||||
|
||||
|
||||
LICENCE:
|
||||
--------
|
||||
This programm is distributed under the terms of the GPL v2. You can find a copy of the
|
||||
licence in the file COPYING
|
||||
|
@ -0,0 +1,26 @@
|
||||
|
||||
**************************
|
||||
* KAFFEINE ToDo *
|
||||
**************************
|
||||
|
||||
|
||||
If you're interested to take over one of this tasks just send us
|
||||
a short note to kaffeine-devel(AT)lists.sourceforge.net
|
||||
|
||||
|
||||
OPEN TASKS:
|
||||
-----------
|
||||
|
||||
- Comprehensive Manual
|
||||
|
||||
- Configuration system to assign a player-part
|
||||
to some mime types (or file-extensions)
|
||||
|
||||
- Better handling of external subtitle files
|
||||
|
||||
- GStreamer-part: DVD navigation and some more
|
||||
|
||||
- A player-part based on mplayer
|
||||
(we could use the kpart of kplayer or kmplayer)
|
||||
|
||||
|
@ -0,0 +1,892 @@
|
||||
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
|
||||
# 2005 Free Software Foundation, Inc.
|
||||
# This file 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.
|
||||
|
||||
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file 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.
|
||||
|
||||
# AM_AUTOMAKE_VERSION(VERSION)
|
||||
# ----------------------------
|
||||
# Automake X.Y traces this macro to ensure aclocal.m4 has been
|
||||
# generated from the m4 files accompanying Automake X.Y.
|
||||
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
|
||||
|
||||
# AM_SET_CURRENT_AUTOMAKE_VERSION
|
||||
# -------------------------------
|
||||
# Call AM_AUTOMAKE_VERSION so it can be traced.
|
||||
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
|
||||
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
|
||||
[AM_AUTOMAKE_VERSION([1.9.6])])
|
||||
|
||||
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file 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.
|
||||
|
||||
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
|
||||
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
|
||||
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
|
||||
#
|
||||
# Of course, Automake must honor this variable whenever it calls a
|
||||
# tool from the auxiliary directory. The problem is that $srcdir (and
|
||||
# therefore $ac_aux_dir as well) can be either absolute or relative,
|
||||
# depending on how configure is run. This is pretty annoying, since
|
||||
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
|
||||
# source directory, any form will work fine, but in subdirectories a
|
||||
# relative path needs to be adjusted first.
|
||||
#
|
||||
# $ac_aux_dir/missing
|
||||
# fails when called from a subdirectory if $ac_aux_dir is relative
|
||||
# $top_srcdir/$ac_aux_dir/missing
|
||||
# fails if $ac_aux_dir is absolute,
|
||||
# fails when called from a subdirectory in a VPATH build with
|
||||
# a relative $ac_aux_dir
|
||||
#
|
||||
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
|
||||
# are both prefixed by $srcdir. In an in-source build this is usually
|
||||
# harmless because $srcdir is `.', but things will broke when you
|
||||
# start a VPATH build or use an absolute $srcdir.
|
||||
#
|
||||
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
|
||||
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
|
||||
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
|
||||
# and then we would define $MISSING as
|
||||
# MISSING="\${SHELL} $am_aux_dir/missing"
|
||||
# This will work as long as MISSING is not called from configure, because
|
||||
# unfortunately $(top_srcdir) has no meaning in configure.
|
||||
# However there are other variables, like CC, which are often used in
|
||||
# configure, and could therefore not use this "fixed" $ac_aux_dir.
|
||||
#
|
||||
# Another solution, used here, is to always expand $ac_aux_dir to an
|
||||
# absolute PATH. The drawback is that using absolute paths prevent a
|
||||
# configured tree to be moved without reconfiguration.
|
||||
|
||||
AC_DEFUN([AM_AUX_DIR_EXPAND],
|
||||
[dnl Rely on autoconf to set up CDPATH properly.
|
||||
AC_PREREQ([2.50])dnl
|
||||
# expand $ac_aux_dir to an absolute path
|
||||
am_aux_dir=`cd $ac_aux_dir && pwd`
|
||||
])
|
||||
|
||||
# AM_CONDITIONAL -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
|
||||
# Free Software Foundation, Inc.
|
||||
#
|
||||
# This file 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.
|
||||
|
||||
# serial 7
|
||||
|
||||
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
|
||||
# -------------------------------------
|
||||
# Define a conditional.
|
||||
AC_DEFUN([AM_CONDITIONAL],
|
||||
[AC_PREREQ(2.52)dnl
|
||||
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
|
||||
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
|
||||
AC_SUBST([$1_TRUE])
|
||||
AC_SUBST([$1_FALSE])
|
||||
if $2; then
|
||||
$1_TRUE=
|
||||
$1_FALSE='#'
|
||||
else
|
||||
$1_TRUE='#'
|
||||
$1_FALSE=
|
||||
fi
|
||||
AC_CONFIG_COMMANDS_PRE(
|
||||
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
|
||||
AC_MSG_ERROR([[conditional "$1" was never defined.
|
||||
Usually this means the macro was only invoked conditionally.]])
|
||||
fi])])
|
||||
|
||||
|
||||
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
||||
# Free Software Foundation, Inc.
|
||||
#
|
||||
# This file 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.
|
||||
|
||||
# serial 8
|
||||
|
||||
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
|
||||
# written in clear, in which case automake, when reading aclocal.m4,
|
||||
# will think it sees a *use*, and therefore will trigger all it's
|
||||
# C support machinery. Also note that it means that autoscan, seeing
|
||||
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
|
||||
|
||||
|
||||
# _AM_DEPENDENCIES(NAME)
|
||||
# ----------------------
|
||||
# See how the compiler implements dependency checking.
|
||||
# NAME is "CC", "CXX", "GCJ", or "OBJC".
|
||||
# We try a few techniques and use that to set a single cache variable.
|
||||
#
|
||||
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
|
||||
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
|
||||
# dependency, and given that the user is not expected to run this macro,
|
||||
# just rely on AC_PROG_CC.
|
||||
AC_DEFUN([_AM_DEPENDENCIES],
|
||||
[AC_REQUIRE([AM_SET_DEPDIR])dnl
|
||||
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
|
||||
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
|
||||
AC_REQUIRE([AM_DEP_TRACK])dnl
|
||||
|
||||
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
|
||||
[$1], CXX, [depcc="$CXX" am_compiler_list=],
|
||||
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
|
||||
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
|
||||
[depcc="$$1" am_compiler_list=])
|
||||
|
||||
AC_CACHE_CHECK([dependency style of $depcc],
|
||||
[am_cv_$1_dependencies_compiler_type],
|
||||
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
||||
# We make a subdir and do the tests there. Otherwise we can end up
|
||||
# making bogus files that we don't know about and never remove. For
|
||||
# instance it was reported that on HP-UX the gcc test will end up
|
||||
# making a dummy file named `D' -- because `-MD' means `put the output
|
||||
# in D'.
|
||||
mkdir conftest.dir
|
||||
# Copy depcomp to subdir because otherwise we won't find it if we're
|
||||
# using a relative directory.
|
||||
cp "$am_depcomp" conftest.dir
|
||||
cd conftest.dir
|
||||
# We will build objects and dependencies in a subdirectory because
|
||||
# it helps to detect inapplicable dependency modes. For instance
|
||||
# both Tru64's cc and ICC support -MD to output dependencies as a
|
||||
# side effect of compilation, but ICC will put the dependencies in
|
||||
# the current directory while Tru64 will put them in the object
|
||||
# directory.
|
||||
mkdir sub
|
||||
|
||||
am_cv_$1_dependencies_compiler_type=none
|
||||
if test "$am_compiler_list" = ""; then
|
||||
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
|
||||
fi
|
||||
for depmode in $am_compiler_list; do
|
||||
# Setup a source with many dependencies, because some compilers
|
||||
# like to wrap large dependency lists on column 80 (with \), and
|
||||
# we should not choose a depcomp mode which is confused by this.
|
||||
#
|
||||
# We need to recreate these files for each test, as the compiler may
|
||||
# overwrite some of them when testing with obscure command lines.
|
||||
# This happens at least with the AIX C compiler.
|
||||
: > sub/conftest.c
|
||||
for i in 1 2 3 4 5 6; do
|
||||
echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
||||
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
|
||||
# Solaris 8's {/usr,}/bin/sh.
|
||||
touch sub/conftst$i.h
|
||||
done
|
||||
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
||||
|
||||
case $depmode in
|
||||
nosideeffect)
|
||||
# after this tag, mechanisms are not by side-effect, so they'll
|
||||
# only be used when explicitly requested
|
||||
if test "x$enable_dependency_tracking" = xyes; then
|
||||
continue
|
||||
else
|
||||
break
|
||||
fi
|
||||
;;
|
||||
none) break ;;
|
||||
esac
|
||||
# We check with `-c' and `-o' for the sake of the "dashmstdout"
|
||||
# mode. It turns out that the SunPro C++ compiler does not properly
|
||||
# handle `-M -o', and we need to detect this.
|
||||
if depmode=$depmode \
|
||||
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
|
||||
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
||||
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
|
||||
>/dev/null 2>conftest.err &&
|
||||
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
||||
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
|
||||
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
||||
# icc doesn't choke on unknown options, it will just issue warnings
|
||||
# or remarks (even with -Werror). So we grep stderr for any message
|
||||
# that says an option was ignored or not supported.
|
||||
# When given -MP, icc 7.0 and 7.1 complain thusly:
|
||||
# icc: Command line warning: ignoring option '-M'; no argument required
|
||||
# The diagnosis changed in icc 8.0:
|
||||
# icc: Command line remark: option '-MP' not supported
|
||||
if (grep 'ignoring option' conftest.err ||
|
||||
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
||||
am_cv_$1_dependencies_compiler_type=$depmode
|
||||
break
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
cd ..
|
||||
rm -rf conftest.dir
|
||||
else
|
||||
am_cv_$1_dependencies_compiler_type=none
|
||||
fi
|
||||
])
|
||||
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
|
||||
AM_CONDITIONAL([am__fastdep$1], [
|
||||
test "x$enable_dependency_tracking" != xno \
|
||||
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
|
||||
])
|
||||
|
||||
|
||||
# AM_SET_DEPDIR
|
||||
# -------------
|
||||
# Choose a directory name for dependency files.
|
||||
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
|
||||
AC_DEFUN([AM_SET_DEPDIR],
|
||||
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
||||
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
|
||||
])
|
||||
|
||||
|
||||
# AM_DEP_TRACK
|
||||
# ------------
|
||||
AC_DEFUN([AM_DEP_TRACK],
|
||||
[AC_ARG_ENABLE(dependency-tracking,
|
||||
[ --disable-dependency-tracking speeds up one-time build
|
||||
--enable-dependency-tracking do not reject slow dependency extractors])
|
||||
if test "x$enable_dependency_tracking" != xno; then
|
||||
am_depcomp="$ac_aux_dir/depcomp"
|
||||
AMDEPBACKSLASH='\'
|
||||
fi
|
||||
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
|
||||
AC_SUBST([AMDEPBACKSLASH])
|
||||
])
|
||||
|
||||
# Generate code to set up dependency tracking. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
||||
# Free Software Foundation, Inc.
|
||||
#
|
||||
# This file 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.
|
||||
|
||||
#serial 3
|
||||
|
||||
# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
||||
# ------------------------------
|
||||
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
|
||||
[for mf in $CONFIG_FILES; do
|
||||
# Strip MF so we end up with the name of the file.
|
||||
mf=`echo "$mf" | sed -e 's/:.*$//'`
|
||||
# Check whether this is an Automake generated Makefile or not.
|
||||
# We used to match only the files named `Makefile.in', but
|
||||
# some people rename them; so instead we look at the file content.
|
||||
# Grep'ing the first line is not enough: some people post-process
|
||||
# each Makefile.in and add a new line on top of each file to say so.
|
||||
# So let's grep whole file.
|
||||
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
|
||||
dirpart=`AS_DIRNAME("$mf")`
|
||||
else
|
||||
continue
|
||||
fi
|
||||
# Extract the definition of DEPDIR, am__include, and am__quote
|
||||
# from the Makefile without running `make'.
|
||||
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
||||
test -z "$DEPDIR" && continue
|
||||
am__include=`sed -n 's/^am__include = //p' < "$mf"`
|
||||
test -z "am__include" && continue
|
||||
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
|
||||
# When using ansi2knr, U may be empty or an underscore; expand it
|
||||
U=`sed -n 's/^U = //p' < "$mf"`
|
||||
# Find all dependency output files, they are included files with
|
||||
# $(DEPDIR) in their names. We invoke sed twice because it is the
|
||||
# simplest approach to changing $(DEPDIR) to its actual value in the
|
||||
# expansion.
|
||||
for file in `sed -n "
|
||||
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
|
||||
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
|
||||
# Make sure the directory exists.
|
||||
test -f "$dirpart/$file" && continue
|
||||
fdir=`AS_DIRNAME(["$file"])`
|
||||
AS_MKDIR_P([$dirpart/$fdir])
|
||||
# echo "creating $dirpart/$file"
|
||||
echo '# dummy' > "$dirpart/$file"
|
||||
done
|
||||
done
|
||||
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
||||
|
||||
|
||||
# AM_OUTPUT_DEPENDENCY_COMMANDS
|
||||
# -----------------------------
|
||||
# This macro should only be invoked once -- use via AC_REQUIRE.
|
||||
#
|
||||
# This code is only required when automatic dependency tracking
|
||||
# is enabled. FIXME. This creates each `.P' file that we will
|
||||
# need in order to bootstrap the dependency handling code.
|
||||
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
|
||||
[AC_CONFIG_COMMANDS([depfiles],
|
||||
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
|
||||
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
|
||||
])
|
||||
|
||||
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
|
||||
# Free Software Foundation, Inc.
|
||||
#
|
||||
# This file 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.
|
||||
|
||||
# serial 8
|
||||
|
||||
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
|
||||
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
|
||||
|
||||
# Do all the work for Automake. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
||||
# Free Software Foundation, Inc.
|
||||
#
|
||||
# This file 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.
|
||||
|
||||
# serial 12
|
||||
|
||||
# This macro actually does too much. Some checks are only needed if
|
||||
# your package does certain things. But this isn't really a big deal.
|
||||
|
||||
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
|
||||
# AM_INIT_AUTOMAKE([OPTIONS])
|
||||
# -----------------------------------------------
|
||||
# The call with PACKAGE and VERSION arguments is the old style
|
||||
# call (pre autoconf-2.50), which is being phased out. PACKAGE
|
||||
# and VERSION should now be passed to AC_INIT and removed from
|
||||
# the call to AM_INIT_AUTOMAKE.
|
||||
# We support both call styles for the transition. After
|
||||
# the next Automake release, Autoconf can make the AC_INIT
|
||||
# arguments mandatory, and then we can depend on a new Autoconf
|
||||
# release and drop the old call support.
|
||||
AC_DEFUN([AM_INIT_AUTOMAKE],
|
||||
[AC_PREREQ([2.58])dnl
|
||||
dnl Autoconf wants to disallow AM_ names. We explicitly allow
|
||||
dnl the ones we care about.
|
||||
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
|
||||
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
|
||||
AC_REQUIRE([AC_PROG_INSTALL])dnl
|
||||
# test to see if srcdir already configured
|
||||
if test "`cd $srcdir && pwd`" != "`pwd`" &&
|
||||
test -f $srcdir/config.status; then
|
||||
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
|
||||
fi
|
||||
|
||||
# test whether we have cygpath
|
||||
if test -z "$CYGPATH_W"; then
|
||||
if (cygpath --version) >/dev/null 2>/dev/null; then
|
||||
CYGPATH_W='cygpath -w'
|
||||
else
|
||||
CYGPATH_W=echo
|
||||
fi
|
||||
fi
|
||||
AC_SUBST([CYGPATH_W])
|
||||
|
||||
# Define the identity of the package.
|
||||
dnl Distinguish between old-style and new-style calls.
|
||||
m4_ifval([$2],
|
||||
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
|
||||
AC_SUBST([PACKAGE], [$1])dnl
|
||||
AC_SUBST([VERSION], [$2])],
|
||||
[_AM_SET_OPTIONS([$1])dnl
|
||||
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
|
||||
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
|
||||
|
||||
_AM_IF_OPTION([no-define],,
|
||||
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
|
||||
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
|
||||
|
||||
# Some tools Automake needs.
|
||||
AC_REQUIRE([AM_SANITY_CHECK])dnl
|
||||
AC_REQUIRE([AC_ARG_PROGRAM])dnl
|
||||
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
|
||||
AM_MISSING_PROG(AUTOCONF, autoconf)
|
||||
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
|
||||
AM_MISSING_PROG(AUTOHEADER, autoheader)
|
||||
AM_MISSING_PROG(MAKEINFO, makeinfo)
|
||||
AM_PROG_INSTALL_SH
|
||||
AM_PROG_INSTALL_STRIP
|
||||
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
|
||||
# We need awk for the "check" target. The system "awk" is bad on
|
||||
# some platforms.
|
||||
AC_REQUIRE([AC_PROG_AWK])dnl
|
||||
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
|
||||
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
||||
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
|
||||
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
|
||||
[_AM_PROG_TAR([v7])])])
|
||||
_AM_IF_OPTION([no-dependencies],,
|
||||
[AC_PROVIDE_IFELSE([AC_PROG_CC],
|
||||
[_AM_DEPENDENCIES(CC)],
|
||||
[define([AC_PROG_CC],
|
||||
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
|
||||
AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
||||
[_AM_DEPENDENCIES(CXX)],
|
||||
[define([AC_PROG_CXX],
|
||||
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
|
||||
])
|
||||
])
|
||||
|
||||
|
||||
# When config.status generates a header, we must update the stamp-h file.
|
||||
# This file resides in the same directory as the config header
|
||||
# that is generated. The stamp files are numbered to have different names.
|
||||
|
||||
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
|
||||
# loop where config.status creates the headers, so we can generate
|
||||
# our stamp files there.
|
||||
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
|
||||
[# Compute $1's index in $config_headers.
|
||||
_am_stamp_count=1
|
||||
for _am_header in $config_headers :; do
|
||||
case $_am_header in
|
||||
$1 | $1:* )
|
||||
break ;;
|
||||
* )
|
||||
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
||||
esac
|
||||
done
|
||||
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
|
||||
|
||||
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file 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.
|
||||
|
||||
# AM_PROG_INSTALL_SH
|
||||
# ------------------
|
||||
# Define $install_sh.
|
||||
AC_DEFUN([AM_PROG_INSTALL_SH],
|
||||
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
||||
install_sh=${install_sh-"$am_aux_dir/install-sh"}
|
||||
AC_SUBST(install_sh)])
|
||||
|
||||
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file 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.
|
||||
|
||||
# serial 2
|
||||
|
||||
# Check whether the underlying file-system supports filenames
|
||||
# with a leading dot. For instance MS-DOS doesn't.
|
||||
AC_DEFUN([AM_SET_LEADING_DOT],
|
||||
[rm -rf .tst 2>/dev/null
|
||||
mkdir .tst 2>/dev/null
|
||||
if test -d .tst; then
|
||||
am__leading_dot=.
|
||||
else
|
||||
am__leading_dot=_
|
||||
fi
|
||||
rmdir .tst 2>/dev/null
|
||||
AC_SUBST([am__leading_dot])])
|
||||
|
||||
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
|
||||
# From Jim Meyering
|
||||
|
||||
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
|
||||
# Free Software Foundation, Inc.
|
||||
#
|
||||
# This file 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.
|
||||
|
||||
# serial 4
|
||||
|
||||
AC_DEFUN([AM_MAINTAINER_MODE],
|
||||
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
|
||||
dnl maintainer-mode is disabled by default
|
||||
AC_ARG_ENABLE(maintainer-mode,
|
||||
[ --enable-maintainer-mode enable make rules and dependencies not useful
|
||||
(and sometimes confusing) to the casual installer],
|
||||
USE_MAINTAINER_MODE=$enableval,
|
||||
USE_MAINTAINER_MODE=no)
|
||||
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
|
||||
AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
|
||||
MAINT=$MAINTAINER_MODE_TRUE
|
||||
AC_SUBST(MAINT)dnl
|
||||
]
|
||||
)
|
||||
|
||||
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
|
||||
|
||||
# Check to see how 'make' treats includes. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file 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.
|
||||
|
||||
# serial 3
|
||||
|
||||
# AM_MAKE_INCLUDE()
|
||||
# -----------------
|
||||
# Check to see how make treats includes.
|
||||
AC_DEFUN([AM_MAKE_INCLUDE],
|
||||
[am_make=${MAKE-make}
|
||||
cat > confinc << 'END'
|
||||
am__doit:
|
||||
@echo done
|
||||
.PHONY: am__doit
|
||||
END
|
||||
# If we don't find an include directive, just comment out the code.
|
||||
AC_MSG_CHECKING([for style of include used by $am_make])
|
||||
am__include="#"
|
||||
am__quote=
|
||||
_am_result=none
|
||||
# First try GNU make style include.
|
||||
echo "include confinc" > confmf
|
||||
# We grep out `Entering directory' and `Leaving directory'
|
||||
# messages which can occur if `w' ends up in MAKEFLAGS.
|
||||
# In particular we don't look at `^make:' because GNU make might
|
||||
# be invoked under some other name (usually "gmake"), in which
|
||||
# case it prints its new name instead of `make'.
|
||||
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
|
||||
am__include=include
|
||||
am__quote=
|
||||
_am_result=GNU
|
||||
fi
|
||||
# Now try BSD make style include.
|
||||
if test "$am__include" = "#"; then
|
||||
echo '.include "confinc"' > confmf
|
||||
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
|
||||
am__include=.include
|
||||
am__quote="\""
|
||||
_am_result=BSD
|
||||
fi
|
||||
fi
|
||||
AC_SUBST([am__include])
|
||||
AC_SUBST([am__quote])
|
||||
AC_MSG_RESULT([$_am_result])
|
||||
rm -f confinc confmf
|
||||
])
|
||||
|
||||
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
|
||||
# Free Software Foundation, Inc.
|
||||
#
|
||||
# This file 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.
|
||||
|
||||
# serial 4
|
||||
|
||||
# AM_MISSING_PROG(NAME, PROGRAM)
|
||||
# ------------------------------
|
||||
AC_DEFUN([AM_MISSING_PROG],
|
||||
[AC_REQUIRE([AM_MISSING_HAS_RUN])
|
||||
$1=${$1-"${am_missing_run}$2"}
|
||||
AC_SUBST($1)])
|
||||
|
||||
|
||||
# AM_MISSING_HAS_RUN
|
||||
# ------------------
|
||||
# Define MISSING if not defined so far and test if it supports --run.
|
||||
# If it does, set am_missing_run to use it, otherwise, to nothing.
|
||||
AC_DEFUN([AM_MISSING_HAS_RUN],
|
||||
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
||||
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
|
||||
# Use eval to expand $SHELL
|
||||
if eval "$MISSING --run true"; then
|
||||
am_missing_run="$MISSING --run "
|
||||
else
|
||||
am_missing_run=
|
||||
AC_MSG_WARN([`missing' script is too old or missing])
|
||||
fi
|
||||
])
|
||||
|
||||
# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file 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.
|
||||
|
||||
# AM_PROG_MKDIR_P
|
||||
# ---------------
|
||||
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
|
||||
#
|
||||
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
|
||||
# created by `make install' are always world readable, even if the
|
||||
# installer happens to have an overly restrictive umask (e.g. 077).
|
||||
# This was a mistake. There are at least two reasons why we must not
|
||||
# use `-m 0755':
|
||||
# - it causes special bits like SGID to be ignored,
|
||||
# - it may be too restrictive (some setups expect 775 directories).
|
||||
#
|
||||
# Do not use -m 0755 and let people choose whatever they expect by
|
||||
# setting umask.
|
||||
#
|
||||
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
|
||||
# Some implementations (such as Solaris 8's) are not thread-safe: if a
|
||||
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
|
||||
# concurrently, both version can detect that a/ is missing, but only
|
||||
# one can create it and the other will error out. Consequently we
|
||||
# restrict ourselves to GNU make (using the --version option ensures
|
||||
# this.)
|
||||
AC_DEFUN([AM_PROG_MKDIR_P],
|
||||
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
|
||||
# We used to keeping the `.' as first argument, in order to
|
||||
# allow $(mkdir_p) to be used without argument. As in
|
||||
# $(mkdir_p) $(somedir)
|
||||
# where $(somedir) is conditionally defined. However this is wrong
|
||||
# for two reasons:
|
||||
# 1. if the package is installed by a user who cannot write `.'
|
||||
# make install will fail,
|
||||
# 2. the above comment should most certainly read
|
||||
# $(mkdir_p) $(DESTDIR)$(somedir)
|
||||
# so it does not work when $(somedir) is undefined and
|
||||
# $(DESTDIR) is not.
|
||||
# To support the latter case, we have to write
|
||||
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
|
||||
# so the `.' trick is pointless.
|
||||
mkdir_p='mkdir -p --'
|
||||
else
|
||||
# On NextStep and OpenStep, the `mkdir' command does not
|
||||
# recognize any option. It will interpret all options as
|
||||
# directories to create, and then abort because `.' already
|
||||
# exists.
|
||||
for d in ./-p ./--version;
|
||||
do
|
||||
test -d $d && rmdir $d
|
||||
done
|
||||
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
|
||||
if test -f "$ac_aux_dir/mkinstalldirs"; then
|
||||
mkdir_p='$(mkinstalldirs)'
|
||||
else
|
||||
mkdir_p='$(install_sh) -d'
|
||||
fi
|
||||
fi
|
||||
AC_SUBST([mkdir_p])])
|
||||
|
||||
# Helper functions for option handling. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file 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.
|
||||
|
||||
# serial 3
|
||||
|
||||
# _AM_MANGLE_OPTION(NAME)
|
||||
# -----------------------
|
||||
AC_DEFUN([_AM_MANGLE_OPTION],
|
||||
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
|
||||
|
||||
# _AM_SET_OPTION(NAME)
|
||||
# ------------------------------
|
||||
# Set option NAME. Presently that only means defining a flag for this option.
|
||||
AC_DEFUN([_AM_SET_OPTION],
|
||||
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
|
||||
|
||||
# _AM_SET_OPTIONS(OPTIONS)
|
||||
# ----------------------------------
|
||||
# OPTIONS is a space-separated list of Automake options.
|
||||
AC_DEFUN([_AM_SET_OPTIONS],
|
||||
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
|
||||
|
||||
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
|
||||
# -------------------------------------------
|
||||
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
|
||||
AC_DEFUN([_AM_IF_OPTION],
|
||||
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
|
||||
|
||||
# Check to make sure that the build environment is sane. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
|
||||
# Free Software Foundation, Inc.
|
||||
#
|
||||
# This file 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.
|
||||
|
||||
# serial 4
|
||||
|
||||
# AM_SANITY_CHECK
|
||||
# ---------------
|
||||
AC_DEFUN([AM_SANITY_CHECK],
|
||||
[AC_MSG_CHECKING([whether build environment is sane])
|
||||
# Just in case
|
||||
sleep 1
|
||||
echo timestamp > conftest.file
|
||||
# Do `set' in a subshell so we don't clobber the current shell's
|
||||
# arguments. Must try -L first in case configure is actually a
|
||||
# symlink; some systems play weird games with the mod time of symlinks
|
||||
# (eg FreeBSD returns the mod time of the symlink's containing
|
||||
# directory).
|
||||
if (
|
||||
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
|
||||
if test "$[*]" = "X"; then
|
||||
# -L didn't work.
|
||||
set X `ls -t $srcdir/configure conftest.file`
|
||||
fi
|
||||
rm -f conftest.file
|
||||
if test "$[*]" != "X $srcdir/configure conftest.file" \
|
||||
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
|
||||
|
||||
# If neither matched, then we have a broken ls. This can happen
|
||||
# if, for instance, CONFIG_SHELL is bash and it inherits a
|
||||
# broken ls alias from the environment. This has actually
|
||||
# happened. Such a system could not be considered "sane".
|
||||
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
|
||||
alias in your environment])
|
||||
fi
|
||||
|
||||
test "$[2]" = conftest.file
|
||||
)
|
||||
then
|
||||
# Ok.
|
||||
:
|
||||
else
|
||||
AC_MSG_ERROR([newly created file is older than distributed files!
|
||||
Check your system clock])
|
||||
fi
|
||||
AC_MSG_RESULT(yes)])
|
||||
|
||||
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file 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.
|
||||
|
||||
# AM_PROG_INSTALL_STRIP
|
||||
# ---------------------
|
||||
# One issue with vendor `install' (even GNU) is that you can't
|
||||
# specify the program used to strip binaries. This is especially
|
||||
# annoying in cross-compiling environments, where the build's strip
|
||||
# is unlikely to handle the host's binaries.
|
||||
# Fortunately install-sh will honor a STRIPPROG variable, so we
|
||||
# always use install-sh in `make install-strip', and initialize
|
||||
# STRIPPROG with the value of the STRIP variable (set by the user).
|
||||
AC_DEFUN([AM_PROG_INSTALL_STRIP],
|
||||
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
||||
# Installed binaries are usually stripped using `strip' when the user
|
||||
# run `make install-strip'. However `strip' might not be the right
|
||||
# tool to use in cross-compilation environments, therefore Automake
|
||||
# will honor the `STRIP' environment variable to overrule this program.
|
||||
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
|
||||
if test "$cross_compiling" != no; then
|
||||
AC_CHECK_TOOL([STRIP], [strip], :)
|
||||
fi
|
||||
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
|
||||
AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
||||
|
||||
# Check how to create a tarball. -*- Autoconf -*-
|
||||
|
||||
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
|
||||
#
|
||||
# This file 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.
|
||||
|
||||
# serial 2
|
||||
|
||||
# _AM_PROG_TAR(FORMAT)
|
||||
# --------------------
|
||||
# Check how to create a tarball in format FORMAT.
|
||||
# FORMAT should be one of `v7', `ustar', or `pax'.
|
||||
#
|
||||
# Substitute a variable $(am__tar) that is a command
|
||||
# writing to stdout a FORMAT-tarball containing the directory
|
||||
# $tardir.
|
||||
# tardir=directory && $(am__tar) > result.tar
|
||||
#
|
||||
# Substitute a variable $(am__untar) that extract such
|
||||
# a tarball read from stdin.
|
||||
# $(am__untar) < result.tar
|
||||
AC_DEFUN([_AM_PROG_TAR],
|
||||
[# Always define AMTAR for backward compatibility.
|
||||
AM_MISSING_PROG([AMTAR], [tar])
|
||||
m4_if([$1], [v7],
|
||||
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
|
||||
[m4_case([$1], [ustar],, [pax],,
|
||||
[m4_fatal([Unknown tar format])])
|
||||
AC_MSG_CHECKING([how to create a $1 tar archive])
|
||||
# Loop over all known methods to create a tar archive until one works.
|
||||
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
|
||||
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
|
||||
# Do not fold the above two line into one, because Tru64 sh and
|
||||
# Solaris sh will not grok spaces in the rhs of `-'.
|
||||
for _am_tool in $_am_tools
|
||||
do
|
||||
case $_am_tool in
|
||||
gnutar)
|
||||
for _am_tar in tar gnutar gtar;
|
||||
do
|
||||
AM_RUN_LOG([$_am_tar --version]) && break
|
||||
done
|
||||
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
|
||||
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
|
||||
am__untar="$_am_tar -xf -"
|
||||
;;
|
||||
plaintar)
|
||||
# Must skip GNU tar: if it does not support --format= it doesn't create
|
||||
# ustar tarball either.
|
||||
(tar --version) >/dev/null 2>&1 && continue
|
||||
am__tar='tar chf - "$$tardir"'
|
||||
am__tar_='tar chf - "$tardir"'
|
||||
am__untar='tar xf -'
|
||||
;;
|
||||
pax)
|
||||
am__tar='pax -L -x $1 -w "$$tardir"'
|
||||
am__tar_='pax -L -x $1 -w "$tardir"'
|
||||
am__untar='pax -r'
|
||||
;;
|
||||
cpio)
|
||||
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
|
||||
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
|
||||
am__untar='cpio -i -H $1 -d'
|
||||
;;
|
||||
none)
|
||||
am__tar=false
|
||||
am__tar_=false
|
||||
am__untar=false
|
||||
;;
|
||||
esac
|
||||
|
||||
# If the value was cached, stop now. We just wanted to have am__tar
|
||||
# and am__untar set.
|
||||
test -n "${am_cv_prog_tar_$1}" && break
|
||||
|
||||
# tar/untar a dummy directory, and stop if the command works
|
||||
rm -rf conftest.dir
|
||||
mkdir conftest.dir
|
||||
echo GrepMe > conftest.dir/file
|
||||
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
|
||||
rm -rf conftest.dir
|
||||
if test -s conftest.tar; then
|
||||
AM_RUN_LOG([$am__untar <conftest.tar])
|
||||
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
|
||||
fi
|
||||
done
|
||||
rm -rf conftest.dir
|
||||
|
||||
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
|
||||
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
|
||||
AC_SUBST([am__tar])
|
||||
AC_SUBST([am__untar])
|
||||
]) # _AM_PROG_TAR
|
||||
|
||||
m4_include([acinclude.m4])
|
@ -0,0 +1,261 @@
|
||||
/* config.h.in. Generated from configure.in by autoheader. */
|
||||
|
||||
/* Define to 1 if you have the <Carbon/Carbon.h> header file. */
|
||||
#undef HAVE_CARBON_CARBON_H
|
||||
|
||||
/* 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
|
||||
|
||||
/* DPMS extension available */
|
||||
#undef HAVE_DPMS
|
||||
|
||||
/* DVB headers installed */
|
||||
#undef HAVE_DVB
|
||||
|
||||
/* 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 res_init */
|
||||
#undef HAVE_RES_INIT
|
||||
|
||||
/* Define if you have the res_init prototype */
|
||||
#undef HAVE_RES_INIT_PROTO
|
||||
|
||||
/* 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/bitypes.h> header file. */
|
||||
#undef HAVE_SYS_BITYPES_H
|
||||
|
||||
/* 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
|
||||
|
||||
/* xcb available */
|
||||
#undef HAVE_XCB
|
||||
|
||||
/* Xinerama extension available */
|
||||
#undef HAVE_XINERAMA
|
||||
|
||||
/* XTest extension available */
|
||||
#undef HAVE_XTEST
|
||||
|
||||
/* Suffix for lib directories */
|
||||
#undef KDELIBSUFF
|
||||
|
||||
/* 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 `char *', as computed by sizeof. */
|
||||
#undef SIZEOF_CHAR_P
|
||||
|
||||
/* The size of `int', as computed by sizeof. */
|
||||
#undef SIZEOF_INT
|
||||
|
||||
/* The size of `long', as computed by sizeof. */
|
||||
#undef SIZEOF_LONG
|
||||
|
||||
/* The size of `short', as computed by sizeof. */
|
||||
#undef SIZEOF_SHORT
|
||||
|
||||
/* The size of `size_t', as computed by sizeof. */
|
||||
#undef SIZEOF_SIZE_T
|
||||
|
||||
/* The size of `unsigned long', as computed by sizeof. */
|
||||
#undef SIZEOF_UNSIGNED_LONG
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#undef STDC_HEADERS
|
||||
|
||||
/* If we use arts volume */
|
||||
#undef USE_ARTS
|
||||
|
||||
/* Version number of package */
|
||||
#undef VERSION
|
||||
|
||||
/* Defined if compiling without arts */
|
||||
#undef WITHOUT_ARTS
|
||||
|
||||
/* workaround buggy X server */
|
||||
#undef XINIT_WKRND
|
||||
|
||||
/*
|
||||
* 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_RES_INIT_PROTO)
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
int res_init(void);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#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
|
||||
|
||||
|
||||
/* define to 1 if -fvisibility is supported */
|
||||
#undef __KDE_HAVE_GCC_VISIBILITY
|
||||
|
||||
|
||||
#if defined(__SVR4) && !defined(__svr4__)
|
||||
#define __svr4__ 1
|
||||
#endif
|
||||
|
||||
|
||||
/* type to use in place of socklen_t if not defined */
|
||||
#undef kde_socklen_t
|
||||
|
||||
/* type to use in place of socklen_t if not defined (deprecated, use
|
||||
kde_socklen_t) */
|
||||
#undef ksize_t
|
@ -0,0 +1,4 @@
|
||||
./admin/configure.in.min
|
||||
configure.in.in
|
||||
./kaffeine/configure.in.bot
|
||||
./kaffeine/configure.in.in
|
@ -0,0 +1,509 @@
|
||||
dnl =======================================================
|
||||
dnl FILE: ./admin/configure.in.min
|
||||
dnl =======================================================
|
||||
|
||||
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(kaffeine, 0.8.5) dnl searches for some needed programs
|
||||
|
||||
AM_MAINTAINER_MODE
|
||||
|
||||
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.3)
|
||||
AC_PATH_KDE
|
||||
dnl =======================================================
|
||||
dnl FILE: configure.in.in
|
||||
dnl =======================================================
|
||||
|
||||
#MIN_CONFIG(3.3)
|
||||
|
||||
KDE_ENABLE_HIDDEN_VISIBILITY
|
||||
|
||||
dnl PACKAGE set before
|
||||
|
||||
AM_MAINTAINER_MODE
|
||||
|
||||
CXXFLAGS="$CXXFLAGS $KDE_DEFAULT_CXXFLAGS"
|
||||
|
||||
if test "$build_arts" = "yes"; then
|
||||
AC_DEFINE(USE_ARTS, 1, [If we use arts volume])
|
||||
LIB_ARTS="-lartskde"
|
||||
AC_SUBST(LIB_ARTS)
|
||||
fi
|
||||
|
||||
KDE_INIT_DOXYGEN([The API Reference], [Version $VERSION])
|
||||
|
||||
dnl =======================================================
|
||||
dnl FILE: ./kaffeine/configure.in.in
|
||||
dnl =======================================================
|
||||
|
||||
dnl -----------
|
||||
dnl basic stuff
|
||||
dnl -----------
|
||||
|
||||
KDE_ENABLE_HIDDEN_VISIBILITY
|
||||
|
||||
AC_ARG_VAR([PKG_CONFIG], [Path to pkg-config])
|
||||
|
||||
if test -z "$PKG_CONFIG" ; then
|
||||
PKG_CONFIG="pkg-config"
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING([for pkg-config])
|
||||
|
||||
if ! "$PKG_CONFIG" --version ; then
|
||||
echo ""
|
||||
echo "---------------------------------------------------------------------"
|
||||
echo "ERROR: Could not find pkg-config. Make sure it is in your path or set"
|
||||
echo "the PKG_CONFIG environment variable to the full path to pkg-config."
|
||||
echo "---------------------------------------------------------------------"
|
||||
echo ""
|
||||
AC_MSG_ERROR([could not find pkg-config])
|
||||
fi
|
||||
|
||||
AC_ARG_WITH([xinit-workaround],
|
||||
[AS_HELP_STRING([--with-xinit-workaround],
|
||||
[use this flag if Kaffeine hangs at startup and you are using XFree86 4.4 or X.Org 6.7.0])],,
|
||||
[with_xinit_workaround=no])
|
||||
|
||||
if test "$with_xinit_workaround" = "yes" ; then
|
||||
AC_DEFINE([XINIT_WKRND],,[workaround buggy X server])
|
||||
fi
|
||||
|
||||
dnl ------------------------
|
||||
dnl check for DPMS extension
|
||||
dnl ------------------------
|
||||
|
||||
AC_ARG_WITH([dpms], [AS_HELP_STRING([--without-dpms], [build without DPMS support])],,
|
||||
[with_dpms=yes])
|
||||
|
||||
CFLAGS_DPMS=""
|
||||
LIB_DPMS=""
|
||||
|
||||
if test "$with_dpms" != "no" ; then
|
||||
AC_MSG_CHECKING([for DPMS extension])
|
||||
|
||||
if "$PKG_CONFIG" --exists xext ; then
|
||||
with_dpms=yes
|
||||
CFLAGS_DPMS=`"$PKG_CONFIG" --cflags xext`
|
||||
LIB_DPMS=`"$PKG_CONFIG" --libs xext`
|
||||
AC_DEFINE([HAVE_DPMS],,[DPMS extension available])
|
||||
AC_MSG_RESULT([yes])
|
||||
else
|
||||
with_dpms=no
|
||||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_SUBST([CFLAGS_DPMS])
|
||||
AC_SUBST([LIB_DPMS])
|
||||
|
||||
dnl -------------------------
|
||||
dnl check for XTest extension
|
||||
dnl -------------------------
|
||||
|
||||
AC_ARG_WITH([xtest], [AS_HELP_STRING([--without-xtest], [build without XTest support])],,
|
||||
[with_xtest=yes])
|
||||
|
||||
CFLAGS_XTEST=""
|
||||
LIB_XTEST=""
|
||||
|
||||
if test "$with_xtest" != "no" ; then
|
||||
AC_MSG_CHECKING([for XTest extension])
|
||||
|
||||
if "$PKG_CONFIG" --exists xtst ; then
|
||||
with_xtest=yes
|
||||
CFLAGS_XTEST=`"$PKG_CONFIG" --cflags xtst`
|
||||
LIB_XTEST=`"$PKG_CONFIG" --libs xtst`
|
||||
AC_DEFINE([HAVE_XTEST],,[XTest extension available])
|
||||
AC_MSG_RESULT([yes])
|
||||
else
|
||||
with_xtest=no
|
||||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_SUBST([CFLAGS_XTEST])
|
||||
AC_SUBST([LIB_XTEST])
|
||||
|
||||
dnl ----------------------------
|
||||
dnl check for Xinerama extension
|
||||
dnl ----------------------------
|
||||
|
||||
AC_ARG_WITH([xinerama], [AS_HELP_STRING([--without-xinerama], [build without Xinerama support])],,
|
||||
[with_xinerama=yes])
|
||||
|
||||
CFLAGS_XINERAMA=""
|
||||
LIB_XINERAMA=""
|
||||
|
||||
if test "$with_xinerama" != "no" ; then
|
||||
AC_MSG_CHECKING([for Xinerama extension])
|
||||
|
||||
if "$PKG_CONFIG" --exists xinerama ; then
|
||||
with_xinerama=yes
|
||||
CFLAGS_XINERAMA=`"$PKG_CONFIG" --cflags xinerama`
|
||||
LIB_XINERAMA=`"$PKG_CONFIG" --libs xinerama`
|
||||
AC_DEFINE([HAVE_XINERAMA],,[Xinerama extension available])
|
||||
AC_MSG_RESULT([yes])
|
||||
else
|
||||
with_xinerama=no
|
||||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_SUBST([CFLAGS_XINERAMA])
|
||||
AC_SUBST([LIB_XINERAMA])
|
||||
|
||||
dnl ------------------
|
||||
dnl check for xine-lib
|
||||
dnl ------------------
|
||||
|
||||
AC_MSG_CHECKING([for xine-lib])
|
||||
|
||||
CFLAGS_XINE=""
|
||||
LIB_XINE=""
|
||||
|
||||
if "$PKG_CONFIG" --exists "libxine >= 1.1.9" ; then
|
||||
CFLAGS_XINE=`"$PKG_CONFIG" --cflags libxine`
|
||||
LIB_XINE=`"$PKG_CONFIG" --libs libxine`
|
||||
AC_MSG_RESULT([yes])
|
||||
else
|
||||
AC_MSG_RESULT([no])
|
||||
|
||||
echo ""
|
||||
echo "---------------------------------------"
|
||||
echo "ERROR: Could not find xine-lib >= 1.1.9"
|
||||
echo "---------------------------------------"
|
||||
echo ""
|
||||
|
||||
AC_MSG_ERROR([could not find xine-lib])
|
||||
fi
|
||||
|
||||
AC_SUBST([CFLAGS_XINE])
|
||||
AC_SUBST([LIB_XINE])
|
||||
|
||||
dnl -------------
|
||||
dnl check for xcb
|
||||
dnl -------------
|
||||
|
||||
AC_ARG_WITH([xcb], [AS_HELP_STRING([--without-xcb], [disable xcb support (not recommended)])],,
|
||||
[with_xcb=yes])
|
||||
|
||||
AC_MSG_CHECKING([for xcb and xine-lib >= 1.1.9])
|
||||
|
||||
CFLAGS_XCB=""
|
||||
LIB_XCB=""
|
||||
|
||||
if test "$with_xcb" != "no" ; then
|
||||
if "$PKG_CONFIG" --exists "xcb >= 1.0" ; then
|
||||
with_xcb=yes
|
||||
CFLAGS_XCB=`"$PKG_CONFIG" --cflags xcb`
|
||||
LIB_XCB=`"$PKG_CONFIG" --libs xcb`
|
||||
AC_DEFINE([HAVE_XCB],,[xcb available])
|
||||
AC_MSG_RESULT([yes])
|
||||
else
|
||||
with_xcb=no
|
||||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_SUBST([CFLAGS_XCB])
|
||||
AC_SUBST([LIB_XCB])
|
||||
|
||||
AM_CONDITIONAL([with_xcb], [test "$with_xcb" = "yes"])
|
||||
|
||||
dnl ---------------------
|
||||
dnl check for DVB headers
|
||||
dnl ---------------------
|
||||
|
||||
AC_ARG_WITH([dvb], [AS_HELP_STRING([--without-dvb], [build without DVB support])],,
|
||||
[with_dvb=yes])
|
||||
|
||||
if test "$with_dvb" != "no" ; then
|
||||
KDE_CHECK_HEADER([linux/dvb/frontend.h], [with_dvb=yes]
|
||||
[AC_DEFINE([HAVE_DVB],,[DVB headers installed])], [with_dvb=no])
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL([with_dvb], [test "$with_dvb" = "yes"])
|
||||
|
||||
dnl -------------------
|
||||
dnl check for gstreamer
|
||||
dnl -------------------
|
||||
|
||||
AC_ARG_WITH([gstreamer], [AS_HELP_STRING([--without-gstreamer], [disable GStreamer player part])],,
|
||||
[with_gstreamer=yes])
|
||||
|
||||
CFLAGS_GSTREAMER=""
|
||||
LIB_GSTREAMER=""
|
||||
|
||||
if test "$with_gstreamer" != "no" ; then
|
||||
AC_MSG_CHECKING([for GStreamer])
|
||||
|
||||
if "$PKG_CONFIG" --exists "gstreamer-0.10 gstreamer-plugins-base-0.10"; then
|
||||
with_gstreamer=yes
|
||||
CFLAGS_GSTREAMER=`"$PKG_CONFIG" --cflags gstreamer-0.10 gstreamer-plugins-base-0.10`
|
||||
LIB_GSTREAMER=`"$PKG_CONFIG" --libs gstreamer-0.10 gstreamer-plugins-base-0.10`
|
||||
AC_MSG_RESULT([yes])
|
||||
else
|
||||
with_gstreamer=no
|
||||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_SUBST([CFLAGS_GSTREAMER])
|
||||
AC_SUBST([LIB_GSTREAMER])
|
||||
|
||||
AM_CONDITIONAL([with_gstreamer], [test "$with_gstreamer" = "yes"])
|
||||
|
||||
dnl --------------------
|
||||
dnl check for cdparanoia
|
||||
dnl --------------------
|
||||
|
||||
KDE_CHECK_HEADER([cdda_interface.h], [with_cdparanoia=yes], [with_cdparanoia=no])
|
||||
|
||||
if test "$with_cdparanoia" != "yes" ; then
|
||||
echo ""
|
||||
echo "-----------------------------------------"
|
||||
echo "ERROR: Could not find cdparanoia headers."
|
||||
echo "-----------------------------------------"
|
||||
echo ""
|
||||
|
||||
AC_MSG_ERROR([could not find cdparanoia headers])
|
||||
fi
|
||||
|
||||
dnl ----------------------------
|
||||
dnl check for Ogg Vorbis encoder
|
||||
dnl ----------------------------
|
||||
|
||||
AC_ARG_WITH([oggvorbis], [AS_HELP_STRING([--without-oggvorbis], [build without Ogg Vorbis support])],,
|
||||
[with_oggvorbis=yes])
|
||||
|
||||
CFLAGS_OGGVORBIS=""
|
||||
LIB_OGGVORBIS=""
|
||||
|
||||
if test "$with_oggvorbis" != "no" ; then
|
||||
AC_MSG_CHECKING([for Ogg/Vorbis encoder])
|
||||
|
||||
if "$PKG_CONFIG" --exists vorbisenc ; then
|
||||
with_oggvorbis=yes
|
||||
CFLAGS_OGGVORBIS=`"$PKG_CONFIG" --cflags vorbisenc`
|
||||
LIB_OGGVORBIS=`"$PKG_CONFIG" --libs vorbisenc`
|
||||
AC_MSG_RESULT([yes])
|
||||
else
|
||||
with_oggvorbis=no
|
||||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_SUBST([CFLAGS_OGGVORBIS])
|
||||
AC_SUBST([LIB_OGGVORBIS])
|
||||
|
||||
AM_CONDITIONAL([with_oggvorbis], [test "$with_oggvorbis" = "yes"])
|
||||
|
||||
dnl --------------
|
||||
dnl check for LAME
|
||||
dnl --------------
|
||||
|
||||
AC_ARG_WITH([lame], [AS_HELP_STRING([--without-lame], [build without LAME support])],,
|
||||
[with_lame=yes])
|
||||
|
||||
LIB_LAME=""
|
||||
|
||||
if test "$with_lame" != "no" ; then
|
||||
KDE_CHECK_HEADER([lame/lame.h], [with_lame=yes], [with_lame=no])
|
||||
fi
|
||||
|
||||
if test "$with_lame" = "yes" ; then
|
||||
KDE_CHECK_LIB([mp3lame], [lame_init], [LIB_LAME="-lmp3lame"], [with_lame=no], [-lm])
|
||||
fi
|
||||
|
||||
AC_SUBST([LIB_LAME])
|
||||
|
||||
AM_CONDITIONAL([with_lame], [test "$with_lame" = "yes"])
|
||||
KDE_CREATE_SUBDIRSLIST
|
||||
AM_CONDITIONAL(doc_SUBDIR_included, test "x$doc_SUBDIR_included" = xyes)
|
||||
AM_CONDITIONAL(kaffeine_SUBDIR_included, test "x$kaffeine_SUBDIR_included" = xyes)
|
||||
AM_CONDITIONAL(po_SUBDIR_included, test "x$po_SUBDIR_included" = xyes)
|
||||
AC_CONFIG_FILES([ Makefile ])
|
||||
AC_CONFIG_FILES([ doc/Makefile ])
|
||||
AC_CONFIG_FILES([ doc/kaffeine/Makefile ])
|
||||
AC_CONFIG_FILES([ kaffeine/Makefile ])
|
||||
AC_CONFIG_FILES([ kaffeine/images/Makefile ])
|
||||
AC_CONFIG_FILES([ kaffeine/mimetypes/Makefile ])
|
||||
AC_CONFIG_FILES([ kaffeine/mimetypes/application/Makefile ])
|
||||
AC_CONFIG_FILES([ kaffeine/protocols/Makefile ])
|
||||
AC_CONFIG_FILES([ kaffeine/servicemenus/Makefile ])
|
||||
AC_CONFIG_FILES([ kaffeine/src/Makefile ])
|
||||
AC_CONFIG_FILES([ kaffeine/src/input/Makefile ])
|
||||
AC_CONFIG_FILES([ kaffeine/src/input/audiobrowser/Makefile ])
|
||||
AC_CONFIG_FILES([ kaffeine/src/input/disc/Makefile ])
|
||||
AC_CONFIG_FILES([ kaffeine/src/input/disc/plugins/Makefile ])
|
||||
AC_CONFIG_FILES([ kaffeine/src/input/disc/plugins/mp3lame/Makefile ])
|
||||
AC_CONFIG_FILES([ kaffeine/src/input/disc/plugins/oggvorbis/Makefile ])
|
||||
AC_CONFIG_FILES([ kaffeine/src/input/dvb/Makefile ])
|
||||
AC_CONFIG_FILES([ kaffeine/src/input/dvb/lib/Makefile ])
|
||||
AC_CONFIG_FILES([ kaffeine/src/input/dvb/lib/libdvbapi/Makefile ])
|
||||
AC_CONFIG_FILES([ kaffeine/src/input/dvb/lib/libdvben50221/Makefile ])
|
||||
AC_CONFIG_FILES([ kaffeine/src/input/dvb/lib/libucsi/Makefile ])
|
||||
AC_CONFIG_FILES([ kaffeine/src/input/dvb/lib/libucsi/dvb/Makefile ])
|
||||
AC_CONFIG_FILES([ kaffeine/src/input/dvb/lib/libucsi/mpeg/Makefile ])
|
||||
AC_CONFIG_FILES([ kaffeine/src/input/dvb/plugins/Makefile ])
|
||||
AC_CONFIG_FILES([ kaffeine/src/input/dvb/plugins/epg/Makefile ])
|
||||
AC_CONFIG_FILES([ kaffeine/src/input/dvb/plugins/stream/Makefile ])
|
||||
AC_CONFIG_FILES([ kaffeine/src/input/dvbclient/Makefile ])
|
||||
AC_CONFIG_FILES([ kaffeine/src/player-parts/Makefile ])
|
||||
AC_CONFIG_FILES([ kaffeine/src/player-parts/dummy-part/Makefile ])
|
||||
AC_CONFIG_FILES([ kaffeine/src/player-parts/gstreamer-part/Makefile ])
|
||||
AC_CONFIG_FILES([ kaffeine/src/player-parts/kaffeine-part/Makefile ])
|
||||
AC_CONFIG_FILES([ kaffeine/src/player-parts/xine-part/Makefile ])
|
||||
AC_CONFIG_FILES([ po/Makefile ])
|
||||
AC_OUTPUT
|
||||
echo ""
|
||||
echo "-------------------------------------------------------"
|
||||
echo "Kaffeine configure results:"
|
||||
echo ""
|
||||
|
||||
if test "$with_xcb" = "yes" ; then
|
||||
echo "Build with xcb support: yes"
|
||||
else
|
||||
echo "Build with xcb support: no"
|
||||
echo "IMPORTANT: this is strongly discouraged"
|
||||
fi
|
||||
|
||||
if test "$with_dpms" = "yes" ; then
|
||||
echo "Build with DPMS support: yes"
|
||||
else
|
||||
echo "Build with DPMS support: no"
|
||||
fi
|
||||
|
||||
if test "$with_xtest" = "yes" ; then
|
||||
echo "Build with XTest support: yes"
|
||||
else
|
||||
echo "Build with XTest support: no"
|
||||
fi
|
||||
|
||||
if test "$with_xinerama" = "yes" ; then
|
||||
echo "Build with Xinerama support: yes"
|
||||
else
|
||||
echo "Build with Xinerama support: no"
|
||||
fi
|
||||
|
||||
if test "$with_dvb" = "yes" ; then
|
||||
echo "Build with DVB support: yes"
|
||||
else
|
||||
echo "Build with DVB support: no"
|
||||
fi
|
||||
|
||||
if test "$with_gstreamer" = "yes" ; then
|
||||
echo "Build GStreamer player part: yes"
|
||||
echo "IMPORTANT: the GStreamer player part is experimental"
|
||||
else
|
||||
echo "Build GStreamer player-part: no"
|
||||
fi
|
||||
|
||||
if test "$with_oggvorbis" = "yes" ; then
|
||||
echo "Build Ogg Vorbis encoder plugin: yes"
|
||||
else
|
||||
echo "Build Ogg Vorbis encoder plugin: no"
|
||||
fi
|
||||
|
||||
if test "$with_lame" = "yes" ; then
|
||||
echo "Build LAME encoder plugin: yes"
|
||||
else
|
||||
echo "Build LAME encoder plugin: no"
|
||||
fi
|
||||
# Check if KDE_SET_PREFIX was called, and --prefix was passed to configure
|
||||
if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then
|
||||
# And if so, warn when they don't match
|
||||
if test "$kde_libs_prefix" != "$given_prefix"; then
|
||||
# And if kde doesn't know about the prefix yet
|
||||
echo ":"`kde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null
|
||||
if test $? -ne 0; then
|
||||
echo ""
|
||||
echo "Warning: you chose to install this package in $given_prefix,"
|
||||
echo "but KDE was found in $kde_libs_prefix."
|
||||
echo "For this to work, you will need to tell KDE about the new prefix, by ensuring"
|
||||
echo "that KDEDIRS contains it, e.g. export KDEDIRS=$given_prefix:$kde_libs_prefix"
|
||||
echo "Then restart KDE."
|
||||
echo ""
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if test x$GXX = "xyes" -a x$kde_have_gcc_visibility = "xyes" -a x$kde_cv_val_qt_gcc_visibility_patched = "xno"; then
|
||||
echo ""
|
||||
echo "Your GCC supports symbol visibility, but the patch for Qt supporting visibility"
|
||||
echo "was not included. Therefore, GCC symbol visibility support remains disabled."
|
||||
echo ""
|
||||
echo "For better performance, consider including the Qt visibility supporting patch"
|
||||
echo "located at:"
|
||||
echo ""
|
||||
echo "http://bugs.kde.org/show_bug.cgi?id=109386"
|
||||
echo ""
|
||||
echo "and recompile all of Qt and KDE. Note, this is entirely optional and"
|
||||
echo "everything will continue to work just fine without it."
|
||||
echo ""
|
||||
fi
|
||||
|
||||
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,18 @@
|
||||
#MIN_CONFIG(3.3)
|
||||
|
||||
KDE_ENABLE_HIDDEN_VISIBILITY
|
||||
|
||||
AM_INIT_AUTOMAKE(kaffeine, 0.8.5)
|
||||
|
||||
AM_MAINTAINER_MODE
|
||||
|
||||
CXXFLAGS="$CXXFLAGS $KDE_DEFAULT_CXXFLAGS"
|
||||
|
||||
if test "$build_arts" = "yes"; then
|
||||
AC_DEFINE(USE_ARTS, 1, [If we use arts volume])
|
||||
LIB_ARTS="-lartskde"
|
||||
AC_SUBST(LIB_ARTS)
|
||||
fi
|
||||
|
||||
KDE_INIT_DOXYGEN([The API Reference], [Version $VERSION])
|
||||
|
@ -0,0 +1,5 @@
|
||||
|
||||
KDE_LANG = en
|
||||
KDE_DOCS = AUTO
|
||||
SUBDIRS = $(AUTODIRS)
|
||||
|
@ -0,0 +1,5 @@
|
||||
|
||||
KDE_LANG = en
|
||||
KDE_DOCS = kaffeine
|
||||
|
||||
|
After Width: | Height: | Size: 189 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 390 KiB |
After Width: | Height: | Size: 37 KiB |
After Width: | Height: | Size: 25 KiB |
After Width: | Height: | Size: 75 KiB |
After Width: | Height: | Size: 44 KiB |
After Width: | Height: | Size: 32 KiB |
After Width: | Height: | Size: 260 KiB |
After Width: | Height: | Size: 42 KiB |
@ -0,0 +1,796 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.1.2-Based Variant V1.0//EN" "dtd/kdex.dtd" [
|
||||
<!-- Define an entity for your application if it is not part of KDE
|
||||
CVS -->
|
||||
<!ENTITY kaffeine "<application>Kaffeine</application>">
|
||||
<!ENTITY kappname "&kaffeine;"><!-- replace kmyapplication here
|
||||
do *not* replace kappname-->
|
||||
<!ENTITY package "kde-module"><!-- kdebase, kdeadmin, etc. Leave
|
||||
this unchanged if your
|
||||
application is not maintained in KDE CVS -->
|
||||
<!ENTITY % addindex "IGNORE">
|
||||
<!ENTITY % English "INCLUDE"> <!-- ONLY If you are writing non-English
|
||||
original documentation, change
|
||||
the language here -->
|
||||
]>
|
||||
|
||||
<book lang="&language;">
|
||||
|
||||
|
||||
<bookinfo>
|
||||
<title>&kaffeine; 0.8 Handbook</title>
|
||||
|
||||
<authorgroup>
|
||||
<author>
|
||||
<firstname>Jürgen</firstname>
|
||||
<othername></othername>
|
||||
<surname>Kofler</surname>
|
||||
<affiliation>
|
||||
<address><email>kaffeine@gmx.net</email></address>
|
||||
</affiliation>
|
||||
</author>
|
||||
<author>
|
||||
<firstname>Christophe</firstname>
|
||||
<othername></othername>
|
||||
<surname>Thommeret</surname>
|
||||
<affiliation>
|
||||
<address><email>hftom@free.fr</email></address>
|
||||
</affiliation>
|
||||
</author>
|
||||
</authorgroup>
|
||||
|
||||
<!-- TRANS:ROLES_OF_TRANSLATORS -->
|
||||
|
||||
<copyright>
|
||||
<year>2004</year>
|
||||
<year>2006</year>
|
||||
<holder>The Kaffeine Authors</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 (DD/MM/YYYY) and of the version
|
||||
(V.MM.LL), it could be used by automation scripts.
|
||||
Do NOT change these in the translation. -->
|
||||
|
||||
<date>13/03/2006</date>
|
||||
<releaseinfo>0.08.00</releaseinfo>
|
||||
|
||||
<!-- Abstract about this handbook -->
|
||||
|
||||
<abstract>
|
||||
<para>
|
||||
A Media Player for KDE. <ulink url="http://kaffeine.sourceforge.net">http://kaffeine.sourceforge.net</ulink>
|
||||
</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>kaffeine</keyword>
|
||||
<keyword>xine</keyword>
|
||||
<keyword>video</keyword>
|
||||
<keyword>audio</keyword>
|
||||
<keyword>mp3</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="kaffeine-app">
|
||||
<title>Kaffeine Shell</title>
|
||||
|
||||
<sect1 id="startwindow">
|
||||
<title>The Start Window</title>
|
||||
|
||||
<screenshot>
|
||||
<screeninfo>Start Window</screeninfo>
|
||||
<mediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="startwindow.png" format="PNG"/>
|
||||
</imageobject>
|
||||
|
||||
<textobject>
|
||||
<phrase>Screenshot</phrase>
|
||||
</textobject>
|
||||
</mediaobject>
|
||||
</screenshot>
|
||||
|
||||
<para>Provides fast access to the most important media sources.
|
||||
</para>
|
||||
|
||||
</sect1>
|
||||
|
||||
<sect1 id="playlistwindow">
|
||||
<title>The Playlist Window</title>
|
||||
|
||||
<screenshot>
|
||||
<screeninfo>&kaffeine; Playlist Window</screeninfo>
|
||||
<mediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="playlistwin.png" format="PNG"/>
|
||||
</imageobject>
|
||||
|
||||
<textobject>
|
||||
<phrase>Screenshot</phrase>
|
||||
</textobject>
|
||||
</mediaobject>
|
||||
</screenshot>
|
||||
|
||||
<para>Kaffeine supports multiple playlists. Choose the active one with the "Playlist" selector. You can easily drag some files or folders from the file browser and drop it on the playlist to enqueue or drop it on the player window to create a new playlist. To change playlist name edit it and confirm with <keycap>Return</keycap>.
|
||||
</para>
|
||||
<para>You can find all playlist related functions in the <guimenu>Playlist</guimenu>-Menu and the context-menu (right-click on playlist).
|
||||
</para>
|
||||
|
||||
</sect1>
|
||||
|
||||
<sect1 id="disctwindow">
|
||||
<title>The Discs Window</title>
|
||||
|
||||
<screenshot>
|
||||
<screeninfo>&kaffeine; Discs Window</screeninfo>
|
||||
<mediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="discwindow.png" format="PNG"/>
|
||||
</imageobject>
|
||||
|
||||
<textobject>
|
||||
<phrase>Screenshot</phrase>
|
||||
</textobject>
|
||||
</mediaobject>
|
||||
</screenshot>
|
||||
|
||||
<para>Here you can start Audio CD, DVD or VCD. You can even rip and encode audio tracks to be stored on your hard disk.
|
||||
</para>
|
||||
|
||||
</sect1>
|
||||
|
||||
<sect1 id="dvbwindow">
|
||||
<title>The DVB Window</title>
|
||||
|
||||
<screenshot>
|
||||
<screeninfo>DVB Window</screeninfo>
|
||||
<mediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="dvbwin.png" format="PNG"/>
|
||||
</imageobject>
|
||||
<textobject>
|
||||
<phrase>Screenshot</phrase>
|
||||
</textobject>
|
||||
</mediaobject>
|
||||
</screenshot>
|
||||
|
||||
<para>Kaffeine supports Digital Video Broadcasting devices supported by linuxtv drivers. This window is only visible if Kaffeine find a DVB device at startup. If you have a DVB device and Kaffeine doesn't find it, make sure the driver is loaded and your device recognized. (Further information can be found at www.linuxtv.org)
|
||||
</para>
|
||||
<remark>You can arrange your channels in categories. To create a new category, right click in the icon view to get a popup menu. Now, drag a channel name and drop it on the desired category' icon. To remove a channel from a category, drop it on the "All" icon. Right click on an icon to delete that category or change icon.</remark>
|
||||
<para>You can find all DVB related functions in the <guimenu>DVB</guimenu>-Menu.
|
||||
</para>
|
||||
|
||||
<sect2 id="dvbconfig">
|
||||
<title>Configuration</title>
|
||||
|
||||
<screenshot>
|
||||
<screeninfo>Configuration</screeninfo>
|
||||
<mediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="dvbconfig.png" format="PNG"/>
|
||||
</imageobject>
|
||||
<textobject>
|
||||
<phrase>Screenshot</phrase>
|
||||
</textobject>
|
||||
</mediaobject>
|
||||
</screenshot>
|
||||
|
||||
<para>Select <guimenu>Menu->DVB->Configure DVB...</guimenu> to open the DVB config dialog. In order to get your device(s) working in Kaffeine, you have to choose a "source" in the list. If you have a DISEqC switch, choose a source for each satellite.
|
||||
</para>
|
||||
<para>The <guilabel>Recording</guilabel> page allow you to choose where programs are saved to disk.
|
||||
</para>
|
||||
</sect2>
|
||||
|
||||
<sect2 id="dvbscan">
|
||||
<title>Getting channels</title>
|
||||
|
||||
<screenshot>
|
||||
<screeninfo>Channels</screeninfo>
|
||||
<mediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="dvbscan.png" format="PNG"/>
|
||||
</imageobject>
|
||||
<textobject>
|
||||
<phrase>Screenshot</phrase>
|
||||
</textobject>
|
||||
</mediaobject>
|
||||
</screenshot>
|
||||
|
||||
<para>Open the <guilabel>Channels</guilabel> dialog from the <guimenu>DVB</guimenu>-Menu. There, click the <guilabel>Start scan</guilabel> button to start scanning the network for available channels. This can take a while, so be patient ... When done, select the channels you want to add to your channels list and click <guilabel>Add selected</guilabel> or use the filters and click <guilabel>Add filtered</guilabel> (e.g. check "Free to air" and "TV" to add all fta TV).
|
||||
</para>
|
||||
<para>When added to channels list, channels are automatically assigned a number. To change this number, right click on the channel name and choose <guilabel>Edit ...</guilabel> from the popup menu. This number will allow you to zap using keypad.
|
||||
</para>
|
||||
<remark>Note that you can also change the channel number in the DVB window. Select the channel then click on the number to edit.</remark>
|
||||
</sect2>
|
||||
|
||||
<sect2 id="live">
|
||||
<title>Viewing live</title>
|
||||
|
||||
<screenshot>
|
||||
<screeninfo>Live TV</screeninfo>
|
||||
<mediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="dvblive.jpg" format="JPEG"/>
|
||||
</imageobject>
|
||||
<textobject>
|
||||
<phrase>Screenshot</phrase>
|
||||
</textobject>
|
||||
</mediaobject>
|
||||
</screenshot>
|
||||
|
||||
<para>To zap to a channel, you can either double-click on a channel name in the DVB window or use keypad (or remote control with kdelirc) to enter the channel number. Entered digit are displayed in the top left corner of the Player window. You can also hit pageUp/pageDown to zap to previous/next.
|
||||
</para>
|
||||
<para>You can now see your favorite program. Kaffeine also displays some informations about this channel using OSD. You can later hit "O" to see it again. (Hit "O" twice to display current program description).
|
||||
</para>
|
||||
<para>Now, what if your phone suddenly ring and you absolutely don't want to miss this crucial moment of the movie ? Don't worry. Just hit <guilabel>pause</guilabel>. Kaffeine will pause and immediately start to save the stream to your harddisk. Later, hit <guilabel>play</guilabel> and the program will continue from where you left it. To return to live, just rezap to this channel.
|
||||
</para>
|
||||
<remark>Note that live DVB only works with the xine engine (called "Kaffeine"). <guimenu>Menu->Settings->Engine->Kaffeine</guimenu>.</remark>
|
||||
</sect2>
|
||||
|
||||
<sect2 id="epg">
|
||||
<title>Electronic Program Guide</title>
|
||||
|
||||
<screenshot>
|
||||
<screeninfo>EPG</screeninfo>
|
||||
<mediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="dvbepg.png" format="PNG"/>
|
||||
</imageobject>
|
||||
<textobject>
|
||||
<phrase>Screenshot</phrase>
|
||||
</textobject>
|
||||
</mediaobject>
|
||||
</screenshot>
|
||||
|
||||
<para><guimenu>Menu->DVB->EPG...</guimenu> brings up the Electronic Program Guide window, displaying current/next programs. Left click on an entry to display the detailed description of the program. Scheduled events for a given channel are displayed when you right click on one of the channel entry and select <guimenu>View all programs</guimenu> from the context menu.
|
||||
</para>
|
||||
<para>Double click on an entry to zap to that channel.
|
||||
</para>
|
||||
<remark>Note that you have first to zap to some channels in order to get EPG.</remark>
|
||||
</sect2>
|
||||
|
||||
<sect2 id="recording">
|
||||
<title>Recording</title>
|
||||
|
||||
<screenshot>
|
||||
<screeninfo>Recording</screeninfo>
|
||||
<mediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="dvbtimers.png" format="PNG"/>
|
||||
</imageobject>
|
||||
<textobject>
|
||||
<phrase>Screenshot</phrase>
|
||||
</textobject>
|
||||
</mediaobject>
|
||||
</screenshot>
|
||||
|
||||
<para>Kaffeine offers you several way of recording.
|
||||
</para>
|
||||
<para>When you are viewing a live program, you can simply choose <guimenu>Menu->DVB->Instant record</guimenu> to immediately start recording this program. The duration is defined in the <guilabel>Recording</guilabel> page of the DVB config dialog, but you can modify it on the fly from the Timers dialog (<guimenu>Menu->DVB->Timers...</guimenu>). Just select the program and click <guilabel>Edit</guilabel> button to change the duration.
|
||||
</para>
|
||||
<para>You can also create a timer from the EPG window. Right click on a program entry and select <guimenu>Add to timers</guimenu> from the context menu. In this case, the timer is created using <guilabel>Begin margin</guilabel> and <guilabel>End margin</guilabel> defined in the <guilabel>Recording</guilabel> page of the DVB config dialog. So, start time is set to [start time given by EPG]-[begin margin] and duration is set to [duration given by EPG]+[begin margin]+[end margin].
|
||||
</para>
|
||||
<para>Finally, you can create a new timer by hand. Open the Timers dialog, click on the <guilabel>New</guilabel> button and fill in required informations.
|
||||
</para>
|
||||
<para>Note that all timers can be deleted, even if running. Open the Timers dialog, select the program and click the <guilabel>Delete</guilabel> button. Of course, deleting a running timer doesn't delete the file on the disk.
|
||||
</para>
|
||||
<remark>You can view and/or record several channels at the same time on the same multiplex. Note that the priority is always given to timers, so if you are viewing a live show and a timer is to be started on a different multiplex, live will be stopped to allow recording.</remark>
|
||||
<para></para>
|
||||
<remark>Be aware that a DVB stream is about 1.5GB/hour.</remark>
|
||||
</sect2>
|
||||
|
||||
<sect2 id="replay">
|
||||
<title>Playing a record</title>
|
||||
|
||||
<para>Simply open the file and Kaffeine will start playing. That's all !
|
||||
</para>
|
||||
</sect2>
|
||||
|
||||
<sect2 id="broadcasting">
|
||||
<title>Broadcasting</title>
|
||||
|
||||
<screenshot>
|
||||
<screeninfo>Broadcasting</screeninfo>
|
||||
<mediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="dvbbroadcast.png" format="PNG"/>
|
||||
</imageobject>
|
||||
<textobject>
|
||||
<phrase>Screenshot</phrase>
|
||||
</textobject>
|
||||
</mediaobject>
|
||||
</screenshot>
|
||||
|
||||
<para>Kaffeine can broadcast several DVB channels (being on the same multiplex) on a lan.
|
||||
</para>
|
||||
<para>Open the DVB config dialog and go to the <guilabel>Broadcasting</guilabel> page to set address and ports.
|
||||
</para>
|
||||
<para><guimenu>Menu->DVB->Broadcasting...</guimenu> opens the broadcasting editor. Select a channel in the <guilabel>Available channels</guilabel> list, and click the <guilabel>Add</guilabel> button to add it to the <guilabel>Broadcasting list</guilabel>. The <guilabel>Available channels</guilabel> list is now filled with channels on the same multiplex. You can now use multi-selection to add channels. Click <guilabel>OK</guilabel> button to start broadcasting.
|
||||
</para>
|
||||
<para>To stop broadcasting, open the dialog and click <guilabel>OK</guilabel> with an empty list.
|
||||
</para>
|
||||
<remark>Note that the priority is always given to timers, so if you are broadcasting and a timer is to be started on a different multiplex, broadcasting will be stopped to allow recording. And broadcasting has a higher priority than live.</remark>
|
||||
</sect2>
|
||||
|
||||
</sect1>
|
||||
|
||||
<sect1 id="dvbclientwindow">
|
||||
<title>The DVB Client Window</title>
|
||||
|
||||
<screenshot>
|
||||
<screeninfo>DVB Client Window</screeninfo>
|
||||
<mediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="dvbclient.png" format="PNG"/>
|
||||
</imageobject>
|
||||
<textobject>
|
||||
<phrase>Screenshot</phrase>
|
||||
</textobject>
|
||||
</mediaobject>
|
||||
</screenshot>
|
||||
|
||||
<para>To enable DVB client, you have to check the box in the Kaffeine configuration dialog. There you must also set address and ports. It will create a new tab labeled <guilabel>Dvb client</guilabel> showing a list of actually broadcasted channels (if any). Double click on a channel name to start playing it. DVB client also support time shifting (just hit pause).
|
||||
</para>
|
||||
</sect1>
|
||||
|
||||
</chapter>
|
||||
|
||||
<chapter id="player-parts">
|
||||
<title>Player Parts</title>
|
||||
|
||||
<para>You'll find all available player parts in <guimenu>Settings</guimenu>-<guimenuitem>Player Engine</guimenuitem>.
|
||||
</para>
|
||||
|
||||
<sect1 id="kaffeine-part">
|
||||
<title>The Kaffeine Part</title>
|
||||
|
||||
<screenshot>
|
||||
<screeninfo>Kaffeine-Part</screeninfo>
|
||||
<mediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="kaffeinepart.png" format="PNG"/>
|
||||
</imageobject>
|
||||
|
||||
<textobject>
|
||||
<phrase>Screenshot</phrase>
|
||||
</textobject>
|
||||
</mediaobject>
|
||||
</screenshot>
|
||||
|
||||
<para>This is the default, xine based, full featured player part for Kaffeine. Plays almost everything...</para>
|
||||
|
||||
<sect2 id="about-xine">
|
||||
<title>About xine</title>
|
||||
|
||||
<para>
|
||||
xine is a free multimedia player. It plays back CDs, DVDs, and VCDs.
|
||||
It also decodes multimedia files like AVI, MOV, WMV, and MP3 from local disk drives, and displays multimedia streamed over the Internet.
|
||||
It interprets many of the most common multimedia formats available - and some of the most uncommon formats, too.
|
||||
Detailed info about xine features: <ulink url="http://www.xinehq.de">
|
||||
http://www.xinehq.de</ulink>
|
||||
</para>
|
||||
|
||||
</sect2>
|
||||
|
||||
</sect1>
|
||||
|
||||
<sect1 id="gstreamer-part">
|
||||
<title>The GStreamer Part</title>
|
||||
|
||||
<screenshot>
|
||||
<screeninfo>GStreamer-Part</screeninfo>
|
||||
<mediaobject>
|
||||
<imageobject>
|
||||
<imagedata fileref="gstpart.png" format="PNG"/>
|
||||
</imageobject>
|
||||
|
||||
<textobject>
|
||||
<phrase>Screenshot</phrase>
|
||||
</textobject>
|
||||
</mediaobject>
|
||||
</screenshot>
|
||||
|
||||
<para>A simple player part based on GStreamer. GStreamer homepage: <ulink url="http://gstreamer.freedesktop.org">
|
||||
http://gstreamer.freedesktop.org</ulink>
|
||||
</para>
|
||||
|
||||
</sect1>
|
||||
|
||||
</chapter>
|
||||
|
||||
<chapter id="cmdline-options">
|
||||
<title>Command Line Options</title>
|
||||
|
||||
<para>Usage:</para>
|
||||
<cmdsynopsis>
|
||||
<command>kaffeine</command>
|
||||
<group choice="opt">
|
||||
<option>f</option>
|
||||
<option>p</option><option>w</option>
|
||||
<option>a</option><option>x</option>
|
||||
<option>d</option>
|
||||
</group>
|
||||
<arg>--fullscreen</arg>
|
||||
<arg>--play</arg>
|
||||
<arg>--audiodriver</arg>
|
||||
<arg>--videodriver</arg>
|
||||
<arg>--device</arg>
|
||||
<arg>--verbose</arg>
|
||||
<arg>--wizard</arg>
|
||||
<arg rep="repeat"><replaceable>file</replaceable></arg>
|
||||
</cmdsynopsis>
|
||||
|
||||
<para></para>
|
||||
|
||||
<informaltable>
|
||||
<tgroup cols="2">
|
||||
<tbody>
|
||||
|
||||
<row><entry><para><option>-f,--fullscreen</option></para></entry>
|
||||
<entry><para>Starts &kaffeine; in fullscreen mode.
|
||||
</para></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><para><option>-p,--play</option></para></entry>
|
||||
<entry><para>Starts with last played track.
|
||||
</para></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><para><option>-a,--audiodriver (argument)</option></para></entry>
|
||||
<entry><para>Sets the audio driver. Arguments can be: alsa, arts, oss, ...
|
||||
</para></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><para><option>-x,--videodriver (argument)</option></para></entry>
|
||||
<entry><para>Sets the video driver. Arguments can be: xv, xshm, dxr3 ,...
|
||||
</para></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><para><option>-d,--device (argument)</option></para></entry>
|
||||
<entry><para>Sets the Audio-CD/VCD/DVD path to (argument).
|
||||
</para></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><para><option>--verbose</option></para></entry>
|
||||
<entry><para>Outputs more debug messages.
|
||||
</para></entry>
|
||||
</row>
|
||||
<row><entry><para><option>-w,--wizard</option></para></entry>
|
||||
<entry><para>Runs installation wizard.
|
||||
</para></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><para><option>file...</option></para></entry>
|
||||
<entry><para>Files to play. Can be local files, a directory, an URL or "AudioCD", "VCD", "DVD".
|
||||
</para></entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
|
||||
</chapter>
|
||||
|
||||
<chapter id="dcop-interface">
|
||||
<title>The DCOP Interface</title>
|
||||
|
||||
<sect1 id="dcop-overview">
|
||||
<title>Overview</title>
|
||||
<para>You can use the DCOP interface in two kinds: From inside another application with <function>KApplication::dcopClient()->send( "kaffeine", "KaffeineIface", "pause()" )</function>
|
||||
or from command line with <command>dcop kaffeine KaffeineIface openURL best_song_of_the_world.mp3</command>.
|
||||
</para>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="dcop-functions">
|
||||
<title>Functions</title>
|
||||
|
||||
<sect2 id="kaffeineiface">
|
||||
<title>KaffeineIface Object</title>
|
||||
|
||||
<informaltable>
|
||||
<tgroup cols="2">
|
||||
<tbody>
|
||||
|
||||
<row>
|
||||
<entry><para><function>void openURL(QString URL)</function></para></entry>
|
||||
<entry><para>Opens and plays the given URL.</para></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><para><function>void appendURL(QString URL)</function></para></entry>
|
||||
<entry><para>Appends the URL to current playlist.</para></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><para><function>void playAudioCD()</function></para></entry>
|
||||
<entry><para>Starts playing Audio CD.</para></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><para><function>void playVCD()</function></para></entry>
|
||||
<entry><para>Starts playing Video CD.</para></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><para><function>void playDVD()</function></para></entry>
|
||||
<entry><para>Starts playing DVD.</para></entry>
|
||||
</row>
|
||||
<row><entry><para><function>void play()</function></para></entry>
|
||||
<entry><para>(Re)Starts playback.</para></entry>
|
||||
</row>
|
||||
<row><entry><para><function>bool isPlaying()</function></para></entry>
|
||||
<entry><para>Returns "true" or "false" on command line.</para></entry>
|
||||
</row>
|
||||
<row><entry><para><function>void pause()</function></para></entry>
|
||||
<entry><para>Toggles pause/playback.</para></entry>
|
||||
</row>
|
||||
<row><entry><para><function>void next()</function></para></entry>
|
||||
<entry><para>Plays next playlist entry/chapter/DVB channel.</para></entry>
|
||||
</row>
|
||||
<row><entry><para><function>void previous()</function></para></entry>
|
||||
<entry><para>Plays previous playlist entry/chapter/DVB channel.</para></entry>
|
||||
</row>
|
||||
<row><entry><para><function>void stop()</function></para></entry>
|
||||
<entry><para>Stops playback.</para></entry>
|
||||
</row>
|
||||
<row><entry><para><function>QString title()</function></para></entry>
|
||||
<entry><para>Returns the title of the current track.</para></entry>
|
||||
</row>
|
||||
<row><entry><para><function>QString getFileName()</function></para></entry>
|
||||
<entry><para>Returns filename of current track.</para></entry>
|
||||
</row>
|
||||
<row><entry><para><function>int getLength()</function></para></entry>
|
||||
<entry><para>Returns length of current track in seconds.</para></entry>
|
||||
</row>
|
||||
<row><entry><para><function>int getTimePos()</function></para></entry>
|
||||
<entry><para>Returns current stream position in seconds.</para></entry>
|
||||
</row>
|
||||
<row><entry><para><function>void quit()</function></para></entry>
|
||||
<entry><para>Quits Kaffeine.</para></entry>
|
||||
</row>
|
||||
<row><entry><para><function>void random()</function></para></entry>
|
||||
<entry><para>Toggles between random and normal play.</para></entry>
|
||||
</row>
|
||||
<row><entry><para><function>void fullscreen()</function></para></entry>
|
||||
<entry><para>Toggles between fullscreen and windowed mode.</para></entry>
|
||||
</row>
|
||||
<row><entry><para><function>void posPlus()</function></para></entry>
|
||||
<entry><para>Increases stream position.</para></entry>
|
||||
</row>
|
||||
<row><entry><para><function>void posMinus()</function></para></entry>
|
||||
<entry><para>Decreases stream position.</para></entry>
|
||||
</row>
|
||||
<row><entry><para><function>void volUp()</function></para></entry>
|
||||
<entry><para>Increases volume.</para></entry>
|
||||
</row>
|
||||
<row><entry><para><function>void volDown()</function></para></entry>
|
||||
<entry><para>Decreases volume.</para></entry>
|
||||
</row>
|
||||
<row><entry><para><function>void mute()</function></para></entry>
|
||||
<entry><para>Toggles mute on/off.</para></entry>
|
||||
</row>
|
||||
<row><entry><para><function>void setNumber(int number)</function></para></entry>
|
||||
<entry><para>Select DVB channel/playlist entry by number.</para></entry>
|
||||
</row>
|
||||
<row><entry><para><function>void dvbOSD()</function></para></entry>
|
||||
<entry><para>Toggles DVB-OSD on/off.</para></entry>
|
||||
</row>
|
||||
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2 id="kaffeinepartiface">
|
||||
<title>KaffeinePartIface Object</title>
|
||||
|
||||
<informaltable>
|
||||
<tgroup cols="2">
|
||||
<tbody>
|
||||
|
||||
<row>
|
||||
<entry><para><function>int getContrast()</function></para></entry>
|
||||
<entry><para>Returns current contrast.</para></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><para><function>void setContrast(int contrast)</function></para></entry>
|
||||
<entry><para>Sets contrast (0..65535).</para></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><para><function>int getBrightness()</function></para></entry>
|
||||
<entry><para>Returns current brightness.</para></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><para><function>void setBrightness(int brightness)</function></para></entry>
|
||||
<entry><para>Sets brightness (0..65535).</para></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><para><function>void dvdMenuUp()</function></para></entry>
|
||||
<entry><para>DVD Menu: Cursor up.</para></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><para><function>void dvdMenuDown()</function></para></entry>
|
||||
<entry><para>DVD Menu: Cursor down.</para></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><para><function>void dvdMenuLeft()</function></para></entry>
|
||||
<entry><para>DVD Menu: Cursor left.</para></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><para><function>void dvdMenuRight()</function></para></entry>
|
||||
<entry><para>DVD Menu: Cursor right.</para></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><para><function>void dvdMenuSelect()</function></para></entry>
|
||||
<entry><para>DVD Menu: Selects the menu item pointed by the cursor.</para></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><para><function>void dvdMenuToggle()</function></para></entry>
|
||||
<entry><para>Toggles DVD menu on/off.</para></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><para><function>void aspectRatioAuto()</function></para></entry>
|
||||
<entry><para>Automatic aspect ratio.</para></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><para><function>void aspectRatio4_3()</function></para></entry>
|
||||
<entry><para>Sets aspect ratio to 4:3.</para></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><para><function>void aspectRatioAnamorphic()</function></para></entry>
|
||||
<entry><para>Sets aspect ratio to 16:9.</para></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><para><function>void aspectRatioSquare()</function></para></entry>
|
||||
<entry><para>Sets aspect ratio to 1:1.</para></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><para><function>void aspectRatioDVB()</function></para></entry>
|
||||
<entry><para>Sets aspect ratio to 2.11:1.</para></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><para><function>void zoomIn()</function></para></entry>
|
||||
<entry><para>Zooms picture in.</para></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><para><function>void zoomOut()</function></para></entry>
|
||||
<entry><para>Zooms picture out.</para></entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry><para><function>void zoomOff()</function></para></entry>
|
||||
<entry><para>Disables zoom.</para></entry>
|
||||
</row>
|
||||
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
|
||||
</sect2>
|
||||
</sect1>
|
||||
</chapter>
|
||||
|
||||
<chapter id="keybindings">
|
||||
<title>Keybindings</title>
|
||||
|
||||
<para>You can configure shortcuts using <guimenu>Settings</guimenu>-<guimenuitem>Configure Shortcuts</guimenuitem>.
|
||||
</para>
|
||||
|
||||
</chapter>
|
||||
|
||||
|
||||
<chapter id="faq">
|
||||
<title>Questions and Answers</title>
|
||||
|
||||
|
||||
<para>
|
||||
<ulink url="http://kaffeine.sourceforge.net/index.php?page=faq">Kaffeine-FAQ</ulink>
|
||||
</para>
|
||||
<para>
|
||||
<ulink url="http://xinehq.de/index.php/faq">xine-FAQ</ulink>
|
||||
</para>
|
||||
|
||||
<para>For Questions use the <ulink url="http://lists.sourceforge.net/lists/listinfo/kaffeine-user">kaffeine-user mailinglist</ulink>.
|
||||
(First check the <ulink url="http://sourceforge.net/mailarchive/forum.php?forum_id=34875">archive</ulink>
|
||||
if the question is still answered.)
|
||||
</para>
|
||||
|
||||
|
||||
</chapter>
|
||||
|
||||
<chapter id="bug">
|
||||
<title>Reporting BUGS</title>
|
||||
|
||||
<para>
|
||||
Before you report a bug, please first make sure the bug has not been reported
|
||||
yet in the bug tracking system at <ulink url="http://www.sourceforge.net/projects/kaffeine">http://www.sourceforge.net/projects/kaffeine</ulink>.
|
||||
Also have a look into the mailinglist <ulink url="http://sourceforge.net/mailarchive/forum.php?forum_id=34875">archive</ulink>.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
Please use only the tracking system on sourceforge for reporting bugs and log in before
|
||||
submitting (if you've a sourceforge account).
|
||||
</para>
|
||||
|
||||
<para>
|
||||
When you submit a bug, please include all of the following information:
|
||||
|
||||
<itemizedlist>
|
||||
<listitem><para>versions of Kaffeine, xine, KDE, X11</para></listitem>
|
||||
<listitem><para>the backtrace from KDE's Crash Manager</para></listitem>
|
||||
<listitem><para>console output (you can use --verbose to get more)</para></listitem>
|
||||
</itemizedlist>
|
||||
|
||||
</para>
|
||||
|
||||
</chapter>
|
||||
|
||||
<chapter id="credits">
|
||||
<title>Copyright and License</title>
|
||||
|
||||
<para>
|
||||
Program copyright 2003-2005, The Kaffeine Authors
|
||||
</para>
|
||||
|
||||
|
||||
<para>
|
||||
Documentation copyright 2003-2005, Jürgen Kofler <email>kaffeine@gmx.net</email>, Christophe Thommeret <email>hftom@free.fr</email>
|
||||
</para>
|
||||
|
||||
<!-- TRANS:CREDIT_FOR_TRANSLATORS -->
|
||||
|
||||
&underFDL; <!-- FDL: do not remove. Commercial development should -->
|
||||
<!-- replace this with their copyright and either remove it or re-set this.-->
|
||||
|
||||
<!-- 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 -->
|
||||
|
||||
|
||||
</chapter>
|
||||
|
||||
&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:
|
||||
-->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
After Width: | Height: | Size: 104 KiB |
After Width: | Height: | Size: 83 KiB |
After Width: | Height: | Size: 37 KiB |
@ -0,0 +1,19 @@
|
||||
|
||||
|
||||
******************************
|
||||
* Reporting Kaffeine BUGS *
|
||||
******************************
|
||||
|
||||
Before you report a bug, please first make sure the bug has not been reported
|
||||
yet in the bug tracking system at http://sourceforge.net/tracker/?atid=581406&group_id=86937&func=browse
|
||||
Also look into the kaffeine-user archive: http://sourceforge.net/mailarchive/forum.php?forum_id=34875
|
||||
|
||||
Please use only the tracking system on sourceforge for reporting bugs and log in before
|
||||
submitting (if you've a sourceforge account).
|
||||
|
||||
|
||||
When you submit a bug, please include all of the following information:
|
||||
|
||||
- versions of Kaffeine, xine, KDE, X11
|
||||
- the backtrace from KDE's Crash Manager
|
||||
- console output
|
@ -0,0 +1,397 @@
|
||||
GNU Free Documentation License
|
||||
Version 1.2, November 2002
|
||||
|
||||
|
||||
Copyright (C) 2000,2001,2002 Free Software Foundation, Inc.
|
||||
51 Franklin St, 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.
|
||||
|
||||
|
||||
0. PREAMBLE
|
||||
|
||||
The purpose of this License is to make a manual, textbook, or other
|
||||
functional and useful document "free" in the sense of freedom: to
|
||||
assure everyone the effective freedom to copy and redistribute it,
|
||||
with or without modifying it, either commercially or noncommercially.
|
||||
Secondarily, this License preserves for the author and publisher a way
|
||||
to get credit for their work, while not being considered responsible
|
||||
for modifications made by others.
|
||||
|
||||
This License is a kind of "copyleft", which means that derivative
|
||||
works of the document must themselves be free in the same sense. It
|
||||
complements the GNU General Public License, which is a copyleft
|
||||
license designed for free software.
|
||||
|
||||
We have designed this License in order to use it for manuals for free
|
||||
software, because free software needs free documentation: a free
|
||||
program should come with manuals providing the same freedoms that the
|
||||
software does. But this License is not limited to software manuals;
|
||||
it can be used for any textual work, regardless of subject matter or
|
||||
whether it is published as a printed book. We recommend this License
|
||||
principally for works whose purpose is instruction or reference.
|
||||
|
||||
|
||||
1. APPLICABILITY AND DEFINITIONS
|
||||
|
||||
This License applies to any manual or other work, in any medium, that
|
||||
contains a notice placed by the copyright holder saying it can be
|
||||
distributed under the terms of this License. Such a notice grants a
|
||||
world-wide, royalty-free license, unlimited in duration, to use that
|
||||
work under the conditions stated herein. The "Document", below,
|
||||
refers to any such manual or work. Any member of the public is a
|
||||
licensee, and is addressed as "you". You accept the license if you
|
||||
copy, modify or distribute the work in a way requiring permission
|
||||
under copyright law.
|
||||
|
||||
A "Modified Version" of the Document means any work containing the
|
||||
Document or a portion of it, either copied verbatim, or with
|
||||
modifications and/or translated into another language.
|
||||
|
||||
A "Secondary Section" is a named appendix or a front-matter section of
|
||||
the Document that deals exclusively with the relationship of the
|
||||
publishers or authors of the Document to the Document's overall subject
|
||||
(or to related matters) and contains nothing that could fall directly
|
||||
within that overall subject. (Thus, if the Document is in part a
|
||||
textbook of mathematics, a Secondary Section may not explain any
|
||||
mathematics.) The relationship could be a matter of historical
|
||||
connection with the subject or with related matters, or of legal,
|
||||
commercial, philosophical, ethical or political position regarding
|
||||
them.
|
||||
|
||||
The "Invariant Sections" are certain Secondary Sections whose titles
|
||||
are designated, as being those of Invariant Sections, in the notice
|
||||
that says that the Document is released under this License. If a
|
||||
section does not fit the above definition of Secondary then it is not
|
||||
allowed to be designated as Invariant. The Document may contain zero
|
||||
Invariant Sections. If the Document does not identify any Invariant
|
||||
Sections then there are none.
|
||||
|
||||
The "Cover Texts" are certain short passages of text that are listed,
|
||||
as Front-Cover Texts or Back-Cover Texts, in the notice that says that
|
||||
the Document is released under this License. A Front-Cover Text may
|
||||
be at most 5 words, and a Back-Cover Text may be at most 25 words.
|
||||
|
||||
A "Transparent" copy of the Document means a machine-readable copy,
|
||||
represented in a format whose specification is available to the
|
||||
general public, that is suitable for revising the document
|
||||
straightforwardly with generic text editors or (for images composed of
|
||||
pixels) generic paint programs or (for drawings) some widely available
|
||||
drawing editor, and that is suitable for input to text formatters or
|
||||
for automatic translation to a variety of formats suitable for input
|
||||
to text formatters. A copy made in an otherwise Transparent file
|
||||
format whose markup, or absence of markup, has been arranged to thwart
|
||||
or discourage subsequent modification by readers is not Transparent.
|
||||
An image format is not Transparent if used for any substantial amount
|
||||
of text. A copy that is not "Transparent" is called "Opaque".
|
||||
|
||||
Examples of suitable formats for Transparent copies include plain
|
||||
ASCII without markup, Texinfo input format, LaTeX input format, SGML
|
||||
or XML using a publicly available DTD, and standard-conforming simple
|
||||
HTML, PostScript or PDF designed for human modification. Examples of
|
||||
transparent image formats include PNG, XCF and JPG. Opaque formats
|
||||
include proprietary formats that can be read and edited only by
|
||||
proprietary word processors, SGML or XML for which the DTD and/or
|
||||
processing tools are not generally available, and the
|
||||
machine-generated HTML, PostScript or PDF produced by some word
|
||||
processors for output purposes only.
|
||||
|
||||
The "Title Page" means, for a printed book, the title page itself,
|
||||
plus such following pages as are needed to hold, legibly, the material
|
||||
this License requires to appear in the title page. For works in
|
||||
formats which do not have any title page as such, "Title Page" means
|
||||
the text near the most prominent appearance of the work's title,
|
||||
preceding the beginning of the body of the text.
|
||||
|
||||
A section "Entitled XYZ" means a named subunit of the Document whose
|
||||
title either is precisely XYZ or contains XYZ in parentheses following
|
||||
text that translates XYZ in another language. (Here XYZ stands for a
|
||||
specific section name mentioned below, such as "Acknowledgements",
|
||||
"Dedications", "Endorsements", or "History".) To "Preserve the Title"
|
||||
of such a section when you modify the Document means that it remains a
|
||||
section "Entitled XYZ" according to this definition.
|
||||
|
||||
The Document may include Warranty Disclaimers next to the notice which
|
||||
states that this License applies to the Document. These Warranty
|
||||
Disclaimers are considered to be included by reference in this
|
||||
License, but only as regards disclaiming warranties: any other
|
||||
implication that these Warranty Disclaimers may have is void and has
|
||||
no effect on the meaning of this License.
|
||||
|
||||
|
||||
2. VERBATIM COPYING
|
||||
|
||||
You may copy and distribute the Document in any medium, either
|
||||
commercially or noncommercially, provided that this License, the
|
||||
copyright notices, and the license notice saying this License applies
|
||||
to the Document are reproduced in all copies, and that you add no other
|
||||
conditions whatsoever to those of this License. You may not use
|
||||
technical measures to obstruct or control the reading or further
|
||||
copying of the copies you make or distribute. However, you may accept
|
||||
compensation in exchange for copies. If you distribute a large enough
|
||||
number of copies you must also follow the conditions in section 3.
|
||||
|
||||
You may also lend copies, under the same conditions stated above, and
|
||||
you may publicly display copies.
|
||||
|
||||
|
||||
3. COPYING IN QUANTITY
|
||||
|
||||
If you publish printed copies (or copies in media that commonly have
|
||||
printed covers) of the Document, numbering more than 100, and the
|
||||
Document's license notice requires Cover Texts, you must enclose the
|
||||
copies in covers that carry, clearly and legibly, all these Cover
|
||||
Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on
|
||||
the back cover. Both covers must also clearly and legibly identify
|
||||
you as the publisher of these copies. The front cover must present
|
||||
the full title with all words of the title equally prominent and
|
||||
visible. You may add other material on the covers in addition.
|
||||
Copying with changes limited to the covers, as long as they preserve
|
||||
the title of the Document and satisfy these conditions, can be treated
|
||||
as verbatim copying in other respects.
|
||||
|
||||
If the required texts for either cover are too voluminous to fit
|
||||
legibly, you should put the first ones listed (as many as fit
|
||||
reasonably) on the actual cover, and continue the rest onto adjacent
|
||||
pages.
|
||||
|
||||
If you publish or distribute Opaque copies of the Document numbering
|
||||
more than 100, you must either include a machine-readable Transparent
|
||||
copy along with each Opaque copy, or state in or with each Opaque copy
|
||||
a computer-network location from which the general network-using
|
||||
public has access to download using public-standard network protocols
|
||||
a complete Transparent copy of the Document, free of added material.
|
||||
If you use the latter option, you must take reasonably prudent steps,
|
||||
when you begin distribution of Opaque copies in quantity, to ensure
|
||||
that this Transparent copy will remain thus accessible at the stated
|
||||
location until at least one year after the last time you distribute an
|
||||
Opaque copy (directly or through your agents or retailers) of that
|
||||
edition to the public.
|
||||
|
||||
It is requested, but not required, that you contact the authors of the
|
||||
Document well before redistributing any large number of copies, to give
|
||||
them a chance to provide you with an updated version of the Document.
|
||||
|
||||
|
||||
4. MODIFICATIONS
|
||||
|
||||
You may copy and distribute a Modified Version of the Document under
|
||||
the conditions of sections 2 and 3 above, provided that you release
|
||||
the Modified Version under precisely this License, with the Modified
|
||||
Version filling the role of the Document, thus licensing distribution
|
||||
and modification of the Modified Version to whoever possesses a copy
|
||||
of it. In addition, you must do these things in the Modified Version:
|
||||
|
||||
A. Use in the Title Page (and on the covers, if any) a title distinct
|
||||
from that of the Document, and from those of previous versions
|
||||
(which should, if there were any, be listed in the History section
|
||||
of the Document). You may use the same title as a previous version
|
||||
if the original publisher of that version gives permission.
|
||||
B. List on the Title Page, as authors, one or more persons or entities
|
||||
responsible for authorship of the modifications in the Modified
|
||||
Version, together with at least five of the principal authors of the
|
||||
Document (all of its principal authors, if it has fewer than five),
|
||||
unless they release you from this requirement.
|
||||
C. State on the Title page the name of the publisher of the
|
||||
Modified Version, as the publisher.
|
||||
D. Preserve all the copyright notices of the Document.
|
||||
E. Add an appropriate copyright notice for your modifications
|
||||
adjacent to the other copyright notices.
|
||||
F. Include, immediately after the copyright notices, a license notice
|
||||
giving the public permission to use the Modified Version under the
|
||||
terms of this License, in the form shown in the Addendum below.
|
||||
G. Preserve in that license notice the full lists of Invariant Sections
|
||||
and required Cover Texts given in the Document's license notice.
|
||||
H. Include an unaltered copy of this License.
|
||||
I. Preserve the section Entitled "History", Preserve its Title, and add
|
||||
to it an item stating at least the title, year, new authors, and
|
||||
publisher of the Modified Version as given on the Title Page. If
|
||||
there is no section Entitled "History" in the Document, create one
|
||||
stating the title, year, authors, and publisher of the Document as
|
||||
given on its Title Page, then add an item describing the Modified
|
||||
Version as stated in the previous sentence.
|
||||
J. Preserve the network location, if any, given in the Document for
|
||||
public access to a Transparent copy of the Document, and likewise
|
||||
the network locations given in the Document for previous versions
|
||||
it was based on. These may be placed in the "History" section.
|
||||
You may omit a network location for a work that was published at
|
||||
least four years before the Document itself, or if the original
|
||||
publisher of the version it refers to gives permission.
|
||||
K. For any section Entitled "Acknowledgements" or "Dedications",
|
||||
Preserve the Title of the section, and preserve in the section all
|
||||
the substance and tone of each of the contributor acknowledgements
|
||||
and/or dedications given therein.
|
||||
L. Preserve all the Invariant Sections of the Document,
|
||||
unaltered in their text and in their titles. Section numbers
|
||||
or the equivalent are not considered part of the section titles.
|
||||
M. Delete any section Entitled "Endorsements". Such a section
|
||||
may not be included in the Modified Version.
|
||||
N. Do not retitle any existing section to be Entitled "Endorsements"
|
||||
or to conflict in title with any Invariant Section.
|
||||
O. Preserve any Warranty Disclaimers.
|
||||
|
||||
If the Modified Version includes new front-matter sections or
|
||||
appendices that qualify as Secondary Sections and contain no material
|
||||
copied from the Document, you may at your option designate some or all
|
||||
of these sections as invariant. To do this, add their titles to the
|
||||
list of Invariant Sections in the Modified Version's license notice.
|
||||
These titles must be distinct from any other section titles.
|
||||
|
||||
You may add a section Entitled "Endorsements", provided it contains
|
||||
nothing but endorsements of your Modified Version by various
|
||||
parties--for example, statements of peer review or that the text has
|
||||
been approved by an organization as the authoritative definition of a
|
||||
standard.
|
||||
|
||||
You may add a passage of up to five words as a Front-Cover Text, and a
|
||||
passage of up to 25 words as a Back-Cover Text, to the end of the list
|
||||
of Cover Texts in the Modified Version. Only one passage of
|
||||
Front-Cover Text and one of Back-Cover Text may be added by (or
|
||||
through arrangements made by) any one entity. If the Document already
|
||||
includes a cover text for the same cover, previously added by you or
|
||||
by arrangement made by the same entity you are acting on behalf of,
|
||||
you may not add another; but you may replace the old one, on explicit
|
||||
permission from the previous publisher that added the old one.
|
||||
|
||||
The author(s) and publisher(s) of the Document do not by this License
|
||||
give permission to use their names for publicity for or to assert or
|
||||
imply endorsement of any Modified Version.
|
||||
|
||||
|
||||
5. COMBINING DOCUMENTS
|
||||
|
||||
You may combine the Document with other documents released under this
|
||||
License, under the terms defined in section 4 above for modified
|
||||
versions, provided that you include in the combination all of the
|
||||
Invariant Sections of all of the original documents, unmodified, and
|
||||
list them all as Invariant Sections of your combined work in its
|
||||
license notice, and that you preserve all their Warranty Disclaimers.
|
||||
|
||||
The combined work need only contain one copy of this License, and
|
||||
multiple identical Invariant Sections may be replaced with a single
|
||||
copy. If there are multiple Invariant Sections with the same name but
|
||||
different contents, make the title of each such section unique by
|
||||
adding at the end of it, in parentheses, the name of the original
|
||||
author or publisher of that section if known, or else a unique number.
|
||||
Make the same adjustment to the section titles in the list of
|
||||
Invariant Sections in the license notice of the combined work.
|
||||
|
||||
In the combination, you must combine any sections Entitled "History"
|
||||
in the various original documents, forming one section Entitled
|
||||
"History"; likewise combine any sections Entitled "Acknowledgements",
|
||||
and any sections Entitled "Dedications". You must delete all sections
|
||||
Entitled "Endorsements".
|
||||
|
||||
|
||||
6. COLLECTIONS OF DOCUMENTS
|
||||
|
||||
You may make a collection consisting of the Document and other documents
|
||||
released under this License, and replace the individual copies of this
|
||||
License in the various documents with a single copy that is included in
|
||||
the collection, provided that you follow the rules of this License for
|
||||
verbatim copying of each of the documents in all other respects.
|
||||
|
||||
You may extract a single document from such a collection, and distribute
|
||||
it individually under this License, provided you insert a copy of this
|
||||
License into the extracted document, and follow this License in all
|
||||
other respects regarding verbatim copying of that document.
|
||||
|
||||
|
||||
7. AGGREGATION WITH INDEPENDENT WORKS
|
||||
|
||||
A compilation of the Document or its derivatives with other separate
|
||||
and independent documents or works, in or on a volume of a storage or
|
||||
distribution medium, is called an "aggregate" if the copyright
|
||||
resulting from the compilation is not used to limit the legal rights
|
||||
of the compilation's users beyond what the individual works permit.
|
||||
When the Document is included in an aggregate, this License does not
|
||||
apply to the other works in the aggregate which are not themselves
|
||||
derivative works of the Document.
|
||||
|
||||
If the Cover Text requirement of section 3 is applicable to these
|
||||
copies of the Document, then if the Document is less than one half of
|
||||
the entire aggregate, the Document's Cover Texts may be placed on
|
||||
covers that bracket the Document within the aggregate, or the
|
||||
electronic equivalent of covers if the Document is in electronic form.
|
||||
Otherwise they must appear on printed covers that bracket the whole
|
||||
aggregate.
|
||||
|
||||
|
||||
8. TRANSLATION
|
||||
|
||||
Translation is considered a kind of modification, so you may
|
||||
distribute translations of the Document under the terms of section 4.
|
||||
Replacing Invariant Sections with translations requires special
|
||||
permission from their copyright holders, but you may include
|
||||
translations of some or all Invariant Sections in addition to the
|
||||
original versions of these Invariant Sections. You may include a
|
||||
translation of this License, and all the license notices in the
|
||||
Document, and any Warranty Disclaimers, provided that you also include
|
||||
the original English version of this License and the original versions
|
||||
of those notices and disclaimers. In case of a disagreement between
|
||||
the translation and the original version of this License or a notice
|
||||
or disclaimer, the original version will prevail.
|
||||
|
||||
If a section in the Document is Entitled "Acknowledgements",
|
||||
"Dedications", or "History", the requirement (section 4) to Preserve
|
||||
its Title (section 1) will typically require changing the actual
|
||||
title.
|
||||
|
||||
|
||||
9. TERMINATION
|
||||
|
||||
You may not copy, modify, sublicense, or distribute the Document except
|
||||
as expressly provided for under this License. Any other attempt to
|
||||
copy, modify, sublicense or distribute the Document 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.
|
||||
|
||||
|
||||
10. FUTURE REVISIONS OF THIS LICENSE
|
||||
|
||||
The Free Software Foundation may publish new, revised versions
|
||||
of the GNU Free Documentation 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. See
|
||||
http://www.gnu.org/copyleft/.
|
||||
|
||||
Each version of the License is given a distinguishing version number.
|
||||
If the Document specifies that a particular numbered version of this
|
||||
License "or any later version" applies to it, you have the option of
|
||||
following the terms and conditions either of that specified version or
|
||||
of any later version that has been published (not as a draft) by the
|
||||
Free Software Foundation. If the Document does not specify a version
|
||||
number of this License, you may choose any version ever published (not
|
||||
as a draft) by the Free Software Foundation.
|
||||
|
||||
|
||||
ADDENDUM: How to use this License for your documents
|
||||
|
||||
To use this License in a document you have written, include a copy of
|
||||
the License in the document and put the following copyright and
|
||||
license notices just after the title page:
|
||||
|
||||
Copyright (c) YEAR YOUR NAME.
|
||||
Permission is granted to copy, distribute and/or modify this document
|
||||
under the terms of the GNU Free Documentation License, Version 1.2
|
||||
or any later version published by the Free Software Foundation;
|
||||
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
|
||||
A copy of the license is included in the section entitled "GNU
|
||||
Free Documentation License".
|
||||
|
||||
If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts,
|
||||
replace the "with...Texts." line with this:
|
||||
|
||||
with the Invariant Sections being LIST THEIR TITLES, with the
|
||||
Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST.
|
||||
|
||||
If you have Invariant Sections without Cover Texts, or some other
|
||||
combination of the three, merge those two alternatives to suit the
|
||||
situation.
|
||||
|
||||
If your document contains nontrivial examples of program code, we
|
||||
recommend releasing these examples in parallel under your choice of
|
||||
free software license, such as the GNU General Public License,
|
||||
to permit their use in free software.
|
@ -0,0 +1,66 @@
|
||||
|
||||
***************************
|
||||
* KAFFEINE CONTRIBUTORS: *
|
||||
* (alphabetical) *
|
||||
***************************
|
||||
|
||||
Adrian Schroeter <adrian@suse.de>
|
||||
- fix for position changes in paused mode
|
||||
- help with xfree crash
|
||||
|
||||
Alex Young <a.d.y@btinternet.com>
|
||||
- fix for volume slider
|
||||
|
||||
Assaf Gillat <gillata@gmail.com>
|
||||
- alternate encoding for meta-tags; tons of patches
|
||||
|
||||
Bryan Allen <theoiper@yahoo.com>
|
||||
- quit options for end of playback
|
||||
|
||||
Carlo Miotto <cmiotto@interfree.it>
|
||||
- automatic resize
|
||||
|
||||
Christopher Martin <christopher.martin@utoronto.ca>
|
||||
- a lot of patches
|
||||
|
||||
Gav Wood <gav@kde.org>
|
||||
- lirc profile
|
||||
- dcop
|
||||
|
||||
Giorgos Gousios <gousiosg@cs.man.ac.uk>
|
||||
- subtitle file handling
|
||||
|
||||
Gustavo Pichorim Boiko <gustavo.boiko@kdemail.net>)
|
||||
- mouse wheel events for system tray icon
|
||||
|
||||
James Stembridge <jstembridge@fastmail.fm>
|
||||
- toolbar fix
|
||||
- cvsignore files
|
||||
|
||||
Jeroen Wijnhout <Jeroen.Wijnhout@kdemail.net>
|
||||
- shortcut configuration
|
||||
|
||||
Laurent Montel <montel@kde.org>
|
||||
- mem leak fixes
|
||||
- speed improvements
|
||||
|
||||
Michael Rolf <mi.rolf@gmx.net>
|
||||
- M3U import fix
|
||||
- tester
|
||||
|
||||
Miguel Freitas <miguel@cetuc.puc-rio.br>
|
||||
- made xine's unscaled osd working for Kaffeine
|
||||
- xine aclocal flags patch
|
||||
- position slider fix
|
||||
- improved post plugin handling
|
||||
|
||||
Steffen Schoenwiese <ss310636@inf.tu-dresden.de>
|
||||
- save volume
|
||||
- file dialogs remembers last directory
|
||||
|
||||
Zack Cerza <zcerza@coe.neu.edu>
|
||||
- english manpages
|
||||
- debian build
|
||||
|
||||
If you miss yourself here, send me a short mail: kaffeine@gmx.net
|
||||
|
@ -0,0 +1 @@
|
||||
SUBDIRS = src images mimetypes protocols servicemenus
|
@ -0,0 +1,7 @@
|
||||
Please have a look at README.dvb.
|
||||
|
||||
Additional notes:
|
||||
- Scanning isn't implemented yet.
|
||||
- Instead you can use the my small atsc channel converter tool at
|
||||
http://websvn.kde.org/branches/work/~pfister/
|
||||
(you need to have already a *zap channels file; look at http://linuxtv.org)
|
@ -0,0 +1,69 @@
|
||||
------------------------------------------------------
|
||||
!! HAVE A LOOK AT KAFFEINE HANDBOOK !!
|
||||
------------------------------------------------------
|
||||
|
||||
!!!!!!!!!! IMPORTANT !!!!!!!
|
||||
Live DVB only works with the xine backend (XinePart).
|
||||
Depending on your distro, this package could be called kaffeine-xine.
|
||||
Install it, start Kaffeine and change the backend in menu->settings->engine, then restart Kaffeine.
|
||||
Note that this is only needed for live playback. All other features (recording, broadcasting..) do not depend on the backend.
|
||||
Anyway, I strongly recommend the xine engine even if you don't have a DVB device. All others are incomplete and/or buggy.
|
||||
Also note that for licensing reasons, some distro (kubuntu, suse) comes with "restricted" media libraries (xine, gstreamer),
|
||||
so you won't be able to play some media files (in fact the most common ones:().
|
||||
You will have to install an "unrestricted" version in order to play all your media files.
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
|
||||
|
||||
This version of kaffeine includes support for DVB.
|
||||
|
||||
Requirements :
|
||||
A DVB device supported by linuxtv drivers.
|
||||
Look at www.linuxtv.org for how to get, install and run these drivers.
|
||||
Recent linux distributions should have full DVB support, so your device should be autodetected at boot time.
|
||||
|
||||
Install:
|
||||
You must have dvb headers to compile the dvb part.
|
||||
Configure search for linux/dvb/frontend.h in standard paths (typically /usr/include)
|
||||
./configure
|
||||
make
|
||||
make install (as root)
|
||||
YOU MUST INSTALL or it won't work.
|
||||
|
||||
Usage:
|
||||
Kaffeine uses dvbscan data files to find channels from you DVB network.
|
||||
They are expected to be in :
|
||||
~/.kde/share/apps/kaffeine/dvb-s
|
||||
~/.kde/share/apps/kaffeine/dvb-t
|
||||
~/.kde/share/apps/kaffeine/dvb-c
|
||||
|
||||
If these dirs are missing, Kaffeine tries to download a daily updated archive from
|
||||
http://hftom.free.fr/kaxtv/dvbdata.tar.gz, and extract it. If that fails, Kaffeine search for the installed archive in
|
||||
$KDEDIR/share/apps/kaffeine.
|
||||
|
||||
Kaffeine tries to open your dvb device at start time, so make sure no other app are using it.
|
||||
|
||||
First , go to menu->DVB->Configure DVB . There, you have to choose a source for your device and configure diseqc (for dvb-s)
|
||||
Kaffeine now support multiple dvb devices, repeat the configure step for each device.
|
||||
|
||||
Then go to the channels dialog ( either from the DVB menu or DVB tab ), select a source in the list and start scanning, then add
|
||||
the desired channels to your channels list; repeat for each source.
|
||||
Channels are assigned a number when they are added to the channels list.. You can later change it by editing the channel.
|
||||
|
||||
To zap to a channel, either double click on the channel name from the DVB tab (after tuning, Kaffeine autoswitch to player tab)
|
||||
or enter its number with keypad. You can also use pageup/down to zap to previous/next.
|
||||
|
||||
Remote control:
|
||||
kdelirc dcop functions:
|
||||
setNumber( int num )
|
||||
next()
|
||||
previous()
|
||||
dvbOSD()
|
||||
...
|
||||
|
||||
Channels categories:
|
||||
Right click in the icon view to get a popupmenu and choose "New category".
|
||||
Now, drag a channel name and drop it on the desired category' icon.
|
||||
To remove a channel from a category, drop it on the "All" icon.
|
||||
To delete a category, right click on its icon to get a popmenu.
|
||||
|
||||
You can also change the channel number. Select the channel, then click on the number to edit.
|
@ -0,0 +1,17 @@
|
||||
|
||||
************************************
|
||||
* README for gstreamer player-part *
|
||||
************************************
|
||||
|
||||
REQUIREMENTS:
|
||||
- GStreamer >= 0.8.4 (http://gstreamer.freedesktop.org)
|
||||
|
||||
HINTS:
|
||||
- Tested with GStreamer 0.8.10. The part will not work with the GStreamer 0.9.x series!!!
|
||||
- For internet/network streams the gnomevfs plugin is required.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,54 @@
|
||||
echo ""
|
||||
echo "-------------------------------------------------------"
|
||||
echo "Kaffeine configure results:"
|
||||
echo ""
|
||||
|
||||
if test "$with_xcb" = "yes" ; then
|
||||
echo "Build with xcb support: yes"
|
||||
else
|
||||
echo "Build with xcb support: no"
|
||||
echo "IMPORTANT: this is strongly discouraged"
|
||||
fi
|
||||
|
||||
if test "$with_dpms" = "yes" ; then
|
||||
echo "Build with DPMS support: yes"
|
||||
else
|
||||
echo "Build with DPMS support: no"
|
||||
fi
|
||||
|
||||
if test "$with_xtest" = "yes" ; then
|
||||
echo "Build with XTest support: yes"
|
||||
else
|
||||
echo "Build with XTest support: no"
|
||||
fi
|
||||
|
||||
if test "$with_xinerama" = "yes" ; then
|
||||
echo "Build with Xinerama support: yes"
|
||||
else
|
||||
echo "Build with Xinerama support: no"
|
||||
fi
|
||||
|
||||
if test "$with_dvb" = "yes" ; then
|
||||
echo "Build with DVB support: yes"
|
||||
else
|
||||
echo "Build with DVB support: no"
|
||||
fi
|
||||
|
||||
if test "$with_gstreamer" = "yes" ; then
|
||||
echo "Build GStreamer player part: yes"
|
||||
echo "IMPORTANT: the GStreamer player part is experimental"
|
||||
else
|
||||
echo "Build GStreamer player-part: no"
|
||||
fi
|
||||
|
||||
if test "$with_oggvorbis" = "yes" ; then
|
||||
echo "Build Ogg Vorbis encoder plugin: yes"
|
||||
else
|
||||
echo "Build Ogg Vorbis encoder plugin: no"
|
||||
fi
|
||||
|
||||
if test "$with_lame" = "yes" ; then
|
||||
echo "Build LAME encoder plugin: yes"
|
||||
else
|
||||
echo "Build LAME encoder plugin: no"
|
||||
fi
|
@ -0,0 +1,283 @@
|
||||
dnl -----------
|
||||
dnl basic stuff
|
||||
dnl -----------
|
||||
|
||||
KDE_ENABLE_HIDDEN_VISIBILITY
|
||||
|
||||
AC_ARG_VAR([PKG_CONFIG], [Path to pkg-config])
|
||||
|
||||
if test -z "$PKG_CONFIG" ; then
|
||||
PKG_CONFIG="pkg-config"
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING([for pkg-config])
|
||||
|
||||
if ! "$PKG_CONFIG" --version ; then
|
||||
echo ""
|
||||
echo "---------------------------------------------------------------------"
|
||||
echo "ERROR: Could not find pkg-config. Make sure it is in your path or set"
|
||||
echo "the PKG_CONFIG environment variable to the full path to pkg-config."
|
||||
echo "---------------------------------------------------------------------"
|
||||
echo ""
|
||||
AC_MSG_ERROR([could not find pkg-config])
|
||||
fi
|
||||
|
||||
AC_ARG_WITH([xinit-workaround],
|
||||
[AS_HELP_STRING([--with-xinit-workaround],
|
||||
[use this flag if Kaffeine hangs at startup and you are using XFree86 4.4 or X.Org 6.7.0])],,
|
||||
[with_xinit_workaround=no])
|
||||
|
||||
if test "$with_xinit_workaround" = "yes" ; then
|
||||
AC_DEFINE([XINIT_WKRND],,[workaround buggy X server])
|
||||
fi
|
||||
|
||||
dnl ------------------------
|
||||
dnl check for DPMS extension
|
||||
dnl ------------------------
|
||||
|
||||
AC_ARG_WITH([dpms], [AS_HELP_STRING([--without-dpms], [build without DPMS support])],,
|
||||
[with_dpms=yes])
|
||||
|
||||
CFLAGS_DPMS=""
|
||||
LIB_DPMS=""
|
||||
|
||||
if test "$with_dpms" != "no" ; then
|
||||
AC_MSG_CHECKING([for DPMS extension])
|
||||
|
||||
if "$PKG_CONFIG" --exists xext ; then
|
||||
with_dpms=yes
|
||||
CFLAGS_DPMS=`"$PKG_CONFIG" --cflags xext`
|
||||
LIB_DPMS=`"$PKG_CONFIG" --libs xext`
|
||||
AC_DEFINE([HAVE_DPMS],,[DPMS extension available])
|
||||
AC_MSG_RESULT([yes])
|
||||
else
|
||||
with_dpms=no
|
||||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_SUBST([CFLAGS_DPMS])
|
||||
AC_SUBST([LIB_DPMS])
|
||||
|
||||
dnl -------------------------
|
||||
dnl check for XTest extension
|
||||
dnl -------------------------
|
||||
|
||||
AC_ARG_WITH([xtest], [AS_HELP_STRING([--without-xtest], [build without XTest support])],,
|
||||
[with_xtest=yes])
|
||||
|
||||
CFLAGS_XTEST=""
|
||||
LIB_XTEST=""
|
||||
|
||||
if test "$with_xtest" != "no" ; then
|
||||
AC_MSG_CHECKING([for XTest extension])
|
||||
|
||||
if "$PKG_CONFIG" --exists xtst ; then
|
||||
with_xtest=yes
|
||||
CFLAGS_XTEST=`"$PKG_CONFIG" --cflags xtst`
|
||||
LIB_XTEST=`"$PKG_CONFIG" --libs xtst`
|
||||
AC_DEFINE([HAVE_XTEST],,[XTest extension available])
|
||||
AC_MSG_RESULT([yes])
|
||||
else
|
||||
with_xtest=no
|
||||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_SUBST([CFLAGS_XTEST])
|
||||
AC_SUBST([LIB_XTEST])
|
||||
|
||||
dnl ----------------------------
|
||||
dnl check for Xinerama extension
|
||||
dnl ----------------------------
|
||||
|
||||
AC_ARG_WITH([xinerama], [AS_HELP_STRING([--without-xinerama], [build without Xinerama support])],,
|
||||
[with_xinerama=yes])
|
||||
|
||||
CFLAGS_XINERAMA=""
|
||||
LIB_XINERAMA=""
|
||||
|
||||
if test "$with_xinerama" != "no" ; then
|
||||
AC_MSG_CHECKING([for Xinerama extension])
|
||||
|
||||
if "$PKG_CONFIG" --exists xinerama ; then
|
||||
with_xinerama=yes
|
||||
CFLAGS_XINERAMA=`"$PKG_CONFIG" --cflags xinerama`
|
||||
LIB_XINERAMA=`"$PKG_CONFIG" --libs xinerama`
|
||||
AC_DEFINE([HAVE_XINERAMA],,[Xinerama extension available])
|
||||
AC_MSG_RESULT([yes])
|
||||
else
|
||||
with_xinerama=no
|
||||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_SUBST([CFLAGS_XINERAMA])
|
||||
AC_SUBST([LIB_XINERAMA])
|
||||
|
||||
dnl ------------------
|
||||
dnl check for xine-lib
|
||||
dnl ------------------
|
||||
|
||||
AC_MSG_CHECKING([for xine-lib])
|
||||
|
||||
CFLAGS_XINE=""
|
||||
LIB_XINE=""
|
||||
|
||||
if "$PKG_CONFIG" --exists "libxine >= 1.1.9" ; then
|
||||
CFLAGS_XINE=`"$PKG_CONFIG" --cflags libxine`
|
||||
LIB_XINE=`"$PKG_CONFIG" --libs libxine`
|
||||
AC_MSG_RESULT([yes])
|
||||
else
|
||||
AC_MSG_RESULT([no])
|
||||
|
||||
echo ""
|
||||
echo "---------------------------------------"
|
||||
echo "ERROR: Could not find xine-lib >= 1.1.9"
|
||||
echo "---------------------------------------"
|
||||
echo ""
|
||||
|
||||
AC_MSG_ERROR([could not find xine-lib])
|
||||
fi
|
||||
|
||||
AC_SUBST([CFLAGS_XINE])
|
||||
AC_SUBST([LIB_XINE])
|
||||
|
||||
dnl -------------
|
||||
dnl check for xcb
|
||||
dnl -------------
|
||||
|
||||
AC_ARG_WITH([xcb], [AS_HELP_STRING([--without-xcb], [disable xcb support (not recommended)])],,
|
||||
[with_xcb=yes])
|
||||
|
||||
AC_MSG_CHECKING([for xcb and xine-lib >= 1.1.9])
|
||||
|
||||
CFLAGS_XCB=""
|
||||
LIB_XCB=""
|
||||
|
||||
if test "$with_xcb" != "no" ; then
|
||||
if "$PKG_CONFIG" --exists "xcb >= 1.0" ; then
|
||||
with_xcb=yes
|
||||
CFLAGS_XCB=`"$PKG_CONFIG" --cflags xcb`
|
||||
LIB_XCB=`"$PKG_CONFIG" --libs xcb`
|
||||
AC_DEFINE([HAVE_XCB],,[xcb available])
|
||||
AC_MSG_RESULT([yes])
|
||||
else
|
||||
with_xcb=no
|
||||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_SUBST([CFLAGS_XCB])
|
||||
AC_SUBST([LIB_XCB])
|
||||
|
||||
AM_CONDITIONAL([with_xcb], [test "$with_xcb" = "yes"])
|
||||
|
||||
dnl ---------------------
|
||||
dnl check for DVB headers
|
||||
dnl ---------------------
|
||||
|
||||
AC_ARG_WITH([dvb], [AS_HELP_STRING([--without-dvb], [build without DVB support])],,
|
||||
[with_dvb=yes])
|
||||
|
||||
if test "$with_dvb" != "no" ; then
|
||||
KDE_CHECK_HEADER([linux/dvb/frontend.h], [with_dvb=yes]
|
||||
[AC_DEFINE([HAVE_DVB],,[DVB headers installed])], [with_dvb=no])
|
||||
fi
|
||||
|
||||
AM_CONDITIONAL([with_dvb], [test "$with_dvb" = "yes"])
|
||||
|
||||
dnl -------------------
|
||||
dnl check for gstreamer
|
||||
dnl -------------------
|
||||
|
||||
AC_ARG_WITH([gstreamer], [AS_HELP_STRING([--without-gstreamer], [disable GStreamer player part])],,
|
||||
[with_gstreamer=yes])
|
||||
|
||||
CFLAGS_GSTREAMER=""
|
||||
LIB_GSTREAMER=""
|
||||
|
||||
if test "$with_gstreamer" != "no" ; then
|
||||
AC_MSG_CHECKING([for GStreamer])
|
||||
|
||||
if "$PKG_CONFIG" --exists "gstreamer-0.10 gstreamer-plugins-base-0.10"; then
|
||||
with_gstreamer=yes
|
||||
CFLAGS_GSTREAMER=`"$PKG_CONFIG" --cflags gstreamer-0.10 gstreamer-plugins-base-0.10`
|
||||
LIB_GSTREAMER=`"$PKG_CONFIG" --libs gstreamer-0.10 gstreamer-plugins-base-0.10`
|
||||
AC_MSG_RESULT([yes])
|
||||
else
|
||||
with_gstreamer=no
|
||||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_SUBST([CFLAGS_GSTREAMER])
|
||||
AC_SUBST([LIB_GSTREAMER])
|
||||
|
||||
AM_CONDITIONAL([with_gstreamer], [test "$with_gstreamer" = "yes"])
|
||||
|
||||
dnl --------------------
|
||||
dnl check for cdparanoia
|
||||
dnl --------------------
|
||||
|
||||
KDE_CHECK_HEADER([cdda_interface.h], [with_cdparanoia=yes], [with_cdparanoia=no])
|
||||
|
||||
if test "$with_cdparanoia" != "yes" ; then
|
||||
echo ""
|
||||
echo "-----------------------------------------"
|
||||
echo "ERROR: Could not find cdparanoia headers."
|
||||
echo "-----------------------------------------"
|
||||
echo ""
|
||||
|
||||
AC_MSG_ERROR([could not find cdparanoia headers])
|
||||
fi
|
||||
|
||||
dnl ----------------------------
|
||||
dnl check for Ogg Vorbis encoder
|
||||
dnl ----------------------------
|
||||
|
||||
AC_ARG_WITH([oggvorbis], [AS_HELP_STRING([--without-oggvorbis], [build without Ogg Vorbis support])],,
|
||||
[with_oggvorbis=yes])
|
||||
|
||||
CFLAGS_OGGVORBIS=""
|
||||
LIB_OGGVORBIS=""
|
||||
|
||||
if test "$with_oggvorbis" != "no" ; then
|
||||
AC_MSG_CHECKING([for Ogg/Vorbis encoder])
|
||||
|
||||
if "$PKG_CONFIG" --exists vorbisenc ; then
|
||||
with_oggvorbis=yes
|
||||
CFLAGS_OGGVORBIS=`"$PKG_CONFIG" --cflags vorbisenc`
|
||||
LIB_OGGVORBIS=`"$PKG_CONFIG" --libs vorbisenc`
|
||||
AC_MSG_RESULT([yes])
|
||||
else
|
||||
with_oggvorbis=no
|
||||
AC_MSG_RESULT([no])
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_SUBST([CFLAGS_OGGVORBIS])
|
||||
AC_SUBST([LIB_OGGVORBIS])
|
||||
|
||||
AM_CONDITIONAL([with_oggvorbis], [test "$with_oggvorbis" = "yes"])
|
||||
|
||||
dnl --------------
|
||||
dnl check for LAME
|
||||
dnl --------------
|
||||
|
||||
AC_ARG_WITH([lame], [AS_HELP_STRING([--without-lame], [build without LAME support])],,
|
||||
[with_lame=yes])
|
||||
|
||||
LIB_LAME=""
|
||||
|
||||
if test "$with_lame" != "no" ; then
|
||||
KDE_CHECK_HEADER([lame/lame.h], [with_lame=yes], [with_lame=no])
|
||||
fi
|
||||
|
||||
if test "$with_lame" = "yes" ; then
|
||||
KDE_CHECK_LIB([mp3lame], [lame_init], [LIB_LAME="-lmp3lame"], [with_lame=no], [-lm])
|
||||
fi
|
||||
|
||||
AC_SUBST([LIB_LAME])
|
||||
|
||||
AM_CONDITIONAL([with_lame], [test "$with_lame" = "yes"])
|
@ -0,0 +1,54 @@
|
||||
Index: src/player-parts/xine-part/xine_part.h
|
||||
===================================================================
|
||||
--- src/player-parts/xine-part/xine_part.h (revision 746328)
|
||||
+++ src/player-parts/xine-part/xine_part.h (working copy)
|
||||
@@ -108,6 +108,8 @@
|
||||
QString screenShot();
|
||||
void nextAudioChannel();
|
||||
void nextSubtitleChannel();
|
||||
+ void speedFaster();
|
||||
+ void speedSlower();
|
||||
|
||||
public slots:
|
||||
/*
|
||||
Index: src/player-parts/xine-part/xine_part_iface.h
|
||||
===================================================================
|
||||
--- src/player-parts/xine-part/xine_part_iface.h (revision 746328)
|
||||
+++ src/player-parts/xine-part/xine_part_iface.h (working copy)
|
||||
@@ -128,6 +128,8 @@
|
||||
|
||||
virtual void nextAudioChannel() = 0;
|
||||
virtual void nextSubtitleChannel() = 0;
|
||||
+ virtual void speedFaster() = 0;
|
||||
+ virtual void speedSlower() = 0;
|
||||
};
|
||||
|
||||
#endif /* XINE_PART_IFACE_H */
|
||||
Index: src/player-parts/xine-part/xine_part.cpp
|
||||
===================================================================
|
||||
--- src/player-parts/xine-part/xine_part.cpp (revision 746328)
|
||||
+++ src/player-parts/xine-part/xine_part.cpp (working copy)
|
||||
@@ -449,6 +449,11 @@
|
||||
}
|
||||
}
|
||||
|
||||
+void XinePart::speedFaster()
|
||||
+{
|
||||
+ slotFastForward();
|
||||
+}
|
||||
+
|
||||
void XinePart::slotFastForward()
|
||||
{
|
||||
if (m_xine->getSpeed() == KXineWidget::Pause)
|
||||
@@ -459,6 +464,11 @@
|
||||
m_xine->slotSpeedFaster();
|
||||
}
|
||||
|
||||
+void XinePart::speedSlower()
|
||||
+{
|
||||
+ slotSlowMotion();
|
||||
+}
|
||||
+
|
||||
void XinePart::slotSlowMotion()
|
||||
{
|
||||
if (m_xine->getSpeed() == KXineWidget::Pause)
|
@ -0,0 +1,10 @@
|
||||
|
||||
***************************
|
||||
* ARTWORK COPYRIGHT HINTS *
|
||||
***************************
|
||||
|
||||
- new Kaffeine logo animation (logo): (c) Dieter Zander, License: LGPL
|
||||
|
||||
- all "coffee bean icons": (c) 2003-2004 by Jürgen Kofler, Licence: LGPL
|
||||
|
||||
- record icons: take from Nuvola-Icon Set, (c) by David Vignoni, Licence: LGPL
|
@ -0,0 +1,83 @@
|
||||
EXTRA_DIST = kaffeine16x16.png kaffeine22x22.png kaffeine32x32.png \
|
||||
kaffeine48x48.png kaffeine64x64.png logo.mpg logo.avi kaffeine128x128.png \
|
||||
kaffeine-play.png kaffeine-pause.png kaffeine-record.png player_record16x16.png \
|
||||
player_record22x22.png player_record16x16.png mime_kaffeine32x32.png \
|
||||
mime_kaffeine32x32.png mime_kaffeine48x48.png player_mute16x16.png \
|
||||
player_mute22x22.png player_mute32x32.png kdvbtv.png kdvbtvc.png \
|
||||
kdvbra.png kdvbrac.png dvbdata.tar.gz nocover.png kilogram16x16.png kilogram22x22.png kilogram32x32.png
|
||||
|
||||
install-data-local:
|
||||
$(mkinstalldirs) $(DESTDIR)$(kde_icondir)/hicolor/16x16/apps/
|
||||
$(INSTALL_DATA) $(srcdir)/kaffeine16x16.png $(DESTDIR)$(kde_icondir)/hicolor/16x16/apps/kaffeine.png
|
||||
$(INSTALL_DATA) $(srcdir)/kdvbtv.png $(DESTDIR)$(kde_icondir)/hicolor/16x16/apps/kdvbtv.png
|
||||
$(INSTALL_DATA) $(srcdir)/kdvbtvc.png $(DESTDIR)$(kde_icondir)/hicolor/16x16/apps/kdvbtvc.png
|
||||
$(INSTALL_DATA) $(srcdir)/kdvbra.png $(DESTDIR)$(kde_icondir)/hicolor/16x16/apps/kdvbra.png
|
||||
$(INSTALL_DATA) $(srcdir)/kdvbrac.png $(DESTDIR)$(kde_icondir)/hicolor/16x16/apps/kdvbrac.png
|
||||
$(INSTALL_DATA) $(srcdir)/kilogram16x16.png $(DESTDIR)$(kde_icondir)/hicolor/16x16/apps/kilogram.png
|
||||
$(mkinstalldirs) $(DESTDIR)$(kde_icondir)/hicolor/16x16/mimetypes/
|
||||
$(INSTALL_DATA) $(srcdir)/mime_kaffeine16x16.png $(DESTDIR)$(kde_icondir)/hicolor/16x16/mimetypes/mime_kaffeine.png
|
||||
$(mkinstalldirs) $(DESTDIR)$(kde_icondir)/hicolor/16x16/actions/
|
||||
$(INSTALL_DATA) $(srcdir)/player_record16x16.png $(DESTDIR)$(kde_icondir)/hicolor/16x16/actions/player_record.png
|
||||
$(INSTALL_DATA) $(srcdir)/player_mute16x16.png $(DESTDIR)$(kde_icondir)/hicolor/16x16/actions/player_mute.png
|
||||
$(mkinstalldirs) $(DESTDIR)$(kde_icondir)/hicolor/22x22/apps/
|
||||
$(INSTALL_DATA) $(srcdir)/kaffeine22x22.png $(DESTDIR)$(kde_icondir)/hicolor/22x22/apps/kaffeine.png
|
||||
$(mkinstalldirs) $(DESTDIR)$(kde_icondir)/hicolor/22x22/actions/
|
||||
$(INSTALL_DATA) $(srcdir)/player_record22x22.png $(DESTDIR)$(kde_icondir)/hicolor/22x22/actions/player_record.png
|
||||
$(INSTALL_DATA) $(srcdir)/player_mute22x22.png $(DESTDIR)$(kde_icondir)/hicolor/22x22/actions/player_mute.png
|
||||
$(INSTALL_DATA) $(srcdir)/kilogram22x22.png $(DESTDIR)$(kde_icondir)/hicolor/22x22/apps/kilogram.png
|
||||
$(mkinstalldirs) $(DESTDIR)$(kde_icondir)/hicolor/32x32/apps/
|
||||
$(INSTALL_DATA) $(srcdir)/kaffeine-play.png $(DESTDIR)$(kde_icondir)/hicolor/32x32/apps/kaffeine-play.png
|
||||
$(INSTALL_DATA) $(srcdir)/kaffeine-pause.png $(DESTDIR)$(kde_icondir)/hicolor/32x32/apps/kaffeine-pause.png
|
||||
$(INSTALL_DATA) $(srcdir)/kaffeine-record.png $(DESTDIR)$(kde_icondir)/hicolor/32x32/apps/kaffeine-record.png
|
||||
$(INSTALL_DATA) $(srcdir)/kaffeine32x32.png $(DESTDIR)$(kde_icondir)/hicolor/32x32/apps/kaffeine.png
|
||||
$(INSTALL_DATA) $(srcdir)/kilogram32x32.png $(DESTDIR)$(kde_icondir)/hicolor/32x32/apps/kilogram.png
|
||||
$(mkinstalldirs) $(DESTDIR)$(kde_icondir)/hicolor/32x32/mimetypes/
|
||||
$(INSTALL_DATA) $(srcdir)/mime_kaffeine32x32.png $(DESTDIR)$(kde_icondir)/hicolor/32x32/mimetypes/mime_kaffeine.png
|
||||
$(mkinstalldirs) $(DESTDIR)$(kde_icondir)/hicolor/32x32/actions/
|
||||
$(INSTALL_DATA) $(srcdir)/player_record32x32.png $(DESTDIR)$(kde_icondir)/hicolor/32x32/actions/player_record.png
|
||||
$(INSTALL_DATA) $(srcdir)/player_mute32x32.png $(DESTDIR)$(kde_icondir)/hicolor/32x32/actions/player_mute.png
|
||||
$(mkinstalldirs) $(DESTDIR)$(kde_icondir)/hicolor/48x48/apps/
|
||||
$(INSTALL_DATA) $(srcdir)/kaffeine48x48.png $(DESTDIR)$(kde_icondir)/hicolor/48x48/apps/kaffeine.png
|
||||
$(mkinstalldirs) $(DESTDIR)$(kde_icondir)/hicolor/48x48/mimetypes/
|
||||
$(INSTALL_DATA) $(srcdir)/mime_kaffeine48x48.png $(DESTDIR)$(kde_icondir)/hicolor/48x48/mimetypes/mime_kaffeine.png
|
||||
$(mkinstalldirs) $(DESTDIR)$(kde_icondir)/hicolor/64x64/apps/
|
||||
$(INSTALL_DATA) $(srcdir)/kaffeine64x64.png $(DESTDIR)$(kde_icondir)/hicolor/64x64/apps/kaffeine.png
|
||||
$(mkinstalldirs) $(DESTDIR)$(kde_datadir)/kaffeine/
|
||||
$(INSTALL_DATA) $(srcdir)/logo.mpg $(DESTDIR)$(kde_datadir)/kaffeine/logo.mpg
|
||||
$(INSTALL_DATA) $(srcdir)/logo.avi $(DESTDIR)$(kde_datadir)/kaffeine/logo.avi
|
||||
$(INSTALL_DATA) $(srcdir)/logo $(DESTDIR)$(kde_datadir)/kaffeine/logo
|
||||
$(mkinstalldirs) $(DESTDIR)$(kde_icondir)/hicolor/128x128/apps/
|
||||
$(INSTALL_DATA) $(srcdir)/kaffeine128x128.png $(DESTDIR)$(kde_icondir)/hicolor/128x128/apps/kaffeine.png
|
||||
$(INSTALL_DATA) $(srcdir)/dvbdata.tar.gz $(DESTDIR)$(kde_datadir)/kaffeine/dvbdata.tar.gz
|
||||
$(INSTALL_DATA) $(srcdir)/nocover.png $(DESTDIR)$(kde_datadir)/kaffeine/nocover.png
|
||||
|
||||
uninstall-local:
|
||||
-rm -f $(DESTDIR)$(kde_icondir)/hicolor/16x16/apps/kilogram.png
|
||||
-rm -f $(DESTDIR)$(kde_icondir)/hicolor/22x22/apps/kilogram.png
|
||||
-rm -f $(DESTDIR)$(kde_icondir)/hicolor/32x32/apps/kilogram.png
|
||||
-rm -f $(DESTDIR)$(kde_icondir)/hicolor/16x16/apps/kaffeine.png
|
||||
-rm -f $(DESTDIR)$(kde_icondir)/hicolor/16x16/apps/kdvbtv.png
|
||||
-rm -f $(DESTDIR)$(kde_icondir)/hicolor/16x16/apps/kdvbtvc.png
|
||||
-rm -f $(DESTDIR)$(kde_icondir)/hicolor/16x16/apps/kdvbra.png
|
||||
-rm -f $(DESTDIR)$(kde_icondir)/hicolor/16x16/apps/kdvbrac.png
|
||||
-rm -f $(DESTDIR)$(kde_icondir)/hicolor/16x16/apps/player_record.png
|
||||
-rm -f $(DESTDIR)$(kde_icondir)/hicolor/16x16/apps/player_mute.png
|
||||
-rm -f $(DESTDIR)$(kde_icondir)/hicolor/22x22/apps/kaffeine.png
|
||||
-rm -f $(DESTDIR)$(kde_icondir)/hicolor/22x22/apps/kaffeine-play.png
|
||||
-rm -f $(DESTDIR)$(kde_icondir)/hicolor/22x22/apps/kaffeine-pause.png
|
||||
-rm -f $(DESTDIR)$(kde_icondir)/hicolor/22x2/apps/player_record.png
|
||||
-rm -f $(DESTDIR)$(kde_icondir)/hicolor/22x22/apps/player_mute.png
|
||||
-rm -f $(DESTDIR)$(kde_icondir)/hicolor/32x32/apps/kaffeine.png
|
||||
-rm -f $(DESTDIR)$(kde_icondir)/hicolor/32x32/apps/player_record.png
|
||||
-rm -f $(DESTDIR)$(kde_icondir)/hicolor/32x32/apps/player_mute.png
|
||||
-rm -f $(DESTDIR)$(kde_icondir)/hicolor/48x48/apps/kaffeine.png
|
||||
-rm -f $(DESTDIR)$(kde_icondir)/hicolor/64x64/apps/kaffeine.png
|
||||
-rm -f $(DESTDIR)$(kde_datadir)/kaffeine/logo.mpg
|
||||
-rm -f $(DESTDIR)$(kde_datadir)/kaffeine/logo.avi
|
||||
-rm -f $(DESTDIR)$(kde_datadir)/kaffeine/logo
|
||||
-rm -f $(DESTDIR)$(kde_icondir)/hicolor/128x128/apps/kaffeine.png
|
||||
-rm -f $(DESTDIR)$(kde_datadir)/kaffeine/dvbdata.tar.gz
|
||||
-rm -f $(DESTDIR)$(kde_datadir)/kaffeine/nocover.png
|
||||
|
||||
pics_DATA = playing.png
|
||||
picsdir = $(kde_datadir)/kaffeine/pics
|
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 755 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 5.3 KiB |
After Width: | Height: | Size: 957 B |
After Width: | Height: | Size: 998 B |
After Width: | Height: | Size: 744 B |
After Width: | Height: | Size: 853 B |
After Width: | Height: | Size: 953 B |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 21 KiB |
After Width: | Height: | Size: 656 B |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 6.3 KiB |
After Width: | Height: | Size: 879 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 707 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 254 B |
@ -0,0 +1,2 @@
|
||||
|
||||
SUBDIRS = application
|
@ -0,0 +1,6 @@
|
||||
|
||||
|
||||
mime_DATA = x-kaffeine.desktop x-mplayer2.desktop
|
||||
mimedir = $(kde_mimedir)/application
|
||||
|
||||
EXTRA_DIST = $(mime_DATA)
|
@ -0,0 +1,51 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Type=MimeType
|
||||
MimeType=application/x-kaffeine
|
||||
Icon=mime_kaffeine
|
||||
Patterns=*.kaffeine
|
||||
Comment=Kaffeine Playlist
|
||||
Comment[af]=Kaffeine Speel Lys
|
||||
Comment[ar]=لائحة القراءة ل- Kaffeine
|
||||
Comment[bg]=Списък за изпълнение (Kaffeine)
|
||||
Comment[bn]=ক্যাফিন সঙ্গীত-তালিকা
|
||||
Comment[br]=Roll tonioù Kaffeine
|
||||
Comment[ca]=Repertori de Kaffeine
|
||||
Comment[cs]=Seznam skladeb Kaffeine
|
||||
Comment[da]=Kaffeines spilleliste
|
||||
Comment[de]=Kaffeine Wiedergabeliste
|
||||
Comment[el]=Λίστα αναπαραγωγής Kaffeine
|
||||
Comment[es]=Lista de reproducción de Kaffeine
|
||||
Comment[et]=Kaffeine esitusnimekiri
|
||||
Comment[fi]=Kaffeinen soittolista
|
||||
Comment[fr]=Liste de lecture de Kaffeine
|
||||
Comment[ga]=Seinmliosta Kaffeine
|
||||
Comment[gl]=Lista de Reprodución de Kaffeine
|
||||
Comment[he]=רשימת ניגון של Kaffeine
|
||||
Comment[hu]=Kaffeine-lejátszólista
|
||||
Comment[is]=Kaffeine lagalisti
|
||||
Comment[it]=Playlist di Kaffeine
|
||||
Comment[ja]=Kaffeine プレイリスト
|
||||
Comment[ka]=Kaffeine-ის რეპერტუარი
|
||||
Comment[km]=បញ្ជីចាក់ Kaffeine
|
||||
Comment[lt]=Kaffeine grojaraštis
|
||||
Comment[nb]=Kaffeine-spilleliste
|
||||
Comment[nl]=Kaffeine-afspeellijst
|
||||
Comment[nn]=Kaffeine-speleliste
|
||||
Comment[pa]=ਕੈਫ਼ੀਨ ਸੰਗੀਤ-ਸੂਚੀ
|
||||
Comment[pl]=Lista odtwarzania Kaffeine
|
||||
Comment[pt]=Lista de Reprodução do Kaffeine
|
||||
Comment[pt_BR]=Lista de Reprodução do Kaffeine
|
||||
Comment[se]=Kaffeine-čuojahanlistu
|
||||
Comment[sr]=Kaffeine-ова листа нумера
|
||||
Comment[sr@Latn]=Kaffeine-ova lista numera
|
||||
Comment[sv]=Kaffeines spellista
|
||||
Comment[tg]=Рӯйхати мусиқии Kaffeine
|
||||
Comment[th]=รายการเล่นของ Kaffeine
|
||||
Comment[tr]=Kaffeine Oynatma Listesi
|
||||
Comment[uk]=Список композицій Kaffeine
|
||||
Comment[xx]=xxKaffeine Playlistxx
|
||||
Comment[zh_CN]=Kaffeine 播放列表
|
||||
Comment[zh_TW]=Kaffeine 播放列表
|
||||
|
||||
|
@ -0,0 +1,14 @@
|
||||
|
||||
|
||||
EXTRA_DIST = mms.protocol rtsp.protocol
|
||||
|
||||
install-data-local:
|
||||
$(mkinstalldirs) $(DESTDIR)$(kde_datadir)/kaffeine
|
||||
$(INSTALL_DATA) $(srcdir)/mms.protocol $(DESTDIR)$(kde_datadir)/kaffeine/mms.protocol
|
||||
$(INSTALL_DATA) $(srcdir)/rtsp.protocol $(DESTDIR)$(kde_datadir)/kaffeine/rtsp.protocol
|
||||
|
||||
uninstall-local:
|
||||
-rm -f $(DESTDIR)$(kde_datadir)/kaffeine/mms.protocol
|
||||
-rm -f $(DESTDIR)$(kde_datadir)/kaffeine/rtsp.protocol
|
||||
|
||||
|
@ -0,0 +1,12 @@
|
||||
[Protocol]
|
||||
exec=kaffeine "%u"
|
||||
protocol=mms
|
||||
input=none
|
||||
output=none
|
||||
helper=true
|
||||
reading=false
|
||||
listing=false
|
||||
writing=false
|
||||
makedir=false
|
||||
deleting=false
|
||||
|
@ -0,0 +1,12 @@
|
||||
[Protocol]
|
||||
exec=kaffeine "%u"
|
||||
protocol=rtsp
|
||||
input=none
|
||||
output=none
|
||||
helper=true
|
||||
reading=false
|
||||
listing=false
|
||||
writing=false
|
||||
makedir=false
|
||||
deleting=false
|
||||
|
@ -0,0 +1,53 @@
|
||||
--- scandialog.cpp 2007-12-21 21:21:22.000000000 +0000
|
||||
+++ newscandialog.cpp 2007-12-21 21:23:26.000000000 +0000
|
||||
@@ -109,13 +109,15 @@
|
||||
foundList->clear();
|
||||
foundList->setAllColumnsShowFocus( true );
|
||||
foundList->setSelectionMode( QListView::Extended );
|
||||
- channelsList->setSorting( 0 );
|
||||
+ channelsList->setSorting( 1 ); // sort by source 1st than channel name
|
||||
+ channelsList->setAllColumnsShowFocus( true );
|
||||
+ channelsList->setSelectionMode( QListView::Extended );
|
||||
|
||||
ChannelDesc *chan;
|
||||
QListViewItem *it;
|
||||
for ( int i=0; i<(int)chandesc->count(); i++ ) {
|
||||
chan = chandesc->at(i);
|
||||
- it = new QListViewItem( channelsList, chan->name );
|
||||
+ it = new QListViewItem( channelsList, chan->name, chan->tp.source );
|
||||
if ( !chan->pix.isNull() )
|
||||
it->setPixmap( 0, chan->pix );
|
||||
else {
|
||||
|
||||
--- scandialogui.ui 2007-12-21 21:21:22.000000000 +0000
|
||||
+++ newscandialogui.ui 2007-12-12 18:59:16.000000000 +0000
|
||||
@@ -66,9 +66,28 @@
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</column>
|
||||
+ <column>
|
||||
+ <property name="text">
|
||||
+ <string>Source</string>
|
||||
+ </property>
|
||||
+ <property name="clickable">
|
||||
+ <bool>true</bool>
|
||||
+ </property>
|
||||
+ <property name="resizable">
|
||||
+ <bool>true</bool>
|
||||
+ </property>
|
||||
+ </column>
|
||||
<property name="name">
|
||||
<cstring>channelsList</cstring>
|
||||
</property>
|
||||
+ <property name="sizePolicy">
|
||||
+ <sizepolicy>
|
||||
+ <hsizetype>7</hsizetype>
|
||||
+ <vsizetype>3</vsizetype>
|
||||
+ <horstretch>0</horstretch>
|
||||
+ <verstretch>0</verstretch>
|
||||
+ </sizepolicy>
|
||||
+ </property>
|
||||
<property name="rootIsDecorated">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
|
@ -0,0 +1,19 @@
|
||||
|
||||
|
||||
EXTRA_DIST = kaffeine_open_directory.desktop kaffeine_append_file.desktop kaffeine_play_audiocd.desktop kaffeine_play_dvd.desktop kaffeine_play_vcd.desktop
|
||||
|
||||
install-data-local:
|
||||
$(mkinstalldirs) $(DESTDIR)$(kde_datadir)/konqueror/servicemenus
|
||||
$(INSTALL_DATA) $(srcdir)/kaffeine_open_directory.desktop $(DESTDIR)$(kde_datadir)/konqueror/servicemenus/kaffeine_open_directory.desktop
|
||||
$(INSTALL_DATA) $(srcdir)/kaffeine_append_file.desktop $(DESTDIR)$(kde_datadir)/konqueror/servicemenus/kaffeine_append_file.desktop
|
||||
$(INSTALL_DATA) $(srcdir)/kaffeine_play_audiocd.desktop $(DESTDIR)$(kde_datadir)/konqueror/servicemenus/kaffeine_play_audiocd.desktop
|
||||
$(INSTALL_DATA) $(srcdir)/kaffeine_play_dvd.desktop $(DESTDIR)$(kde_datadir)/konqueror/servicemenus/kaffeine_play_dvd.desktop
|
||||
$(INSTALL_DATA) $(srcdir)/kaffeine_play_vcd.desktop $(DESTDIR)$(kde_datadir)/konqueror/servicemenus/kaffeine_play_vcd.desktop
|
||||
|
||||
uninstall-local:
|
||||
-rm -f $(DESTDIR)$(kde_datadir)/konqueror/servicemenus/kaffeine_open_directory.desktop
|
||||
-rm -f $(DESTDIR)$(kde_datadir)/konqueror/servicemenus/kaffeine_append_file.desktop
|
||||
-rm -f $(DESTDIR)$(kde_datadir)/konqueror/servicemenus/kaffeine_play_audiocd.desktop
|
||||
-rm -f $(DESTDIR)$(kde_datadir)/konqueror/servicemenus/kaffeine_play_dvd.desktop
|
||||
-rm -f $(DESTDIR)$(kde_datadir)/konqueror/servicemenus/kaffeine_play_vcd.desktop
|
||||
|
@ -0,0 +1,53 @@
|
||||
SUBDIRS = player-parts input
|
||||
|
||||
bin_PROGRAMS = kaffeine
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/kaffeine/src/input/ \
|
||||
-I$(top_srcdir)/kaffeine/src/input/dvb/ \
|
||||
-I$(top_builddir)/kaffeine/src/input/dvb/plugins/epg \
|
||||
-I$(top_srcdir)/kaffeine/src/input/dvb/plugins/epg \
|
||||
-I$(top_builddir)/kaffeine/src/input/dvb/ \
|
||||
-I$(top_builddir)/kaffeine/src/input/disc/ \
|
||||
-I$(top_srcdir)/kaffeine/src/input/disc/ \
|
||||
-I$(top_srcdir)/kaffeine/src/input/disc/plugins \
|
||||
-I$(top_srcdir)/kaffeine/src/player-parts/kaffeine-part \
|
||||
-I$(top_srcdir)/kaffeine/src/input/dvbclient/ \
|
||||
-I$(top_srcdir)/kaffeine/src/input/audiobrowser/ \
|
||||
$(all_includes) $(CFLAGS_DPMS) $(CFLAGS_XTEST)
|
||||
|
||||
METASOURCES = AUTO
|
||||
|
||||
kaffeine_SOURCES = main.cpp \
|
||||
kaffeine.cpp \
|
||||
startwindow.cpp \
|
||||
pref.cpp \
|
||||
kaffeineiface.skel \
|
||||
systemtray.cpp \
|
||||
instwizard.cpp\
|
||||
kmultitabbar.cpp \
|
||||
inputmanager.cpp
|
||||
|
||||
kaffeine_LDFLAGS = $(all_libraries) $(KDE_RPATH)
|
||||
|
||||
if with_dvb
|
||||
DVBLIB = input/dvb/libkaffeinedvb.la
|
||||
endif
|
||||
|
||||
kaffeine_LDADD = $(LIB_KPARTS) \
|
||||
player-parts/kaffeine-part/libkaffeinepart.la \
|
||||
input/dvbclient/libkaffeinedvbclient.la \
|
||||
input/audiobrowser/libkaffeineaudiobrowser.la \
|
||||
input/disc/libkaffeinedisc.la \
|
||||
$(DVBLIB) $(LIB_DPMS) $(LIB_XTEST)
|
||||
|
||||
# this is where the desktop file will go
|
||||
shelldesktopdir = $(xdg_appsdir)
|
||||
shelldesktop_DATA = kaffeine.desktop
|
||||
|
||||
# this is where the XML-GUI resource file goes
|
||||
shellrcdir = $(kde_datadir)/kaffeine
|
||||
shellrc_DATA = kaffeineui.rc
|
||||
|
||||
# this is where profile file for KDE-LIRC goes
|
||||
profiledata_DATA = kaffeine.profile.xml
|
||||
profiledatadir = $(kde_datadir)/profiles
|
@ -0,0 +1,60 @@
|
||||
/*
|
||||
* drivescombo.cpp
|
||||
*
|
||||
* Copyright (C) 2004-2005 Jürgen Kofler <kaffeine@gmx.net>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 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
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include "drivescombo.h"
|
||||
|
||||
#include <kdebug.h>
|
||||
|
||||
#include <qfile.h>
|
||||
|
||||
DrivesCombo::DrivesCombo(QWidget* parent, const char* name)
|
||||
: KComboBox(parent, name)
|
||||
{
|
||||
setEditable(true);
|
||||
|
||||
QFile file("/etc/fstab");
|
||||
if (file.open(IO_ReadOnly))
|
||||
{
|
||||
QTextStream stream(&file);
|
||||
QString line;
|
||||
QStringList drives;
|
||||
|
||||
while (!stream.eof())
|
||||
{
|
||||
line = stream.readLine();
|
||||
if (line.contains("cdfss"))
|
||||
{
|
||||
kdDebug() << "DrivesCombo: found disc drive: " << line.section(' ', 0, 0) << endl;
|
||||
drives.append(line.section(' ', 0, 0));
|
||||
}
|
||||
}
|
||||
insertStringList(drives);
|
||||
}
|
||||
file.close();
|
||||
}
|
||||
|
||||
|
||||
DrivesCombo::~DrivesCombo()
|
||||
{
|
||||
}
|
@ -0,0 +1,43 @@
|
||||
/*
|
||||
* drivescombo.h
|
||||
*
|
||||
* Copyright (C) 2004-2005 Jürgen Kofler <kaffeine@gmx.net>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 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 DRIVESCOMBO_H
|
||||
#define DRIVESCOMBO_H
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <kcombobox.h>
|
||||
|
||||
/**
|
||||
Let user choose the disc drive. Takes presets from /etc/fstab.
|
||||
|
||||
@author Juergen Kofler
|
||||
*/
|
||||
class DrivesCombo : public KComboBox
|
||||
{
|
||||
public:
|
||||
DrivesCombo(QWidget* parent, const char* name = 0);
|
||||
virtual ~DrivesCombo();
|
||||
|
||||
};
|
||||
|
||||
#endif /* DRIVESCOMBO_H */
|
@ -0,0 +1,21 @@
|
||||
noinst_LTLIBRARIES = libkaffeineinput.la
|
||||
|
||||
if with_dvb
|
||||
DVB_SUBDIR = dvb
|
||||
endif
|
||||
|
||||
SUBDIRS = . dvbclient audiobrowser disc $(DVB_SUBDIR)
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/kaffeine/src \
|
||||
-I$(top_srcdir)/kaffeine/src/player-parts/kaffeine-part $(all_includes)
|
||||
|
||||
noinst_HEADERS = kaffeineinput.h
|
||||
|
||||
METASOURCES = AUTO
|
||||
|
||||
libkaffeineinput_la_SOURCES = kaffeineinput.cpp
|
||||
|
||||
libkaffeineinput_la_LDFLAGS = $(KDE_RPATH) \
|
||||
$(all_libraries)
|
||||
|
||||
libkaffeineinput_la_LIBADD = $(top_builddir)/kaffeine/src/player-parts/kaffeine-part/libkaffeinepart.la
|
@ -0,0 +1,28 @@
|
||||
METASOURCES = AUTO
|
||||
|
||||
noinst_LTLIBRARIES = libkaffeineaudiobrowser.la
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/kaffeine/src/input/ \
|
||||
-I$(top_srcdir)/kaffeine/src/ \
|
||||
$(all_includes) \
|
||||
-I$(top_srcdir)/kaffeine/src/player-parts/kaffeine-part
|
||||
|
||||
libkaffeineaudiobrowser_la_SOURCES = playlist.cpp \
|
||||
playlistitem.cpp \
|
||||
urllistview.cpp \
|
||||
googlefetcher.cpp \
|
||||
googlefetcherdialog.cpp
|
||||
|
||||
KDE_CXXFLAGS = $(USE_EXCEPTIONS)
|
||||
|
||||
libkaffeineaudiobrowser_la_LDFLAGS = $(KDE_RPATH) \
|
||||
$(all_libraries) \
|
||||
-L$(top_srcdir)/kaffeine/src/input
|
||||
|
||||
libkaffeineaudiobrowser_la_LIBADD = $(top_builddir)/kaffeine/src/input/libkaffeineinput.la \
|
||||
$(top_builddir)/kaffeine/src/player-parts/kaffeine-part/libkaffeinepart.la \
|
||||
$(LIB_KHTML)
|
||||
|
||||
# this is where the XML-GUI resource file goes
|
||||
shellrcdir = $(kde_datadir)/kaffeine
|
||||
shellrc_DATA = kaffeineplaylist.rc
|
@ -0,0 +1,282 @@
|
||||
/*
|
||||
* googlefetcher.cpp
|
||||
*
|
||||
* Copyright (C) 2004 Nathan Toone <nathan@toonetown.com>
|
||||
* Copyright (C) 2006 Christophe Thommeret <hftom@free.fr>
|
||||
*
|
||||
* 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 <dom/html_document.h>
|
||||
#include <dom/html_misc.h>
|
||||
#include <dom/html_table.h>
|
||||
#include <dom/dom_exception.h>
|
||||
#include <dom/dom2_traversal.h>
|
||||
|
||||
#include <khtml_part.h>
|
||||
|
||||
#include <klocale.h>
|
||||
#include <kinputdialog.h>
|
||||
#include <kurl.h>
|
||||
#include <kio/netaccess.h>
|
||||
|
||||
#include "googlefetcher.h"
|
||||
#include "googlefetcherdialog.h"
|
||||
|
||||
GoogleImage::GoogleImage(QString thumbURL, QString size)
|
||||
{
|
||||
// thumbURL is in the following format - and we can regex the imageURL
|
||||
// images?q=tbn:hKSEWNB8aNcJ:www.styxnet.com/deyoung/styx/stygians/cp_portrait.jpg
|
||||
m_thumbURL = thumbURL.replace("\"","");
|
||||
m_imageURL = thumbURL.remove(QRegExp("^.*q=tbn:[^:]*:")).replace("\"","");
|
||||
m_size = size.replace("pixels - ", "\n(") + ")";
|
||||
}
|
||||
|
||||
|
||||
GoogleFetcher::GoogleFetcher( QString artist, QString album, bool gallery )
|
||||
{
|
||||
m_artist = artist;
|
||||
m_album = album;
|
||||
m_searchString = artist+" "+album;
|
||||
encoding = 0;
|
||||
galleryImage=galleryPage=0;
|
||||
galleryMode = gallery;
|
||||
}
|
||||
|
||||
void GoogleFetcher::slotLoadImageURLs(GoogleFetcher::ImageSize size)
|
||||
{
|
||||
if(m_loadedQuery == m_searchString && m_loadedSize == size)
|
||||
return;
|
||||
|
||||
m_imageList.clear();
|
||||
|
||||
KURL url("http://images.google.com/images");
|
||||
if ( encoding )
|
||||
url.addQueryItem("q", m_searchString,encoding);
|
||||
else
|
||||
url.addQueryItem("q", m_searchString);
|
||||
|
||||
switch (size) {
|
||||
case XLarge:
|
||||
url.addQueryItem("imgsz", "xlarge|xxlarge");
|
||||
break;
|
||||
case Large:
|
||||
url.addQueryItem("imgsz", "large");
|
||||
break;
|
||||
case Medium:
|
||||
url.addQueryItem("imgsz", "medium");
|
||||
break;
|
||||
case Small:
|
||||
url.addQueryItem("imgsz", "small");
|
||||
break;
|
||||
case Icon:
|
||||
url.addQueryItem("imgsz", "icon");
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
m_loadedQuery = m_searchString;
|
||||
m_loadedSize = size;
|
||||
|
||||
// We don't normally like exceptions but missing DOMException will kill
|
||||
// JuK rather abruptly whether we like it or not so we don't really have a
|
||||
// choice if we're going to screen-scrape Google.
|
||||
try {
|
||||
|
||||
KHTMLPart part;
|
||||
|
||||
// Create empty document.
|
||||
|
||||
part.begin();
|
||||
part.end();
|
||||
|
||||
DOM::Document search = part.document();
|
||||
search.setAsync(false); // Grab the document before proceeding.
|
||||
|
||||
kdDebug() << "Performing Google Search: " << url << endl;
|
||||
|
||||
search.load(url.url()+QString("&start=%1&sa=N").arg(galleryPage*20) );
|
||||
|
||||
QString text = search.toString().string();
|
||||
|
||||
if ( !hasImageResults(text) ) {
|
||||
kdDebug() << "Search returned no results.\n";
|
||||
emit signalNewSearch(m_imageList);
|
||||
return;
|
||||
}
|
||||
|
||||
// Go through each of the top (table) nodes
|
||||
|
||||
int pos = text.find("/imgres?imgurl");
|
||||
int tpos;
|
||||
QString s, c;
|
||||
while ( pos>-1 ) {
|
||||
text = text.right( text.length()-pos-14 );
|
||||
tpos = text.find("&h=");
|
||||
text = text.right( text.length()-tpos-3 );
|
||||
tpos = text.find("&w=");
|
||||
c = "pixels - " + text.left( tpos );
|
||||
text = text.right( text.length()-tpos-3 );
|
||||
tpos = text.find("&sz=");
|
||||
c = c + "x" + text.left( tpos );
|
||||
tpos = text.find("src=");
|
||||
text = text.right( text.length()-tpos-4 );
|
||||
if ( (tpos=text.find("width="))==-1 )
|
||||
break;
|
||||
s = text.left( tpos-1 );
|
||||
text = text.right( text.length()-tpos );
|
||||
if ( (tpos=text.find("></a>"))==-1 )
|
||||
break;
|
||||
m_imageList.append(GoogleImage(s, c));
|
||||
pos = text.find("/imgres?imgurl");
|
||||
}
|
||||
} // try
|
||||
catch (DOM::DOMException &e)
|
||||
{
|
||||
kdError() << "Caught DOM Exception: " << e.code << endl;
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
kdError() << "Caught unknown exception.\n";
|
||||
}
|
||||
|
||||
emit signalNewSearch(m_imageList);
|
||||
}
|
||||
|
||||
QImage GoogleFetcher::galleryNext( bool &end )
|
||||
{
|
||||
QString file;
|
||||
QImage image;
|
||||
m_loadedSize = All;
|
||||
int tries = 0;
|
||||
end = false;
|
||||
|
||||
while ( tries<3 ) {
|
||||
if( m_imageList.isEmpty() ) {
|
||||
if ( tries==0 ) {
|
||||
encoding = 0;
|
||||
m_loadedQuery = "";
|
||||
++tries;
|
||||
displayWaitMessage();
|
||||
}
|
||||
else if ( tries==1 ) {
|
||||
encoding = 4; // try iso8859-1
|
||||
m_loadedQuery = "";
|
||||
++tries;
|
||||
kdDebug() << "Trying iso8859-1" << endl;
|
||||
displayWaitMessage();
|
||||
}
|
||||
else {
|
||||
end = true;
|
||||
return QImage();
|
||||
}
|
||||
}
|
||||
else {
|
||||
if(KIO::NetAccess::download( m_imageList[galleryImage].imageURL(), file, 0))
|
||||
image = QImage(file);
|
||||
else
|
||||
image = QImage();
|
||||
++galleryImage;
|
||||
if ( galleryImage==(int)m_imageList.count() ) {
|
||||
m_imageList.clear();
|
||||
galleryImage = 0;
|
||||
++galleryPage;
|
||||
}
|
||||
KIO::NetAccess::removeTempFile(file);
|
||||
return image;
|
||||
}
|
||||
}
|
||||
return QImage();
|
||||
}
|
||||
|
||||
QPixmap GoogleFetcher::pixmap( bool forceFetch )
|
||||
{
|
||||
bool chosen = false;
|
||||
m_loadedSize = All;
|
||||
int tries = 0;
|
||||
|
||||
encoding = 0;
|
||||
displayWaitMessage();
|
||||
|
||||
QPixmap pixmap;
|
||||
|
||||
while(!chosen) {
|
||||
|
||||
if(m_imageList.isEmpty())
|
||||
switch(tries) {
|
||||
case 0:
|
||||
encoding = 4; // try iso8859-1
|
||||
m_loadedQuery = "";
|
||||
++tries;
|
||||
kdDebug() << "Trying iso8859-1" << endl;
|
||||
displayWaitMessage();
|
||||
break;
|
||||
default :
|
||||
if ( forceFetch == true )
|
||||
chosen = !requestNewSearchTerms(true);
|
||||
else
|
||||
chosen = true;
|
||||
}
|
||||
else {
|
||||
GoogleFetcherDialog dialog("google", m_imageList, m_artist, m_album, 0);
|
||||
connect(&dialog, SIGNAL(sizeChanged(GoogleFetcher::ImageSize)),
|
||||
this, SLOT(slotLoadImageURLs(GoogleFetcher::ImageSize)));
|
||||
connect(this, SIGNAL(signalNewSearch(GoogleImageList &)),
|
||||
&dialog, SLOT(refreshScreen(GoogleImageList &)));
|
||||
dialog.exec();
|
||||
pixmap = dialog.result();
|
||||
chosen = dialog.takeIt();
|
||||
|
||||
if(dialog.newSearch())
|
||||
requestNewSearchTerms();
|
||||
}
|
||||
}
|
||||
return pixmap;
|
||||
}
|
||||
|
||||
void GoogleFetcher::displayWaitMessage()
|
||||
{
|
||||
//KStatusBar *statusBar = static_cast<KMainWindow *>(kapp->mainWidget())->statusBar();
|
||||
//statusBar->message(i18n("Searching for Images. Please Wait..."));
|
||||
slotLoadImageURLs();
|
||||
//statusBar->clear();*/
|
||||
}
|
||||
|
||||
bool GoogleFetcher::requestNewSearchTerms(bool noResults)
|
||||
{
|
||||
bool ok;
|
||||
m_searchString = KInputDialog::getText(i18n("Cover Downloader"),
|
||||
noResults ?
|
||||
i18n("No matching images found, please enter new search terms:") :
|
||||
i18n("Enter new search terms:"),
|
||||
m_searchString, &ok);
|
||||
if(ok && !m_searchString.isEmpty())
|
||||
displayWaitMessage();
|
||||
else
|
||||
m_searchString = m_loadedQuery;
|
||||
|
||||
return ok;
|
||||
}
|
||||
|
||||
bool GoogleFetcher::hasImageResults( QString &doc )
|
||||
{
|
||||
if ( !doc.contains( "/imgres?imgurl" ) )
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
#include "googlefetcher.moc"
|
@ -0,0 +1,91 @@
|
||||
/*
|
||||
* googlefetcher.h
|
||||
*
|
||||
* Copyright (C) 2004 Nathan Toone <nathan@toonetown.com>
|
||||
* Copyright (C) 2006 Christophe Thommeret <hftom@free.fr>
|
||||
*
|
||||
* 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 GOOGLEFETCHER_H
|
||||
#define GOOGLEFETCHER_H
|
||||
|
||||
#include <kdialogbase.h>
|
||||
|
||||
#include <qpixmap.h>
|
||||
#include <qstringlist.h>
|
||||
#include <qregexp.h>
|
||||
|
||||
namespace DOM {
|
||||
class HTMLDocument;
|
||||
}
|
||||
|
||||
class KURL;
|
||||
|
||||
class GoogleImage
|
||||
{
|
||||
public:
|
||||
GoogleImage(QString thumbURL = QString::null, QString size = QString::null);
|
||||
|
||||
QString imageURL() const { return m_imageURL; }
|
||||
QString thumbURL() const { return m_thumbURL; }
|
||||
QString size() const { return m_size; }
|
||||
|
||||
private:
|
||||
QString m_imageURL;
|
||||
QString m_thumbURL;
|
||||
QString m_size;
|
||||
};
|
||||
|
||||
typedef QValueList<GoogleImage> GoogleImageList;
|
||||
|
||||
class GoogleFetcher : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
enum ImageSize { All, Icon, Small, Medium, Large, XLarge };
|
||||
|
||||
GoogleFetcher( QString artist, QString album, bool gallery=false );
|
||||
QPixmap pixmap( bool forceFetch = false );
|
||||
QImage galleryNext( bool &end );
|
||||
|
||||
signals:
|
||||
void signalNewSearch(GoogleImageList &images);
|
||||
|
||||
private:
|
||||
void displayWaitMessage();
|
||||
bool requestNewSearchTerms(bool noResults = false);
|
||||
|
||||
// Returns true if there are results in the search, otherwise returns false.
|
||||
bool hasImageResults( QString &doc );
|
||||
|
||||
private slots:
|
||||
void slotLoadImageURLs(GoogleFetcher::ImageSize size = All);
|
||||
|
||||
private:
|
||||
QString m_artist, m_album;
|
||||
QString m_searchString;
|
||||
QString m_loadedQuery;
|
||||
ImageSize m_loadedSize;
|
||||
GoogleImageList m_imageList;
|
||||
uint m_selectedIndex;
|
||||
int encoding;
|
||||
int galleryImage;
|
||||
int galleryPage;
|
||||
bool galleryMode;
|
||||
};
|
||||
|
||||
#endif /* GOOGLEFETCHER_H */
|
@ -0,0 +1,254 @@
|
||||
/*
|
||||
* googlefetcherdialog.cpp
|
||||
*
|
||||
* Copyright (C) 2004 Nathan Toone <nathan@toonetown.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 <kapplication.h>
|
||||
#include <kio/netaccess.h>
|
||||
#include <klocale.h>
|
||||
#include <kdebug.h>
|
||||
#include <kmessagebox.h>
|
||||
#include <kcombobox.h>
|
||||
|
||||
#include <qhbox.h>
|
||||
#include <qimage.h>
|
||||
#include <qlabel.h>
|
||||
#include <qpushbutton.h>
|
||||
#include <qeventloop.h>
|
||||
|
||||
#include "googlefetcherdialog.h"
|
||||
|
||||
GoogleFetcherDialog::GoogleFetcherDialog(const QString &name,
|
||||
const GoogleImageList &imageList,
|
||||
const QString &artist,
|
||||
const QString &album,
|
||||
QWidget *parent) :
|
||||
KDialogBase(parent, name.latin1(), true, QString::null,
|
||||
Ok | Cancel | User1 , NoDefault, true),
|
||||
m_pixmap(QPixmap()),
|
||||
m_imageList(imageList),
|
||||
m_takeIt(false),
|
||||
m_newSearch(false)
|
||||
{
|
||||
m_artist = artist;
|
||||
m_album = album;
|
||||
disableResize();
|
||||
|
||||
QHBox *mainBox = new QHBox(this);
|
||||
m_iconWidget = new KIconView(mainBox);
|
||||
m_iconWidget->setResizeMode(QIconView::Adjust);
|
||||
m_iconWidget->setSelectionMode(QIconView::Extended);
|
||||
m_iconWidget->setSpacing(10);
|
||||
m_iconWidget->setMode(KIconView::Execute);
|
||||
m_iconWidget->setFixedSize(500,550);
|
||||
m_iconWidget->arrangeItemsInGrid();
|
||||
m_iconWidget->setItemsMovable(FALSE);
|
||||
|
||||
QHBox *imgSize = new QHBox(actionButton(User1)->parentWidget());
|
||||
//QLabel *label = new QLabel(imgSize);
|
||||
//label->setText(i18n("Image size:"));
|
||||
|
||||
KComboBox *combo = new KComboBox(imgSize);
|
||||
combo->insertItem(i18n("All Sizes"));
|
||||
combo->insertItem(i18n("Very Small"));
|
||||
combo->insertItem(i18n("Small"));
|
||||
combo->insertItem(i18n("Medium"));
|
||||
combo->insertItem(i18n("Large"));
|
||||
combo->insertItem(i18n("Very Large"));
|
||||
combo->setCurrentItem(0);
|
||||
connect(combo, SIGNAL(activated(int)), this, SLOT(imgSizeChanged(int)));
|
||||
connect(m_iconWidget, SIGNAL( executed(QIconViewItem*) ), this, SLOT(slotOk()));
|
||||
|
||||
imgSize->adjustSize();
|
||||
setMainWidget(mainBox);
|
||||
setButtonText(User1, i18n("New Search"));
|
||||
}
|
||||
|
||||
GoogleFetcherDialog::~GoogleFetcherDialog()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void GoogleFetcherDialog::setLayout()
|
||||
{
|
||||
setCaption(QString("%1 - %2 (%3)")
|
||||
.arg(m_artist)
|
||||
.arg(m_album)
|
||||
.arg(m_imageList.size()));
|
||||
|
||||
m_iconWidget->clear();
|
||||
for(uint i = 0; i < m_imageList.size(); i++)
|
||||
new CoverIconViewItem(m_iconWidget, m_imageList[i]);
|
||||
|
||||
adjustSize();
|
||||
}
|
||||
|
||||
void GoogleFetcherDialog::setImageList(const GoogleImageList &imageList)
|
||||
{
|
||||
m_imageList=imageList;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// public slots
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void GoogleFetcherDialog::refreshScreen(GoogleImageList &imageList)
|
||||
{
|
||||
setImageList(imageList);
|
||||
setLayout();
|
||||
}
|
||||
|
||||
int GoogleFetcherDialog::exec()
|
||||
{
|
||||
setLayout();
|
||||
return KDialogBase::exec();
|
||||
}
|
||||
|
||||
void GoogleFetcherDialog::slotOk()
|
||||
{
|
||||
uint selectedIndex = m_iconWidget->index(m_iconWidget->currentItem());
|
||||
m_pixmap = pixmapFromURL(m_imageList[selectedIndex].imageURL());
|
||||
|
||||
if(m_pixmap.isNull()) {
|
||||
KMessageBox::sorry(this,
|
||||
i18n("The cover you have selected is unavailable. Please select another."),
|
||||
i18n("Cover Unavailable"));
|
||||
QPixmap blankPix;
|
||||
blankPix.resize(80, 80);
|
||||
blankPix.fill();
|
||||
m_iconWidget->currentItem()->setPixmap(blankPix, true, true);
|
||||
return;
|
||||
}
|
||||
|
||||
m_takeIt = true;
|
||||
m_newSearch = false;
|
||||
hide();
|
||||
}
|
||||
|
||||
void GoogleFetcherDialog::slotCancel()
|
||||
{
|
||||
m_takeIt = true;
|
||||
m_newSearch = false;
|
||||
m_pixmap = QPixmap();
|
||||
hide();
|
||||
}
|
||||
|
||||
void GoogleFetcherDialog::slotUser1()
|
||||
{
|
||||
m_takeIt = false;
|
||||
m_newSearch = true;
|
||||
m_pixmap = QPixmap();
|
||||
hide();
|
||||
}
|
||||
|
||||
void GoogleFetcherDialog::imgSizeChanged(int index)
|
||||
{
|
||||
GoogleFetcher::ImageSize imageSize = GoogleFetcher::All;
|
||||
switch (index) {
|
||||
case 1:
|
||||
imageSize = GoogleFetcher::Icon;
|
||||
break;
|
||||
case 2:
|
||||
imageSize = GoogleFetcher::Small;
|
||||
break;
|
||||
case 3:
|
||||
imageSize = GoogleFetcher::Medium;
|
||||
break;
|
||||
case 4:
|
||||
imageSize=GoogleFetcher::Large;
|
||||
break;
|
||||
case 5:
|
||||
imageSize=GoogleFetcher::XLarge;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
emit sizeChanged(imageSize);
|
||||
}
|
||||
|
||||
QPixmap GoogleFetcherDialog::fetchedImage(uint index) const
|
||||
{
|
||||
return (index > m_imageList.count()) ? QPixmap() : pixmapFromURL(m_imageList[index].imageURL());
|
||||
}
|
||||
|
||||
QPixmap GoogleFetcherDialog::pixmapFromURL(const KURL &url) const
|
||||
{
|
||||
QString file;
|
||||
|
||||
if(KIO::NetAccess::download(url, file, 0)) {
|
||||
QPixmap pixmap = QPixmap(file);
|
||||
KIO::NetAccess::removeTempFile(file);
|
||||
return pixmap;
|
||||
}
|
||||
KIO::NetAccess::removeTempFile(file);
|
||||
return QPixmap();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// CoverIconViewItem
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
CoverIconViewItem::CoverIconViewItem(QIconView *parent, const GoogleImage &image) :
|
||||
QObject(parent), KIconViewItem(parent, parent->lastItem(), image.size()), m_job(0)
|
||||
{
|
||||
// Set up the iconViewItem
|
||||
|
||||
QPixmap mainMap;
|
||||
mainMap.resize(80, 80);
|
||||
mainMap.fill();
|
||||
setPixmap(mainMap, true, true);
|
||||
|
||||
// Start downloading the image.
|
||||
|
||||
m_job = KIO::get(image.thumbURL(), false, false);
|
||||
connect(m_job, SIGNAL(result(KIO::Job *)), this, SLOT(imageResult(KIO::Job *)));
|
||||
connect(m_job, SIGNAL(data(KIO::Job *, const QByteArray &)),
|
||||
this, SLOT(imageData(KIO::Job *, const QByteArray &)));
|
||||
}
|
||||
|
||||
CoverIconViewItem::~CoverIconViewItem()
|
||||
{
|
||||
if(m_job) {
|
||||
m_job->kill();
|
||||
|
||||
// Drain results issued by KIO before being deleted,
|
||||
// and before deleting the job.
|
||||
kapp->eventLoop()->processEvents(QEventLoop::ExcludeUserInput);
|
||||
|
||||
delete m_job;
|
||||
}
|
||||
}
|
||||
|
||||
void CoverIconViewItem::imageData(KIO::Job *, const QByteArray &data)
|
||||
{
|
||||
int currentSize = m_buffer.size();
|
||||
m_buffer.resize(currentSize + data.size(), QGArray::SpeedOptim);
|
||||
memcpy(&(m_buffer.data()[currentSize]), data.data(), data.size());
|
||||
}
|
||||
|
||||
void CoverIconViewItem::imageResult(KIO::Job *job)
|
||||
{
|
||||
if(job->error())
|
||||
return;
|
||||
|
||||
QPixmap iconImage(m_buffer);
|
||||
iconImage = QImage(iconImage.convertToImage()).smoothScale(80, 80);
|
||||
setPixmap(iconImage, true, true);
|
||||
}
|
||||
|
||||
#include "googlefetcherdialog.moc"
|
@ -0,0 +1,98 @@
|
||||
/*
|
||||
* googlefetcherdialog.h
|
||||
*
|
||||
* Copyright (C) 2004 Nathan Toone <nathan@toonetown.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 GOOGLEFETCHERDIALOG_H
|
||||
#define GOOGLEFETCHERDIALOG_H
|
||||
|
||||
#include <kiconview.h>
|
||||
#include <kio/job.h>
|
||||
|
||||
#include "googlefetcher.h"
|
||||
|
||||
class KURL;
|
||||
|
||||
class GoogleFetcherDialog : public KDialogBase
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
GoogleFetcherDialog(const QString &name,
|
||||
const GoogleImageList &urlList,
|
||||
const QString &artist,
|
||||
const QString &album,
|
||||
QWidget *parent = 0);
|
||||
|
||||
virtual ~GoogleFetcherDialog();
|
||||
|
||||
QPixmap result() const { return m_pixmap; }
|
||||
bool takeIt() const { return m_takeIt; }
|
||||
bool newSearch() const { return m_newSearch; }
|
||||
|
||||
void setLayout();
|
||||
void setImageList(const GoogleImageList &urlList);
|
||||
|
||||
public slots:
|
||||
int exec();
|
||||
void refreshScreen(GoogleImageList &list);
|
||||
|
||||
signals:
|
||||
void sizeChanged(GoogleFetcher::ImageSize);
|
||||
|
||||
protected slots:
|
||||
void slotOk();
|
||||
void slotCancel();
|
||||
void slotUser1();
|
||||
void imgSizeChanged(int index);
|
||||
|
||||
private:
|
||||
QPixmap fetchedImage(uint index) const;
|
||||
QPixmap pixmapFromURL(const KURL &url) const;
|
||||
|
||||
QPixmap m_pixmap;
|
||||
GoogleImageList m_imageList;
|
||||
KIconView *m_iconWidget;
|
||||
bool m_takeIt;
|
||||
bool m_newSearch;
|
||||
QString m_artist, m_album;
|
||||
};
|
||||
|
||||
namespace KIO
|
||||
{
|
||||
class TransferJob;
|
||||
}
|
||||
|
||||
class CoverIconViewItem : public QObject, public KIconViewItem
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
CoverIconViewItem(QIconView *parent, const GoogleImage &image);
|
||||
~CoverIconViewItem();
|
||||
|
||||
private slots:
|
||||
void imageData(KIO::Job *job, const QByteArray &data);
|
||||
void imageResult(KIO::Job* job);
|
||||
|
||||
private:
|
||||
QByteArray m_buffer;
|
||||
QGuardedPtr<KIO::TransferJob> m_job;
|
||||
};
|
||||
|
||||
#endif /* GOOGLEFETCHERDIALOG_H */
|
@ -0,0 +1,17 @@
|
||||
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
|
||||
<kpartgui name="kaffeineplaylist" version="4">
|
||||
<MenuBar>
|
||||
<Menu name="playlist"><text>Play&list</text>
|
||||
<Action name="playlist_shuffle"/>
|
||||
<Action name="playlist_repeat"/>
|
||||
<Action name="playlist_autocover"/>
|
||||
<Action name="playlist_showplayer"/>
|
||||
<Separator/>
|
||||
<Action name="playlist_clear"/>
|
||||
<Action name="playlist_new"/>
|
||||
<Action name="playlist_load"/>
|
||||
<Action name="playlist_save_as"/>
|
||||
<Action name="playlist_remove"/>
|
||||
</Menu>
|
||||
</MenuBar>
|
||||
</kpartgui>
|
@ -0,0 +1,336 @@
|
||||
/*
|
||||
* playlist.h
|
||||
*
|
||||
* Copyright (C) 2003-2005 Jürgen Kofler <kaffeine@gmx.net>
|
||||
* Copyright (C) 2005-2006 Christophe Thommeret <hftom@free.fr>
|
||||
*
|
||||
* 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 PLAYLIST_H
|
||||
#define PLAYLIST_H
|
||||
|
||||
#include <kdialogbase.h>
|
||||
#include <kdiroperator.h>
|
||||
#include <kfileiconview.h>
|
||||
#include <kaction.h>
|
||||
#include <kstdaction.h>
|
||||
|
||||
#include <qwidget.h>
|
||||
#include <qptrlist.h>
|
||||
#include <qvbox.h>
|
||||
#include <qsplitter.h>
|
||||
#include <qpainter.h>
|
||||
#include <qtoolbutton.h>
|
||||
|
||||
#include "urllistview.h"
|
||||
#include "kaffeineinput.h"
|
||||
|
||||
class UrlListView;
|
||||
class MRL;
|
||||
class KURL;
|
||||
class QListViewItem;
|
||||
class QString;
|
||||
class QLabel;
|
||||
class QColor;
|
||||
class QDropEvent;
|
||||
class QPixmap;
|
||||
class KLineEdit;
|
||||
class KComboBox;
|
||||
class KURLComboBox;
|
||||
class KConfig;
|
||||
class KPushButton;
|
||||
class GoogleFetcher;
|
||||
|
||||
|
||||
|
||||
class GalleryDialog : public KDialogBase
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
GalleryDialog( QWidget *parent, GoogleFetcher *goog );
|
||||
protected slots:
|
||||
void slotOk();
|
||||
void slotNext();
|
||||
private:
|
||||
QFrame *imageFrame;
|
||||
GoogleFetcher *google;
|
||||
QTimer next;
|
||||
QHBox *hbox;
|
||||
};
|
||||
|
||||
|
||||
|
||||
class RollTitle : public QLabel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
RollTitle( QWidget *parent );
|
||||
void setTitle( MRL mrl );
|
||||
|
||||
private:
|
||||
void setTitle( QString t );
|
||||
QTimer titleTimer;
|
||||
QPixmap titlePix;
|
||||
QColor back, fore;
|
||||
int titleOffset;
|
||||
QString title;
|
||||
|
||||
protected:
|
||||
void paintEvent ( QPaintEvent * );
|
||||
|
||||
private slots:
|
||||
void rollTitle();
|
||||
};
|
||||
|
||||
|
||||
|
||||
class CoverFrame : public QFrame
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
CoverFrame( QWidget *parent );
|
||||
~CoverFrame();
|
||||
void setCoverPixmap( const QString &path );
|
||||
|
||||
protected:
|
||||
void mousePressEvent( QMouseEvent *e );
|
||||
|
||||
private:
|
||||
void popup( const QPixmap &pix ) const;
|
||||
QString imagePath;
|
||||
QPixmap noCoverPix;
|
||||
|
||||
signals:
|
||||
void changeCurrentCover();
|
||||
void gallery();
|
||||
};
|
||||
|
||||
|
||||
|
||||
class PlayList : public KaffeineInput
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
PlayList(QWidget *parent, QObject *objParent, const char *name=0);
|
||||
~PlayList();
|
||||
|
||||
// Reimplemented from KaffeineInput
|
||||
public:
|
||||
QWidget *wantPlayerWindow();
|
||||
QWidget *inputMainWidget();
|
||||
void mergeMeta(const MRL&);
|
||||
bool nextTrack( MRL& );
|
||||
bool previousTrack( MRL& );
|
||||
bool currentTrack( MRL& );
|
||||
bool trackNumber( int, MRL& );
|
||||
bool playbackFinished( MRL& );
|
||||
void getTargets( QStringList &uiNames, QStringList &iconNames, QStringList &targetNames );
|
||||
void togglePanel();
|
||||
bool execTarget( const QString& );
|
||||
void saveConfig();
|
||||
bool showPlayer() {return !m_showPlayer->isChecked();}
|
||||
//***************************************
|
||||
|
||||
public:
|
||||
MRL getCurrent(); /* get current playlist entry */
|
||||
MRL getNext();
|
||||
MRL getEntryWithNumber(int number);
|
||||
void setCurrentEntry(QListViewItem*, bool playIcon = true);
|
||||
|
||||
QListViewItem* getLast();
|
||||
QListViewItem* getFirst();
|
||||
QListViewItem* findByURL(const QString&);
|
||||
|
||||
/* insert a KURL(list) after a specific item */
|
||||
void add(const QString& url, QListViewItem* after);
|
||||
void add(const QStringList& urls, QListViewItem* after);
|
||||
void add(const QValueList<MRL>&, QListViewItem* after);
|
||||
|
||||
bool isQueueMode() { return m_queue.count(); }
|
||||
|
||||
void setPlaylist(const QString& name, bool clear = false);
|
||||
void nextPlaylist();
|
||||
void removeCurrentPlaylist();
|
||||
void saveCurrentPlaylist();
|
||||
QString queryCurrentPlaylist();
|
||||
void loadConfig(KConfig*);
|
||||
void saveConfig(KConfig*);
|
||||
void clearList();
|
||||
|
||||
void setEndless(bool);
|
||||
void setRandom(bool);
|
||||
|
||||
void useAlternateEncoding(bool);
|
||||
void setAlternateEncoding(const QString&);
|
||||
|
||||
void setFileFilter(const QString& filter);
|
||||
void savePlaylist(const QString&);
|
||||
void loadPlaylist(const QString&);
|
||||
|
||||
void exportM3UPlaylist(const QString&);
|
||||
void exportPLSPlaylist(const QString&);
|
||||
|
||||
const bool getReadMetaOnLoading() const { return m_metaOnLoading; }
|
||||
|
||||
QVBox *mainWidget;
|
||||
QVBox *playerBox;
|
||||
|
||||
public slots:
|
||||
void slotToggleShuffle();
|
||||
|
||||
protected:
|
||||
void closeEvent(QCloseEvent*);
|
||||
|
||||
private slots:
|
||||
void slotNewList();
|
||||
void slotSetReadMetaOnLoading(bool read) { m_metaOnLoading = read; }
|
||||
void slotSetAlternateColor(const QColor&);
|
||||
void slotPlayDirect(QListViewItem* item); /* doubleclick */
|
||||
void slotDropEvent(QDropEvent*, QListViewItem*);
|
||||
void slotPreDropEvent();
|
||||
void slotCut();
|
||||
void slotPaste();
|
||||
void slotCopy();
|
||||
void slotSelectAll();
|
||||
void slotPlaylistFromSelected();
|
||||
void slotAddToQueue(MRL);
|
||||
void slotRemoveSelected();
|
||||
void slotFindText(const QString&);
|
||||
void slotSort(int);
|
||||
void slotPlaylistActivated(int);
|
||||
void slotNewPlaylistName(const QString&);
|
||||
void slotRepeat();
|
||||
void slotShuffle();
|
||||
void slotAutoCover();
|
||||
void slotShowPlayer();
|
||||
void slotPlaylistLoad();
|
||||
void slotPlaylistSaveAs();
|
||||
void slotPlaylistRemove();
|
||||
void setCover( QString s1, QString s2, bool forceFetch=false );
|
||||
void chooseCurrentCover();
|
||||
void showGallery();
|
||||
void startPlaylist();
|
||||
void fileSelected( const KFileItem* );
|
||||
void setBrowserURL( const QString& );
|
||||
void setBrowserURL( const KURL& );
|
||||
void browserURLChanged( const KURL& );
|
||||
void slotClearList();
|
||||
void resetSearch();
|
||||
|
||||
private:
|
||||
QListViewItem* insertItem(QListViewItem* after, const MRL&);
|
||||
void updateStatus();
|
||||
void createRandomList();
|
||||
void getMetaInfo(MRL& mrl, const QString& mimeName);
|
||||
void setupActions();
|
||||
/* helpers */
|
||||
static QString msToTimeString(int);
|
||||
static int timeStringToMs(const QString&);
|
||||
static bool endsWith(QString, QString, bool);
|
||||
static bool startsWith(QString, QString, bool);
|
||||
|
||||
private:
|
||||
QColor m_altCol;
|
||||
KComboBox* m_playlistSelector;
|
||||
QToolButton *searchBtn;
|
||||
KLineEdit* m_playlistFilter;
|
||||
int m_nextPlaylistNumber;
|
||||
QString m_playlistDirectory;
|
||||
int m_currentPlaylist;
|
||||
KURLComboBox *browserComb;
|
||||
|
||||
QSplitter *hSplit, *vSplit;
|
||||
QVBox *panel;
|
||||
QWidget *playlist;
|
||||
KDirOperator *fileBrowser;
|
||||
KFileIconView *view;
|
||||
CoverFrame *coverFrame;
|
||||
GoogleFetcher *google;
|
||||
QString coverImageFormat;
|
||||
RollTitle *roller;
|
||||
|
||||
KToggleAction *m_repeat, *m_shuffle, *m_autoCover, *m_showPlayer;
|
||||
|
||||
QValueList<MRL> m_queue;
|
||||
|
||||
uint m_playTime;
|
||||
uint m_playTimeVisible;
|
||||
uint m_countVisible;
|
||||
|
||||
bool m_searchSelection;
|
||||
bool m_metaOnLoading;
|
||||
bool m_sortAscending;
|
||||
|
||||
UrlListView* m_list;
|
||||
QListViewItem* m_currentEntry;
|
||||
MRL m_currentEntryMRL;
|
||||
|
||||
QString m_fileFilter;
|
||||
QString m_metaInfoString;
|
||||
QString m_lastPlaylist;
|
||||
|
||||
QPtrList<QListViewItem> m_randomList;
|
||||
int m_currentRandomListEntry;
|
||||
|
||||
QPixmap m_isCurrentEntry;
|
||||
QPixmap m_cdPixmap;
|
||||
|
||||
bool m_endless;
|
||||
bool m_random;
|
||||
bool m_cover;
|
||||
|
||||
bool m_useAlternateEncoding;
|
||||
QString m_alternateEncoding;
|
||||
|
||||
signals:
|
||||
void signalRequestForAudioCD(const QString&);
|
||||
void signalRequestForDVD(const QString&);
|
||||
void signalRequestForVCD(const QString&);
|
||||
};
|
||||
|
||||
class QListBox;
|
||||
class QStringList;
|
||||
|
||||
class SubtitleChooser : public KDialogBase
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
SubtitleChooser(QStringList, QString, QWidget *parent=0, const char *name = 0);
|
||||
virtual ~SubtitleChooser();
|
||||
|
||||
QString getSelection();
|
||||
|
||||
private:
|
||||
QListBox *table;
|
||||
};
|
||||
|
||||
class MovieChooser : public KDialogBase
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
MovieChooser(QStringList, QString, QWidget *parent=0, const char *name = 0);
|
||||
virtual ~MovieChooser();
|
||||
|
||||
QString getSelection();
|
||||
|
||||
private:
|
||||
QListBox *table;
|
||||
};
|
||||
|
||||
#endif /* PLAYLIST_H */
|
@ -0,0 +1,268 @@
|
||||
/*
|
||||
* playlistitem.cpp - a self-displayable item for kaffeine's playlist
|
||||
*
|
||||
* Copyright (C) 2004-2005 Giorgos Gousios
|
||||
* Copyright (C) 2004-2005 Jürgen Kofler <kaffeine@gmx.net>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 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 <qstringlist.h>
|
||||
|
||||
#include <kdebug.h>
|
||||
|
||||
#include "mrl.h"
|
||||
#include "playlistitem.h"
|
||||
|
||||
PlaylistItem::PlaylistItem(KListView *list, KListViewItem *after, const QString& url, const QString& mime, const QString& title,
|
||||
const QString& length, const QString& artist, const QString& album, const QString& year, const QString& genre,
|
||||
const QString& track, const QStringList& subtitles, int currentSubtitle) :
|
||||
KListViewItem(list, after, mime, title, artist, album, track, length),
|
||||
m_url(url), m_year(year), m_genre(genre), m_subtitles(subtitles), m_currentSubtitle(currentSubtitle), isCurrent(false)
|
||||
{}
|
||||
|
||||
PlaylistItem::PlaylistItem(KListView* list, KListViewItem* after, const MRL& mrl) :
|
||||
KListViewItem(list, after, mrl.mime(), mrl.title(), mrl.artist(), mrl.album(),
|
||||
mrl.track(), mrl.length().toString("h:mm:ss")), m_url(mrl.url()),
|
||||
m_year(mrl.year()), m_genre(mrl.genre()),
|
||||
m_subtitles(mrl.subtitleFiles()), m_currentSubtitle(mrl.currentSubtitle()), isCurrent(false)
|
||||
{}
|
||||
|
||||
PlaylistItem::~PlaylistItem() {}
|
||||
|
||||
MRL PlaylistItem::toMRL() const
|
||||
{
|
||||
return MRL(url(), title(), stringToTime(length()), mime(), artist(), album(), track(), year(), genre(), QString::null, subtitles(), currentSubtitle());
|
||||
}
|
||||
|
||||
const QString& PlaylistItem::url() const
|
||||
{
|
||||
return m_url;
|
||||
}
|
||||
|
||||
QString PlaylistItem::mime() const
|
||||
{
|
||||
return this->text(MIME_COLUMN);
|
||||
}
|
||||
|
||||
QString PlaylistItem::title() const
|
||||
{
|
||||
return this->text(TITLE_COLUMN);
|
||||
}
|
||||
|
||||
QString PlaylistItem::artist() const
|
||||
{
|
||||
return this->text(ARTIST_COLUMN);
|
||||
}
|
||||
|
||||
QString PlaylistItem::album() const
|
||||
{
|
||||
return this->text(ALBUM_COLUMN);
|
||||
}
|
||||
|
||||
QString PlaylistItem::track() const
|
||||
{
|
||||
return this->text(TRACK_COLUMN);
|
||||
}
|
||||
|
||||
QString PlaylistItem::year() const
|
||||
{
|
||||
return m_year;
|
||||
}
|
||||
|
||||
QString PlaylistItem::genre() const
|
||||
{
|
||||
return m_genre;
|
||||
}
|
||||
|
||||
QString PlaylistItem::length() const
|
||||
{
|
||||
return this->text(LENGTH_COLUMN);
|
||||
}
|
||||
|
||||
const QStringList& PlaylistItem::subtitles() const
|
||||
{
|
||||
return m_subtitles;
|
||||
}
|
||||
|
||||
int PlaylistItem::currentSubtitle() const
|
||||
{
|
||||
return m_currentSubtitle;
|
||||
}
|
||||
|
||||
void PlaylistItem::setUrl(const QString& url)
|
||||
{
|
||||
m_url = url;
|
||||
}
|
||||
|
||||
void PlaylistItem::setMime(const QString& mime)
|
||||
{
|
||||
this->setText(MIME_COLUMN, mime);
|
||||
}
|
||||
|
||||
void PlaylistItem::setTitle(const QString& title)
|
||||
{
|
||||
this->setText(TITLE_COLUMN, title);
|
||||
}
|
||||
|
||||
void PlaylistItem::setArtist(const QString& artist)
|
||||
{
|
||||
this->setText(ARTIST_COLUMN, artist);
|
||||
}
|
||||
|
||||
void PlaylistItem::setAlbum(const QString& album)
|
||||
{
|
||||
this->setText(ALBUM_COLUMN, album);
|
||||
}
|
||||
|
||||
void PlaylistItem::setTrack(const QString& track)
|
||||
{
|
||||
this->setText(TRACK_COLUMN, track);
|
||||
}
|
||||
|
||||
void PlaylistItem::setYear(const QString& year)
|
||||
{
|
||||
m_year = year;
|
||||
}
|
||||
|
||||
void PlaylistItem::setGenre(const QString& genre)
|
||||
{
|
||||
m_genre = genre;
|
||||
}
|
||||
|
||||
void PlaylistItem::setLength(const QString& length)
|
||||
{
|
||||
this->setText(LENGTH_COLUMN, length);
|
||||
}
|
||||
|
||||
void PlaylistItem::setSubtitles(const QStringList& subs)
|
||||
{
|
||||
m_subtitles = subs;
|
||||
}
|
||||
|
||||
void PlaylistItem::addSubtitle(const QString& sub)
|
||||
{
|
||||
/* This will add subtitle & set it to the current one */
|
||||
for (uint i=0; i < m_subtitles.count(); i++) {
|
||||
if (m_subtitles[i] == sub) {
|
||||
m_currentSubtitle = i;
|
||||
return;
|
||||
}
|
||||
}
|
||||
m_subtitles.append(sub);
|
||||
m_currentSubtitle = m_subtitles.count()-1;
|
||||
}
|
||||
|
||||
void PlaylistItem::setCurrentSubtitle(int sub)
|
||||
{
|
||||
m_currentSubtitle = sub;
|
||||
}
|
||||
|
||||
QTime PlaylistItem::stringToTime(const QString& timeString)
|
||||
{
|
||||
int sec = 0;
|
||||
bool ok = false;
|
||||
QStringList tokens = QStringList::split(':',timeString);
|
||||
|
||||
sec += tokens[0].toInt(&ok)*3600; //hours
|
||||
sec += tokens[1].toInt(&ok)*60; //minutes
|
||||
sec += tokens[2].toInt(&ok); //secs
|
||||
|
||||
if (ok)
|
||||
return QTime().addSecs(sec);
|
||||
else
|
||||
return QTime();
|
||||
}
|
||||
|
||||
int PlaylistItem::compare(QListViewItem *i, int col, bool ascending ) const
|
||||
{
|
||||
PlaylistItem* p = dynamic_cast<PlaylistItem*>(i);
|
||||
if (!p)
|
||||
return QListViewItem::compare(i, col, ascending);
|
||||
|
||||
//if both strings are empty, sort by filename
|
||||
if (text(col).isEmpty() && i->text(col).isEmpty())
|
||||
return -url().compare(p->url());
|
||||
|
||||
bool ok;
|
||||
int track1, track2 = 0;
|
||||
track1 = track().toInt(&ok);
|
||||
if (ok)
|
||||
track2 = p->track().toInt(&ok);
|
||||
|
||||
if (col == TRACK_COLUMN)
|
||||
{
|
||||
if (ok)
|
||||
return (track2 - track1);
|
||||
else
|
||||
return QListViewItem::compare(i, col, ascending);
|
||||
}
|
||||
else
|
||||
{
|
||||
int result = QListViewItem::compare(i, col, ascending);
|
||||
|
||||
//if artists are equal, compare albums
|
||||
if ((col == ARTIST_COLUMN) && (result == 0))
|
||||
{
|
||||
result = QListViewItem::compare(i, ALBUM_COLUMN, ascending);
|
||||
if (!ascending)
|
||||
result = -result;
|
||||
}
|
||||
|
||||
//if strings are equal, sort by track number or filename
|
||||
if (result == 0)
|
||||
{
|
||||
int diff;
|
||||
if (ok)
|
||||
diff = track1 - track2;
|
||||
else
|
||||
diff = url().compare(p->url());
|
||||
|
||||
if (ascending)
|
||||
return diff;
|
||||
else
|
||||
return -diff;
|
||||
}
|
||||
else
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
void PlaylistItem::setPlaying(bool playing)
|
||||
{
|
||||
isCurrent = playing;
|
||||
}
|
||||
|
||||
void PlaylistItem::paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int align)
|
||||
{
|
||||
if (isCurrent)
|
||||
{
|
||||
QColorGroup colorGroup = cg;
|
||||
|
||||
QColor base = colorGroup.base();
|
||||
QColor selection = colorGroup.highlight();
|
||||
|
||||
int r = (base.red() + selection.red()) / 2;
|
||||
int b = (base.blue() + selection.blue()) / 2;
|
||||
int g = (base.green() + selection.green()) / 2;
|
||||
|
||||
QColor c(r, g, b);
|
||||
|
||||
colorGroup.setColor(QColorGroup::Base, c);
|
||||
QListViewItem::paintCell(p, colorGroup, column, width, align);
|
||||
}
|
||||
else
|
||||
return KListViewItem::paintCell(p, cg, column, width, align);
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
/*
|
||||
* playlistitem.h - a self-displayable item for kaffeine's playlist
|
||||
*
|
||||
* Copyright (C) 2004-2005 Giorgos Gousios
|
||||
* Copyright (C) 2004-2005 Jürgen Kofler <kaffeine@gmx.net>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 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 PLAYLISTITEM_H
|
||||
#define PLAYLISTITEM_H
|
||||
|
||||
#include <klistview.h>
|
||||
|
||||
#define MIME_COLUMN 0
|
||||
#define TITLE_COLUMN 1
|
||||
#define ARTIST_COLUMN 2
|
||||
#define ALBUM_COLUMN 3
|
||||
#define TRACK_COLUMN 4
|
||||
#define LENGTH_COLUMN 5
|
||||
|
||||
class QTime;
|
||||
class QString;
|
||||
class QStringList;
|
||||
class MRL;
|
||||
|
||||
class PlaylistItem : public KListViewItem
|
||||
{
|
||||
|
||||
public:
|
||||
PlaylistItem(KListView *list, KListViewItem *after, const QString& url, const QString& mime, const QString& title,
|
||||
const QString& length = QString::null, const QString& artist = QString::null, const QString& album = QString::null,
|
||||
const QString& track = QString::null, const QString& year = QString::null, const QString& genre = QString::null,
|
||||
const QStringList& subtitles = QStringList(), int currentSubtitle = -1);
|
||||
PlaylistItem(KListView* list, KListViewItem* after, const MRL&);
|
||||
virtual ~PlaylistItem();
|
||||
|
||||
MRL toMRL() const;
|
||||
|
||||
const QString& url() const;
|
||||
QString mime() const;
|
||||
QString title() const;
|
||||
QString artist() const;
|
||||
QString album() const;
|
||||
QString track() const;
|
||||
QString year() const;
|
||||
QString genre() const;
|
||||
QString length() const;
|
||||
const QStringList& subtitles() const;
|
||||
int currentSubtitle() const;
|
||||
|
||||
void setUrl(const QString&);
|
||||
void setMime(const QString&);
|
||||
void setTitle(const QString&);
|
||||
void setArtist(const QString&);
|
||||
void setAlbum(const QString&);
|
||||
void setTrack(const QString&);
|
||||
void setYear(const QString&);
|
||||
void setGenre(const QString&);
|
||||
void setLength(const QString&);
|
||||
void setSubtitles(const QStringList&);
|
||||
void addSubtitle(const QString&);
|
||||
void setCurrentSubtitle(int);
|
||||
|
||||
//reimplement to fix track order
|
||||
int compare( QListViewItem *i, int col, bool ascending ) const;
|
||||
|
||||
void setPlaying(bool playing);
|
||||
virtual void paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int align);
|
||||
|
||||
private:
|
||||
static QTime stringToTime(const QString&);
|
||||
QString m_url;
|
||||
QString m_year;
|
||||
QString m_genre;
|
||||
QStringList m_subtitles;
|
||||
int m_currentSubtitle;
|
||||
bool isCurrent;
|
||||
};
|
||||
|
||||
#endif /* PLAYLISTITEM_H */
|
@ -0,0 +1,347 @@
|
||||
/*
|
||||
* urllistview.cpp
|
||||
*
|
||||
* Copyright (C) 2003-2005 Jürgen Kofler <kaffeine@gmx.net>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 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 <kglobal.h>
|
||||
#include <kiconloader.h>
|
||||
#include <klocale.h>
|
||||
#include <kmessagebox.h>
|
||||
#include <kdebug.h>
|
||||
#include <kurl.h>
|
||||
#include <kglobalsettings.h>
|
||||
#include <kfiledialog.h>
|
||||
#include <kpopupmenu.h>
|
||||
|
||||
#include <qfontmetrics.h>
|
||||
#include <qdragobject.h>
|
||||
|
||||
#include "mrl.h"
|
||||
#include "playlistitem.h"
|
||||
#include "urllistview.h"
|
||||
#include "urllistview.moc"
|
||||
|
||||
|
||||
UrlListView::UrlListView(QWidget *parent, const char *name ) : KListView(parent,name),
|
||||
m_listCleared(true), m_itemOfContextMenu(NULL)
|
||||
{
|
||||
m_contextMenu = new KPopupMenu(this);
|
||||
m_contextMenu->insertItem(KGlobal::iconLoader()->loadIconSet("player_play", KIcon::Small), i18n("Play"), this, SLOT(slotPlayItem()));
|
||||
m_contextMenu->insertItem(i18n("Play Next/Add to Queue"), this, SLOT(slotPlayNext()));
|
||||
m_contextMenu->insertSeparator();
|
||||
|
||||
m_contextMenu->insertItem(KGlobal::iconLoader()->loadIconSet("editcut", KIcon::Small), i18n("C&ut"), this, SIGNAL(signalCut()), CTRL+Key_X);
|
||||
m_contextMenu->insertItem(KGlobal::iconLoader()->loadIconSet("editcopy", KIcon::Small), i18n("&Copy"), this, SIGNAL(signalCopy()), CTRL+Key_C);
|
||||
m_contextMenu->insertItem(KGlobal::iconLoader()->loadIconSet("editpaste", KIcon::Small), i18n("&Paste"), this, SIGNAL(signalPaste()), CTRL+Key_V);
|
||||
m_contextMenu->insertItem(i18n("Select &All"), this, SIGNAL(signalSelectAll()), CTRL+Key_A);
|
||||
m_contextMenu->insertItem(i18n("Create Playlist From Selected"), this, SIGNAL(signalPlaylistFromSelected()));
|
||||
m_contextMenu->insertSeparator();
|
||||
m_contextMenu->insertItem(KGlobal::iconLoader()->loadIconSet("indent", KIcon::Small), i18n("Add Sub&title..."), this, SLOT(slotAddSubtitle()),QKeySequence(),100 );
|
||||
m_contextMenu->insertSeparator();
|
||||
m_contextMenu->insertItem(KGlobal::iconLoader()->loadIconSet("edit", KIcon::Small), i18n("&Edit Title"), this, SLOT(slotEditTitle()));
|
||||
m_contextMenu->insertItem(KGlobal::iconLoader()->loadIconSet("info", KIcon::Small), i18n("&Info"), this, SLOT(slotShowInfo()));
|
||||
|
||||
/* width of the "length"-column */
|
||||
QFontMetrics met(KGlobalSettings::generalFont());
|
||||
int w1 = met.width(i18n("Length"));
|
||||
int w2 = met.width("5:55:55") + 2;
|
||||
|
||||
m_column5Width = w1 > w2 ? w1 : w2;
|
||||
m_column5Width += 30;
|
||||
|
||||
/* width of the "track"-column */
|
||||
w1 = met.width(i18n("Track"));
|
||||
w2 = met.width("9999") + 2;
|
||||
|
||||
m_column4Track = w1 > w2 ? w1 : w2;
|
||||
m_column4Track += 36;
|
||||
|
||||
connect(this, SIGNAL(contextMenuRequested(QListViewItem*, const QPoint&, int)),
|
||||
this, SLOT(slotShowContextMenu(QListViewItem*, const QPoint&, int)));
|
||||
connect(this, SIGNAL(currentChanged(QListViewItem*)),
|
||||
this, SLOT(slotCurrentChanged(QListViewItem*)));
|
||||
connect(this, SIGNAL(clicked( QListViewItem*, const QPoint&, int )),
|
||||
this, SLOT(slotClicked( QListViewItem*, const QPoint&, int )));
|
||||
}
|
||||
|
||||
UrlListView::~UrlListView()
|
||||
{
|
||||
}
|
||||
|
||||
bool UrlListView::acceptDrag(QDropEvent* event) const
|
||||
{
|
||||
return QUriDrag::canDecode(event) || QTextDrag::canDecode(event) || KListView::acceptDrag(event);
|
||||
}
|
||||
|
||||
QDragObject* UrlListView::dragObject()
|
||||
{
|
||||
// get selected items
|
||||
QPtrList<QListViewItem> selected;
|
||||
QStrList urlList;
|
||||
|
||||
selected = selectedItems();
|
||||
for (uint i = 0; i<selected.count(); i++)
|
||||
{
|
||||
urlList.append(dynamic_cast<PlaylistItem*>(selected.at(i))->url().ascii());
|
||||
}
|
||||
|
||||
return new QUriDrag(urlList, viewport());
|
||||
}
|
||||
|
||||
void UrlListView::resizeEvent(QResizeEvent* rev)
|
||||
{
|
||||
int width = contentsRect().width() - m_column5Width - m_column4Track - 69;
|
||||
setColumnWidth(0, 20); /* mime */
|
||||
setColumnWidth(1, ((width * 5 / 12) + 50)); /* title */
|
||||
setColumnWidth(2, (width * 3 / 12)); /* artist */
|
||||
setColumnWidth(3, (width * 4 / 12)); /* album */
|
||||
setColumnWidth(4, m_column4Track); /* track */
|
||||
setColumnWidth(5, m_column5Width); /* width of "length" column */
|
||||
|
||||
KListView::resizeEvent(rev);
|
||||
}
|
||||
|
||||
void UrlListView::clear()
|
||||
{
|
||||
m_listCleared = true;
|
||||
m_itemOfContextMenu = NULL;
|
||||
setSorting(-1);
|
||||
KListView::clear();
|
||||
}
|
||||
|
||||
void UrlListView::setCleared(bool cl)
|
||||
{
|
||||
m_listCleared = cl;
|
||||
}
|
||||
|
||||
bool UrlListView::getCleared() const /* was playlist cleared ? */
|
||||
{
|
||||
return m_listCleared;
|
||||
}
|
||||
|
||||
/********** context menu **********/
|
||||
|
||||
void UrlListView::slotShowContextMenu(QListViewItem* item, const QPoint& pos, int)
|
||||
{
|
||||
if (!item)
|
||||
{
|
||||
m_itemOfContextMenu = NULL;
|
||||
disableSubEntry();
|
||||
}
|
||||
else
|
||||
{
|
||||
m_itemOfContextMenu = dynamic_cast<PlaylistItem *>(item);
|
||||
if (m_itemOfContextMenu->mime().contains("video"))
|
||||
enableSubEntry();
|
||||
else
|
||||
disableSubEntry();
|
||||
}
|
||||
|
||||
m_contextMenu->popup(pos);
|
||||
}
|
||||
|
||||
void UrlListView::slotPlayItem()
|
||||
{
|
||||
if (m_itemOfContextMenu)
|
||||
emit signalPlayItem(m_itemOfContextMenu);
|
||||
}
|
||||
|
||||
void UrlListView::slotPlayNext()
|
||||
{
|
||||
if (m_itemOfContextMenu)
|
||||
emit signalAddToQueue(m_itemOfContextMenu->toMRL());
|
||||
}
|
||||
|
||||
void UrlListView::slotEditTitle()
|
||||
{
|
||||
if (m_itemOfContextMenu)
|
||||
{
|
||||
m_itemOfContextMenu->setRenameEnabled(1, true);
|
||||
m_itemOfContextMenu->startRename(1);
|
||||
m_itemOfContextMenu->setRenameEnabled(1, false);
|
||||
}
|
||||
}
|
||||
|
||||
//Pretty print item info
|
||||
void UrlListView::slotShowInfo()
|
||||
{
|
||||
if (!m_itemOfContextMenu)
|
||||
return;
|
||||
|
||||
QString num;
|
||||
num = num.setNum(childCount());
|
||||
QString info = "<qt><table width=\"90%\">";
|
||||
info = info + "<tr><td colspan=\"2\"><center><b>" + m_itemOfContextMenu->title() + "</b></center></td></tr>";
|
||||
info = info + "<tr><td><b>" + i18n("URL")+ ":</b></td><td>" + m_itemOfContextMenu->url() + "</td></tr>";
|
||||
info = info + "<tr><td><b>" + i18n("Artist") + ":</b></td><td>" + m_itemOfContextMenu->artist() + "</td></td>";
|
||||
info = info + "<tr><td><b>" + i18n("Album") + ":</b></td><td>" + m_itemOfContextMenu->album() + "</td></td>";
|
||||
info = info + "<tr><td><b>" + i18n("Track") + ":</b></td><td>" + m_itemOfContextMenu->track() + "</td></td>";
|
||||
info = info + "<tr><td><b>" + i18n("Year") + ":</b></td><td>" + m_itemOfContextMenu->year() + "</td></td>";
|
||||
info = info + "<tr><td><b>" + i18n("Genre") + ":</b></td><td>" + m_itemOfContextMenu->genre() + "</td></td>";
|
||||
info = info + "<tr><td><b>" + i18n("Length") + ":</b></td><td>" + m_itemOfContextMenu->length() + "</td></tr>";
|
||||
if(!m_itemOfContextMenu->subtitles().isEmpty())
|
||||
{
|
||||
info = info + "<tr><td><b>" + i18n("Subtitles") + ":</b></td><td>";
|
||||
|
||||
for(uint i = 0; i < m_itemOfContextMenu->subtitles().count(); i++ )
|
||||
{
|
||||
info = info + ""+m_itemOfContextMenu->subtitles()[i];
|
||||
if(m_itemOfContextMenu->currentSubtitle() == (int)i)
|
||||
info = info + "<small> ("+i18n("in use")+")</small>";
|
||||
info = info + "<br>";
|
||||
}
|
||||
info = info + "</ul></td></tr></table></qt>";
|
||||
}
|
||||
|
||||
KMessageBox::information(this, info);
|
||||
}
|
||||
|
||||
void UrlListView::slotClicked(QListViewItem*, const QPoint&, int)
|
||||
{
|
||||
/*if ( (item) && (col == 3) )
|
||||
{
|
||||
m_itemOfContextMenu = dynamic_cast<PlaylistItem *>(item);
|
||||
if (!m_itemOfContextMenu) return;
|
||||
slotShowInfo();
|
||||
} */
|
||||
}
|
||||
|
||||
#include <qdom.h>
|
||||
#include <kio/job.h>
|
||||
|
||||
void UrlListView::slotAddSubtitle()
|
||||
{
|
||||
/*QDomDocument reqdoc;
|
||||
|
||||
QDomElement methodCall = reqdoc.createElement( "methodCall" );
|
||||
QDomElement methodName = reqdoc.createElement( "methodName" );
|
||||
QDomText methodNameValue = reqdoc.createTextNode( "LogIn" );
|
||||
methodName.appendChild( methodNameValue );
|
||||
methodCall.appendChild( methodName );
|
||||
reqdoc.appendChild( methodCall );
|
||||
|
||||
QDomElement params = reqdoc.createElement( "params" );
|
||||
|
||||
QDomElement param1 = reqdoc.createElement( "param" );
|
||||
QDomElement value1 = reqdoc.createElement( "value" );
|
||||
QDomElement type1 = reqdoc.createElement( "string" );
|
||||
QDomText param1Value = reqdoc.createTextNode( "" );
|
||||
type1.appendChild( param1Value );
|
||||
value1.appendChild( type1 );
|
||||
param1.appendChild( value1 );
|
||||
params.appendChild( param1 );
|
||||
|
||||
QDomElement param2 = reqdoc.createElement( "param" );
|
||||
QDomElement value2 = reqdoc.createElement( "value" );
|
||||
QDomElement type2 = reqdoc.createElement( "string" );
|
||||
QDomText param2Value = reqdoc.createTextNode( "" );
|
||||
type2.appendChild( param2Value );
|
||||
value2.appendChild( type2 );
|
||||
param2.appendChild( value2 );
|
||||
params.appendChild( param2 );
|
||||
|
||||
QDomElement param3 = reqdoc.createElement( "param" );
|
||||
QDomElement value3 = reqdoc.createElement( "value" );
|
||||
QDomElement type3 = reqdoc.createElement( "string" );
|
||||
QDomText param3Value = reqdoc.createTextNode( "en" );
|
||||
type3.appendChild( param3Value );
|
||||
value3.appendChild( type3 );
|
||||
param3.appendChild( value3 );
|
||||
params.appendChild( param3 );
|
||||
|
||||
methodCall.appendChild( params );
|
||||
|
||||
const QString xmlRequest = "<?xml version=\"1.0\"?>\n" + reqdoc.toString();
|
||||
|
||||
QByteArray postData;
|
||||
QDataStream stream( postData, IO_WriteOnly );
|
||||
stream.writeRawBytes( xmlRequest.utf8(), xmlRequest.utf8().length() );
|
||||
|
||||
openSubJobBuf = QByteArray();
|
||||
|
||||
openSubJob = KIO::http_post( "http://test.opensubtitles.org/xml-rpc", postData, false );
|
||||
openSubJob->addMetaData( "content-type", "Content-Type: text/xml" );
|
||||
|
||||
connect( openSubJob, SIGNAL(result(KIO::Job*)), this, SLOT(openSubResult(KIO::Job*)) );
|
||||
connect( openSubJob, SIGNAL(data(KIO::Job*,const QByteArray&) ), this, SLOT(openSubData(KIO::Job*,
|
||||
const QByteArray&)) );
|
||||
|
||||
kdDebug() << "\n\n" << xmlRequest << "\n\n" << endl;*/
|
||||
|
||||
|
||||
if (!m_itemOfContextMenu)
|
||||
return;
|
||||
|
||||
QString openURL = m_itemOfContextMenu->url();
|
||||
QString subtitleURL = KFileDialog::getOpenURL(openURL,
|
||||
i18n("*.smi *.srt *.sub *.txt *.ssa *.asc|Subtitle Files\n*.*|All Files"),
|
||||
0, i18n("Select Subtitle File")).path();
|
||||
if(!(subtitleURL.isEmpty()) && !(m_itemOfContextMenu->subtitles().contains(subtitleURL)) && QFile::exists(subtitleURL))
|
||||
{
|
||||
m_itemOfContextMenu->addSubtitle(subtitleURL);
|
||||
emit signalPlayItem(m_itemOfContextMenu);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void UrlListView::openSubResult( KIO::Job* job )
|
||||
{
|
||||
if ( openSubJob!=job )
|
||||
return;
|
||||
if ( job->error() ) {
|
||||
kdDebug() << "OpenSubtiltes error : " << job->error() << endl;
|
||||
return;
|
||||
}
|
||||
|
||||
QDomDocument document;
|
||||
if ( !document.setContent( openSubJobBuf ) ) {
|
||||
kdDebug() << "Couldn't read similar artists response" << endl;
|
||||
return;
|
||||
}
|
||||
kdDebug() << "\n\n" << document.toString() << "\n\n" << endl;
|
||||
openSubJob = 0;
|
||||
}
|
||||
|
||||
void UrlListView::openSubData( KIO::Job* job, const QByteArray& data )
|
||||
{
|
||||
if ( openSubJob != job )
|
||||
return;
|
||||
|
||||
unsigned int bufsize = openSubJobBuf.size();
|
||||
openSubJobBuf.resize( bufsize + data.size() );
|
||||
memcpy( openSubJobBuf.data()+bufsize, data.data(), data.size() );
|
||||
}
|
||||
|
||||
|
||||
void UrlListView::slotCurrentChanged(QListViewItem * item)
|
||||
{
|
||||
if(item == 0) //All items deleted
|
||||
m_itemOfContextMenu = NULL;
|
||||
else
|
||||
m_itemOfContextMenu = dynamic_cast<PlaylistItem *>(item);
|
||||
}
|
||||
|
||||
void UrlListView::enableSubEntry()
|
||||
{
|
||||
m_contextMenu->setItemEnabled(100, true);
|
||||
}
|
||||
|
||||
void UrlListView::disableSubEntry()
|
||||
{
|
||||
m_contextMenu->setItemEnabled(100, false);
|
||||
}
|
@ -0,0 +1,92 @@
|
||||
/*
|
||||
* urllistview.h
|
||||
*
|
||||
* Copyright (C) 2003-2005 Jürgen Kofler <kaffeine@gmx.net>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 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 URLLISTVIEW_H
|
||||
#define URLLISTVIEW_H
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <klistview.h>
|
||||
|
||||
class KPopupMenu;
|
||||
class QWidget;
|
||||
class QDragObject;
|
||||
class PlaylistItem;
|
||||
class MRL;
|
||||
class KIO::Job;
|
||||
|
||||
class UrlListView : public KListView
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
UrlListView(QWidget *parent=0, const char *name=0);
|
||||
~UrlListView();
|
||||
|
||||
void setCleared(bool);
|
||||
bool getCleared() const; /* was the playlist cleared or should we save it? */
|
||||
|
||||
public slots:
|
||||
virtual void clear(); /* reimplement slot */
|
||||
|
||||
signals:
|
||||
void signalPlayItem(QListViewItem* ); /* play selected in context menu */
|
||||
void signalCut();
|
||||
void signalCopy();
|
||||
void signalPaste();
|
||||
void signalSelectAll();
|
||||
void signalAddToQueue(MRL);
|
||||
void signalPlaylistFromSelected();
|
||||
|
||||
private slots:
|
||||
void slotShowContextMenu(QListViewItem*, const QPoint&, int);
|
||||
void slotCurrentChanged(QListViewItem *);
|
||||
void slotAddSubtitle();
|
||||
void slotShowInfo();
|
||||
void slotEditTitle();
|
||||
void slotPlayItem();
|
||||
void slotClicked(QListViewItem*, const QPoint&, int);
|
||||
void slotPlayNext();
|
||||
void openSubResult( KIO::Job* );
|
||||
void openSubData( KIO::Job*, const QByteArray& );
|
||||
|
||||
protected:
|
||||
virtual bool acceptDrag(QDropEvent* event) const;
|
||||
virtual void resizeEvent(QResizeEvent*);
|
||||
virtual QDragObject* dragObject();
|
||||
|
||||
private:
|
||||
void enableSubEntry();
|
||||
void disableSubEntry();
|
||||
|
||||
private:
|
||||
bool m_listCleared;
|
||||
int m_column5Width; /* width of the fifth column */
|
||||
int m_column4Track; /* width of the fourth column */
|
||||
|
||||
PlaylistItem* m_itemOfContextMenu;
|
||||
KPopupMenu* m_contextMenu;
|
||||
KIO::Job *openSubJob;
|
||||
QByteArray openSubJobBuf;
|
||||
|
||||
};
|
||||
|
||||
#endif /* URLLISTVIEW_H */
|
@ -0,0 +1,36 @@
|
||||
METASOURCES = AUTO
|
||||
|
||||
SUBDIRS = plugins .
|
||||
|
||||
noinst_LTLIBRARIES = libkaffeinedisc.la
|
||||
|
||||
noinst_HEADERS = cddb.h \
|
||||
disc.h \
|
||||
paranoia.h
|
||||
|
||||
INCLUDES = -I$(top_srcdir)/kaffeine/src/input/ \
|
||||
-I$(top_builddir)/kaffeine/src/input/ \
|
||||
-I$(top_srcdir)/kaffeine/src/ \
|
||||
-I$(top_srcdir)/kaffeine/src/player-parts/kaffeine-part \
|
||||
-I$(top_srcdir)/kaffeine/src/input/disc/plugins \
|
||||
$(all_includes)
|
||||
|
||||
libkaffeinedisc_la_SOURCES = disc.cpp \
|
||||
cddb.cpp \
|
||||
paranoia.cpp \
|
||||
paranoiasettings.ui
|
||||
|
||||
libkaffeinedisc_la_LDFLAGS = $(KDE_RPATH) \
|
||||
$(all_libraries) \
|
||||
-L$(top_srcdir)/kaffeine/src/input \
|
||||
-L$(top_srcdir)/kaffeine/src/input/disc/plugins
|
||||
|
||||
libkaffeinedisc_la_LIBADD = $(top_builddir)/kaffeine/src/input/libkaffeineinput.la \
|
||||
$(top_builddir)/kaffeine/src/player-parts/kaffeine-part/libkaffeinepart.la \
|
||||
$(top_builddir)/kaffeine/src/input/disc/plugins/libkaffeineaudioencoder.la \
|
||||
-lcdda_interface -lcdda_paranoia
|
||||
|
||||
# this is where the XML-GUI resource file goes
|
||||
shellrcdir = $(kde_datadir)/kaffeine
|
||||
shellrc_DATA = kaffeinedisc.rc
|
||||
|
@ -0,0 +1,572 @@
|
||||
/*
|
||||
* cddb.cpp
|
||||
*
|
||||
* Copyright (C) 2000 Michael Matz <matz@kde.org>
|
||||
*
|
||||
* 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
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
#include <qdir.h>
|
||||
#include <qtextstream.h>
|
||||
#include <qregexp.h>
|
||||
#include <qapplication.h>
|
||||
#include <qstring.h>
|
||||
#include <qcursor.h>
|
||||
#include <kdebug.h>
|
||||
#include <ksock.h>
|
||||
#include <kextsock.h>
|
||||
#include <klocale.h>
|
||||
#include <kinputdialog.h>
|
||||
|
||||
#include "cddb.h"
|
||||
#include "cddb.moc"
|
||||
|
||||
CDDB::CDDB() : ks(0), port(80), remote(false), save_local(false)
|
||||
{
|
||||
QString s = QDir::homeDirPath()+"/.cddb";
|
||||
cddb_dirs +=s;
|
||||
}
|
||||
|
||||
CDDB::~CDDB()
|
||||
{
|
||||
deinit();
|
||||
}
|
||||
|
||||
bool CDDB::set_server(const char *hostname, unsigned short int _port)
|
||||
{
|
||||
if (ks)
|
||||
{
|
||||
if (h_name == hostname && port == _port)
|
||||
return true;
|
||||
deinit();
|
||||
}
|
||||
remote = (hostname != 0) && (*hostname != 0);
|
||||
kdDebug(7101) << "CDDB: set_server, host=" << hostname << "port=" << _port << endl;
|
||||
if (remote)
|
||||
{
|
||||
ks = new KExtendedSocket(hostname, _port);
|
||||
if (ks->connect() < 0)
|
||||
{
|
||||
kdDebug(7101) << "CDDB: Can't connect!" << endl;
|
||||
delete ks;
|
||||
ks = 0;
|
||||
return false;
|
||||
}
|
||||
|
||||
h_name = hostname;
|
||||
port = _port;
|
||||
QCString r;
|
||||
readLine(r); // the server greeting
|
||||
writeLine("cddb hello kde-user blubb kio_audiocd 0.4");
|
||||
readLine(r);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CDDB::deinit()
|
||||
{
|
||||
if (ks)
|
||||
{
|
||||
writeLine("quit");
|
||||
QCString r;
|
||||
readLine(r);
|
||||
ks->close();
|
||||
}
|
||||
h_name.resize(0);
|
||||
port = 0;
|
||||
remote = false;
|
||||
ks = 0;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool CDDB::readLine(QCString& ret)
|
||||
{
|
||||
int read_length = 0;
|
||||
char small_b[128];
|
||||
//fd_set set;
|
||||
|
||||
ret.resize(0);
|
||||
while (read_length < 40000)
|
||||
{
|
||||
// Look for a \n in buf
|
||||
int ni = buf.find('\n');
|
||||
if (ni >= 0)
|
||||
{
|
||||
// Nice, so return this substring (without the \n),
|
||||
// and truncate buf accordingly
|
||||
ret = buf.left(ni);
|
||||
if (ret.length() && ret[ret.length()-1] == '\r')
|
||||
ret.resize(ret.length());
|
||||
buf.remove(0, ni+1);
|
||||
kdDebug(7101) << "CDDB: got `" << ret << "'" << endl;
|
||||
return true;
|
||||
}
|
||||
|
||||
// Try to refill the buffer
|
||||
ks->waitForMore(60 * 1000);
|
||||
ssize_t l = ks->readBlock(small_b, sizeof(small_b)-1);
|
||||
if (l <= 0)
|
||||
{
|
||||
// l==0 normally means fd got closed, but we really need a lineend
|
||||
return false;
|
||||
}
|
||||
small_b[l] = 0;
|
||||
read_length += l;
|
||||
buf += small_b;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CDDB::writeLine(const QCString& line)
|
||||
{
|
||||
const char *b = line.data();
|
||||
int l = line.length();
|
||||
kdDebug(7101) << "CDDB: send `" << line << "'" << endl;
|
||||
while (l)
|
||||
{
|
||||
ssize_t wl = ks->writeBlock(b, l);
|
||||
if (wl < 0 && errno != EINTR)
|
||||
return false;
|
||||
if (wl < 0)
|
||||
wl = 0;
|
||||
l -= wl;
|
||||
b += wl;
|
||||
}
|
||||
l = line.length();
|
||||
if (l && line.data()[l-1] != '\n')
|
||||
{
|
||||
char c = '\n';
|
||||
ssize_t wl;
|
||||
do {
|
||||
wl = ks->writeBlock(&c, 1);
|
||||
} while (wl <= 0 && errno == EINTR);
|
||||
if (wl<=0 && errno != EINTR)
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
unsigned int CDDB::get_discid(QValueList<int>& track_ofs)
|
||||
{
|
||||
unsigned int id = 0;
|
||||
int num_tracks = track_ofs.count() - 2;
|
||||
|
||||
// the last two track_ofs[] are disc begin and disc end
|
||||
|
||||
for (int i = num_tracks - 1; i >= 0; i--)
|
||||
{
|
||||
int n = track_ofs[i];
|
||||
n /= 75;
|
||||
while (n > 0)
|
||||
{
|
||||
id += n % 10;
|
||||
n /= 10;
|
||||
}
|
||||
}
|
||||
unsigned int l = track_ofs[num_tracks + 1];
|
||||
l -= track_ofs[num_tracks];
|
||||
l /= 75;
|
||||
id = ((id % 255) << 24) | (l << 8) | num_tracks;
|
||||
return id;
|
||||
}
|
||||
|
||||
static int get_code (const QCString &s)
|
||||
{
|
||||
bool ok;
|
||||
int code = s.left(3).toInt(&ok);
|
||||
if (!ok)
|
||||
code = -1;
|
||||
return code;
|
||||
}
|
||||
|
||||
static void parse_query_resp (const QCString& _r, QCString& catg, QCString& d_id, QCString& title)
|
||||
{
|
||||
QCString r = _r.stripWhiteSpace();
|
||||
int i = r.find(' ');
|
||||
if (i)
|
||||
{
|
||||
catg = r.left(i).stripWhiteSpace();
|
||||
r.remove(0, i+1);
|
||||
r = r.stripWhiteSpace();
|
||||
}
|
||||
i = r.find(' ');
|
||||
if (i)
|
||||
{
|
||||
d_id = r.left(i).stripWhiteSpace();
|
||||
r.remove(0, i+1);
|
||||
r = r.stripWhiteSpace();
|
||||
}
|
||||
title = r;
|
||||
}
|
||||
|
||||
QString CDDB::track(int i) const
|
||||
{
|
||||
if (i < 0 || i >= int(m_names.count()))
|
||||
return QString();
|
||||
return m_names[i].utf8();
|
||||
}
|
||||
|
||||
bool CDDB::parse_read_resp(QTextStream *stream, QTextStream *write_stream)
|
||||
{
|
||||
/* Note, that m_names and m_title should be empty */
|
||||
QCString end = ".";
|
||||
|
||||
/* Fill table, so we can index it below. */
|
||||
for (int i = 0; i < m_tracks; i++)
|
||||
{
|
||||
m_names.append("");
|
||||
}
|
||||
while (1)
|
||||
{
|
||||
QCString r;
|
||||
if (stream)
|
||||
{
|
||||
if (stream->atEnd())
|
||||
break;
|
||||
r = stream->readLine().latin1();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!readLine(r))
|
||||
return false;
|
||||
}
|
||||
/* Normally the "." is not saved into the local files, but be
|
||||
tolerant about this. */
|
||||
if (r == end)
|
||||
break;
|
||||
if (write_stream)
|
||||
*write_stream << r << endl;
|
||||
r = r.stripWhiteSpace();
|
||||
if (r.isEmpty() || r[0] == '#')
|
||||
continue;
|
||||
if (r.left(7) == "DTITLE=")
|
||||
{
|
||||
r.remove(0, 7);
|
||||
m_title += QString::fromLocal8Bit(r.stripWhiteSpace());
|
||||
}
|
||||
else if (r.left(6) == "TTITLE")
|
||||
{
|
||||
r.remove(0, 6);
|
||||
int e = r.find('=');
|
||||
if (e)
|
||||
{
|
||||
bool ok;
|
||||
int i = r.left(e).toInt(&ok);
|
||||
if (ok && i >= 0 && i < m_tracks)
|
||||
{
|
||||
r.remove(0, e+1);
|
||||
m_names[i] += QString::fromLocal8Bit(r);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* XXX We should canonicalize the strings ("\n" --> '\n' e.g.) */
|
||||
|
||||
int si = m_title.find(" / ");
|
||||
if (si > 0)
|
||||
{
|
||||
m_artist = m_title.left(si).stripWhiteSpace();
|
||||
m_title.remove(0, si+3);
|
||||
m_title = m_title.stripWhiteSpace();
|
||||
}
|
||||
|
||||
if (m_title.isEmpty())
|
||||
m_title = i18n("No Title");
|
||||
/*else
|
||||
m_title.replace(QRegExp("/"), "%2f");*/
|
||||
if (m_artist.isEmpty())
|
||||
m_artist = i18n("Unknown");
|
||||
/*else
|
||||
m_artist.replace(QRegExp("/"), "%2f");*/
|
||||
|
||||
kdDebug(7101) << "CDDB: found Title: `" << m_title << "'" << endl;
|
||||
for (int i = 0; i < m_tracks; i++)
|
||||
{
|
||||
if (m_names[i].isEmpty())
|
||||
m_names[i] += i18n("Track %1").arg(i);
|
||||
m_names[i].replace(QRegExp("/"), "%2f");
|
||||
kdDebug(7101) << "CDDB: found Track " << i+1 << ": `" << m_names[i]
|
||||
<< "'" << endl;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void CDDB::add_cddb_dirs(const QStringList& list)
|
||||
{
|
||||
QString s = QDir::homeDirPath()+"/.cddb";
|
||||
|
||||
cddb_dirs = list;
|
||||
if (cddb_dirs.isEmpty())
|
||||
cddb_dirs += s;
|
||||
}
|
||||
|
||||
/* Locates and opens the local file corresponding to that discid.
|
||||
Returns TRUE, if file is found and ready for reading.
|
||||
Returns FALSE, if file isn't found. In this case ret_file is initialized
|
||||
with a QFile which resides in the first cddb_dir, and has a temp name
|
||||
(the ID + getpid()). You can open it for writing. */
|
||||
bool CDDB::searchLocal(unsigned int id, QFile *ret_file)
|
||||
{
|
||||
QDir dir;
|
||||
QString filename;
|
||||
filename = QString("%1").arg(id, 0, 16).rightJustify(8, '0');
|
||||
QStringList::ConstIterator it;
|
||||
for (it = cddb_dirs.begin(); it != cddb_dirs.end(); ++it)
|
||||
{
|
||||
dir.setPath(*it);
|
||||
if (!dir.exists())
|
||||
continue;
|
||||
/* First look in dir directly. */
|
||||
ret_file->setName (*it + "/" + filename);
|
||||
if (ret_file->exists() && ret_file->open(IO_ReadOnly))
|
||||
return true;
|
||||
/* And then in the subdirs of dir (representing the categories normally).
|
||||
*/
|
||||
const QFileInfoList *subdirs = dir.entryInfoList (QDir::Dirs);
|
||||
QFileInfoListIterator fiit(*subdirs);
|
||||
QFileInfo *fi;
|
||||
while ((fi = fiit.current()) != 0)
|
||||
{
|
||||
ret_file->setName (*it + "/" + fi->fileName() + "/" + filename);
|
||||
if (ret_file->exists() && ret_file->open(IO_ReadOnly))
|
||||
return true;
|
||||
++fiit;
|
||||
}
|
||||
}
|
||||
QString pid;
|
||||
pid.setNum(::getpid());
|
||||
ret_file->setName (cddb_dirs[0] + "/" + filename + "." + pid);
|
||||
/* Try to create the save location. */
|
||||
dir.setPath(cddb_dirs[0]);
|
||||
if (save_local && !dir.exists())
|
||||
{
|
||||
//dir = QDir::current();
|
||||
dir.mkdir(cddb_dirs[0]);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CDDB::queryCD(QValueList<int>& track_ofs)
|
||||
{
|
||||
int num_tracks = track_ofs.count() - 2;
|
||||
if (num_tracks < 1)
|
||||
return false;
|
||||
unsigned int id = get_discid(track_ofs);
|
||||
QFile file;
|
||||
bool local;
|
||||
|
||||
/* Already read this ID. */
|
||||
if (id == m_discid)
|
||||
return true;
|
||||
|
||||
emit cddbMessage(i18n("Searching local cddb entry ..."));
|
||||
qApp->processEvents();
|
||||
|
||||
/* First look for a local file. */
|
||||
local = searchLocal (id, &file);
|
||||
/* If we have no local file, and no remote connection, barf. */
|
||||
if (!local && (!remote || ks == 0))
|
||||
return false;
|
||||
|
||||
m_tracks = num_tracks;
|
||||
m_title = "";
|
||||
m_artist = "";
|
||||
m_names.clear();
|
||||
m_discid = id;
|
||||
if (local)
|
||||
{
|
||||
QTextStream stream(&file);
|
||||
/* XXX Hmm, what encoding is used by CDDB files? local? Unicode?
|
||||
Nothing? */
|
||||
//stream.setEncoding(QTextStream::Locale);
|
||||
parse_read_resp(&stream, 0);
|
||||
file.close();
|
||||
return true;
|
||||
}
|
||||
|
||||
emit cddbMessage(i18n("Searching remote cddb entry ..."));
|
||||
qApp->processEvents();
|
||||
|
||||
/* Remote CDDB query. */
|
||||
unsigned int length = track_ofs[num_tracks+1] - track_ofs[num_tracks];
|
||||
QCString q;
|
||||
q.sprintf("cddb query %08x %d", id, num_tracks);
|
||||
QCString num;
|
||||
for (int i = 0; i < num_tracks; i++)
|
||||
q += " " + num.setNum(track_ofs[i]);
|
||||
q += " " + num.setNum(length / 75);
|
||||
if (!writeLine(q))
|
||||
return false;
|
||||
QCString r;
|
||||
if (!readLine(r))
|
||||
return false;
|
||||
r = r.stripWhiteSpace();
|
||||
int code = get_code(r);
|
||||
if (code == 200)
|
||||
{
|
||||
QCString catg, d_id, title;
|
||||
QDir dir;
|
||||
QCString s, pid;
|
||||
|
||||
emit cddbMessage(i18n("Found exact match cddb entry ..."));
|
||||
qApp->processEvents();
|
||||
|
||||
/* an exact match */
|
||||
r.remove(0, 3);
|
||||
parse_query_resp(r, catg, d_id, title);
|
||||
kdDebug(7101) << "CDDB: found exact CD: category=" << catg << " DiscId="
|
||||
<< d_id << " Title=`" << title << "'" << endl;
|
||||
q = "cddb read " + catg + " " + d_id;
|
||||
if (!writeLine(q))
|
||||
return false;
|
||||
if (!readLine(r))
|
||||
return false;
|
||||
r = r.stripWhiteSpace();
|
||||
code = get_code(r);
|
||||
if (code != 210)
|
||||
return false;
|
||||
|
||||
pid.setNum(::getpid());
|
||||
s = cddb_dirs[0].latin1();
|
||||
//s = s + "/" +catg; // xine seems to not search in local subdirs
|
||||
dir.setPath( s );
|
||||
if ( !dir.exists() ) dir.mkdir( s );
|
||||
s = s+"/"+ d_id;
|
||||
file.setName( s );
|
||||
|
||||
if (save_local && file.open(IO_WriteOnly))
|
||||
{
|
||||
kdDebug(7101) << "CDDB: file name to save =" << file.name() << endl;
|
||||
QTextStream stream(&file);
|
||||
if (!parse_read_resp(0, &stream))
|
||||
{
|
||||
file.remove();
|
||||
return false;
|
||||
}
|
||||
file.close();
|
||||
/*QString newname (file.name());
|
||||
newname.truncate(newname.findRev('.'));
|
||||
if (QDir::current().rename(file.name(), newname)) {
|
||||
kdDebug(7101) << "CDDB: rename failed" << endl;
|
||||
file.remove();
|
||||
} */
|
||||
}
|
||||
else if (!parse_read_resp(0, 0))
|
||||
return false;
|
||||
}
|
||||
else if (code == 211)
|
||||
{
|
||||
// Found some close matches. We'll read the query response and ask the user
|
||||
// which one should be fetched from the server.
|
||||
QCString end = ".";
|
||||
QCString catg, d_id, title;
|
||||
QDir dir;
|
||||
QCString s, pid, first_match;
|
||||
QStringList disc_ids;
|
||||
|
||||
/* some close matches */
|
||||
//XXX may be try to find marker based on r
|
||||
emit cddbMessage(i18n("Found close cddb entry ..."));
|
||||
qApp->processEvents();
|
||||
|
||||
int i=0;
|
||||
while (1)
|
||||
{
|
||||
if (!readLine(r))
|
||||
return false;
|
||||
r = r.stripWhiteSpace();
|
||||
if (r == end)
|
||||
break;
|
||||
disc_ids.append(r);
|
||||
if (i == 0)
|
||||
first_match = r;
|
||||
i++;
|
||||
}
|
||||
|
||||
bool ok = false;
|
||||
|
||||
// We don't want to be thinking too much, do we?
|
||||
QApplication::restoreOverrideCursor();
|
||||
|
||||
// Oh, mylord, which match should I serve you?
|
||||
QString _answer = KInputDialog::getItem(i18n("CDDB Matches"), i18n("Several close CDDB entries found. Choose one:"),
|
||||
disc_ids, 0, false, &ok );
|
||||
QCString answer = _answer.utf8();
|
||||
|
||||
if (ok){ // Get user selected match
|
||||
parse_query_resp(answer, catg, d_id, title);
|
||||
}
|
||||
else{ // Get first match
|
||||
parse_query_resp(first_match, catg, d_id, title);
|
||||
}
|
||||
|
||||
// Now we can continue thinking...
|
||||
QApplication::setOverrideCursor( QCursor(Qt::WaitCursor) );
|
||||
|
||||
kdDebug(7101) << "CDDB: found close CD: category=" << catg << " DiscId="
|
||||
<< d_id << " Title=`" << title << "'" << endl;
|
||||
|
||||
// ... and forth we go as usual
|
||||
|
||||
q = "cddb read " + catg + " " + d_id;
|
||||
if (!writeLine(q))
|
||||
return false;
|
||||
if (!readLine(r))
|
||||
return false;
|
||||
r = r.stripWhiteSpace();
|
||||
code = get_code(r);
|
||||
if (code != 210)
|
||||
return false;
|
||||
|
||||
pid.setNum(::getpid());
|
||||
s = cddb_dirs[0].latin1();
|
||||
dir.setPath( s );
|
||||
if ( !dir.exists() ) dir.mkdir( s );
|
||||
s = s+"/"+ d_id;
|
||||
file.setName( s );
|
||||
|
||||
if (save_local && file.open(IO_WriteOnly))
|
||||
{
|
||||
kdDebug(7101) << "CDDB: file name to save =" << file.name() << endl;
|
||||
QTextStream stream(&file);
|
||||
if (!parse_read_resp(0, &stream))
|
||||
{
|
||||
file.remove();
|
||||
return false;
|
||||
}
|
||||
file.close();
|
||||
}
|
||||
else if (!parse_read_resp(0, 0))
|
||||
return false;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
/* 202 - no match found
|
||||
403 - Database entry corrupt
|
||||
409 - no handshake */
|
||||
kdDebug(7101) << "CDDB: query returned code " << code << endl;
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
@ -0,0 +1,77 @@
|
||||
/*
|
||||
* cddb.h
|
||||
*
|
||||
* Copyright (C) 2000 Michael Matz <matz@kde.org>
|
||||
*
|
||||
* 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 CDDB_H
|
||||
#define CDDB_H
|
||||
|
||||
#include <qcstring.h>
|
||||
#include <qvaluelist.h>
|
||||
#include <qstringlist.h>
|
||||
#include <qobject.h>
|
||||
|
||||
class QFile;
|
||||
class QTextStream;
|
||||
class KExtendedSocket;
|
||||
|
||||
class CDDB : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
CDDB();
|
||||
~CDDB();
|
||||
bool set_server(const char *hostname = 0, unsigned short int port = 0);
|
||||
void add_cddb_dirs(const QStringList& list);
|
||||
void save_cddb (bool save) { save_local = save; }
|
||||
unsigned int get_discid(QValueList<int>& track_ofs);
|
||||
bool queryCD(QValueList<int>& track_ofs);
|
||||
QString title() const { return m_title.utf8(); }
|
||||
QString artist() const { return m_artist.utf8(); }
|
||||
int trackCount() const { return m_tracks; }
|
||||
QString track(int i) const;
|
||||
|
||||
private:
|
||||
|
||||
bool readLine(QCString& s);
|
||||