Initial import of kasablanca 0.4.0.2

pull/2/head
Timothy Pearson 12 years ago
commit c3f8ee64e9

@ -0,0 +1 @@
Magnus Kulke <mkulke@magnusmachine>

@ -0,0 +1,340 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.

@ -0,0 +1,107 @@
[v 0.4.0.2]
-changed: changed the local dir deletion functionality for a
profane call to "rm".
-added: hour and minute is now taken into respect when
sorting by date
-fixed: finally files bigger than 2gb should be supported on
machines which support LFS
-fixed: crash when transfering files on a timed-out server
-changed: view of the transfered files
-added: a little fancyness and improvements
-fixed: percentage counting bug
-added: delete key shortcut bookmarks [r. stellingwerff]
-fixed: several bugs in ftplibpp
[v 0.4.0.1]
-changed: reduced cpu usage quite a bit again
-added: status tooltip for systray icon
-fixed: correct-pasv bug
-fixed: evil flaw in local delete method, added option to move
files into trash instead
-added: import gftp bookmarks [crissi]
-added: polish translation [tomwal]
-fixed: compilation error
-fixed: filesize issues, files bigger than 2GB should be
supported now
-changed: some changes to the bookmark editor
-changed: improved directory caching
-added: auto-completion in the lineedits
-changed: items are queued at the end of the queue list now
-changed: remember sorting preference when changing directories
-changed: report when ftp servers do not support encryption
-fixed: crash when trying to remove active item from queue
-fixed: compilation with gcc 2.95
[v 0.4]
-added german translation
-directory caching added
-added documentation and help buttons
-option to hide hidden files from view
-added bookmark current site option
-priority list functionality implemented
-bookmarks can be re-arranged now
-correct pasv replies can be set for single sites now
-added advanced settings to custom sites
-rewrote bookmark implementation
-representation of sitenames in statusbar
[v 0.4 pre3]
-configure log window font [bochi]
-added some explanations to the config and bookmark dialogs
-define standard directory in bookmarks
-support alternative fxp
-added systray support [bochi]
-added drag and drop movement in queue
-password is masked in log window
-added an option to correct wrong pasv replies
-fixed bug when cancelling rename
[v 0.4 pre2]
-fixed NASTY bug when fxp transfers failed.
-~.kde/share/apps/kasablanca/ is now used instead of ~.kasablanca/
-fixed problem with no remote directory appearing
-fixed flickering when queuing items
-speed improvements for handling large directories
-fixed bookmark handling
-kb/s display now reflects the current speed rather than the speed over all the file
-changed log colouring according to response codes
-added reasonable default settings
-fixed (rare) issue when 2 remote directories are loaded at the same time
-added .pot file for translations
-new settings on-queue-finished
-settings can be enable or disabled now
-on-file-exist setting added
[v 0.4 pre1b]
-fixed the problem with the ui files not working with qt 3.2
[v 0.4 pre1]
-moved to a multithreaded architecture
-reorganized and cleaned up code
-further kde integration
-new stable transfer code
-new queue handling
-implemented a skiplist
-made the colors of the logwindow configurable
-added support for local copy
-added recursive directory deletion
-overall stability improved
-fixed bugs
[v 0.3.1]
-added fxp support
-fixed spaces-in-filenames bug
-reduced cpu usage
-tons of minor and major fixes
-added tooltip help in dialogs
-fixed xfer/rename bug
-fixed tab order on dialogs
-big user interface changes. both browser windows can be switched on or offline

@ -0,0 +1,248 @@
# Doxyfile 1.3.5-KDevelop
#---------------------------------------------------------------------------
# Project related configuration options
#---------------------------------------------------------------------------
PROJECT_NAME = kasablanca.kdevelop
PROJECT_NUMBER = 0.3
OUTPUT_DIRECTORY =
OUTPUT_LANGUAGE = English
USE_WINDOWS_ENCODING = NO
BRIEF_MEMBER_DESC = YES
REPEAT_BRIEF = YES
ABBREVIATE_BRIEF = "The $name class" \
"The $name widget" \
"The $name file" \
is \
provides \
specifies \
contains \
represents \
a \
an \
the
ALWAYS_DETAILED_SEC = NO
INLINE_INHERITED_MEMB = NO
FULL_PATH_NAMES = NO
STRIP_FROM_PATH = /home/ahassler/kasablanca-0.3/debug/src/
SHORT_NAMES = NO
JAVADOC_AUTOBRIEF = NO
MULTILINE_CPP_IS_BRIEF = NO
DETAILS_AT_TOP = NO
INHERIT_DOCS = YES
DISTRIBUTE_GROUP_DOC = NO
TAB_SIZE = 8
ALIASES =
OPTIMIZE_OUTPUT_FOR_C = NO
OPTIMIZE_OUTPUT_JAVA = NO
SUBGROUPING = YES
#---------------------------------------------------------------------------
# Build related configuration options
#---------------------------------------------------------------------------
EXTRACT_ALL = NO
EXTRACT_PRIVATE = NO
EXTRACT_STATIC = NO
EXTRACT_LOCAL_CLASSES = YES
HIDE_UNDOC_MEMBERS = NO
HIDE_UNDOC_CLASSES = NO
HIDE_FRIEND_COMPOUNDS = NO
HIDE_IN_BODY_DOCS = NO
INTERNAL_DOCS = NO
CASE_SENSE_NAMES = YES
HIDE_SCOPE_NAMES = NO
SHOW_INCLUDE_FILES = YES
INLINE_INFO = YES
SORT_MEMBER_DOCS = YES
SORT_BRIEF_DOCS = NO
SORT_BY_SCOPE_NAME = NO
GENERATE_TODOLIST = YES
GENERATE_TESTLIST = YES
GENERATE_BUGLIST = YES
GENERATE_DEPRECATEDLIST= YES
ENABLED_SECTIONS =
MAX_INITIALIZER_LINES = 30
SHOW_USED_FILES = YES
#---------------------------------------------------------------------------
# configuration options related to warning and progress messages
#---------------------------------------------------------------------------
QUIET = NO
WARNINGS = YES
WARN_IF_UNDOCUMENTED = YES
WARN_IF_DOC_ERROR = YES
WARN_FORMAT = "$file:$line: $text"
WARN_LOGFILE =
#---------------------------------------------------------------------------
# configuration options related to the input files
#---------------------------------------------------------------------------
INPUT = /home/ahassler/kasablanca-0.3
FILE_PATTERNS = *.c \
*.cc \
*.cxx \
*.cpp \
*.c++ \
*.java \
*.ii \
*.ixx \
*.ipp \
*.i++ \
*.inl \
*.h \
*.hh \
*.hxx \
*.hpp \
*.h++ \
*.idl \
*.odl \
*.cs \
*.php \
*.php3 \
*.inc \
*.C \
*.H \
*.tlh \
*.diff \
*.patch \
*.moc \
*.xpm \
*.dox
RECURSIVE = yes
EXCLUDE =
EXCLUDE_SYMLINKS = NO
EXCLUDE_PATTERNS =
EXAMPLE_PATH =
EXAMPLE_PATTERNS = *
EXAMPLE_RECURSIVE = NO
IMAGE_PATH =
INPUT_FILTER =
FILTER_SOURCE_FILES = NO
#---------------------------------------------------------------------------
# configuration options related to source browsing
#---------------------------------------------------------------------------
SOURCE_BROWSER = NO
INLINE_SOURCES = NO
STRIP_CODE_COMMENTS = YES
REFERENCED_BY_RELATION = YES
REFERENCES_RELATION = YES
VERBATIM_HEADERS = YES
#---------------------------------------------------------------------------
# configuration options related to the alphabetical class index
#---------------------------------------------------------------------------
ALPHABETICAL_INDEX = NO
COLS_IN_ALPHA_INDEX = 5
IGNORE_PREFIX =
#---------------------------------------------------------------------------
# configuration options related to the HTML output
#---------------------------------------------------------------------------
GENERATE_HTML = YES
HTML_OUTPUT = html
HTML_FILE_EXTENSION = .html
HTML_HEADER =
HTML_FOOTER =
HTML_STYLESHEET =
HTML_ALIGN_MEMBERS = YES
GENERATE_HTMLHELP = NO
CHM_FILE =
HHC_LOCATION =
GENERATE_CHI = NO
BINARY_TOC = NO
TOC_EXPAND = NO
DISABLE_INDEX = NO
ENUM_VALUES_PER_LINE = 4
GENERATE_TREEVIEW = NO
TREEVIEW_WIDTH = 250
#---------------------------------------------------------------------------
# configuration options related to the LaTeX output
#---------------------------------------------------------------------------
GENERATE_LATEX = YES
LATEX_OUTPUT = latex
LATEX_CMD_NAME = latex
MAKEINDEX_CMD_NAME = makeindex
COMPACT_LATEX = NO
PAPER_TYPE = a4wide
EXTRA_PACKAGES =
LATEX_HEADER =
PDF_HYPERLINKS = NO
USE_PDFLATEX = NO
LATEX_BATCHMODE = NO
LATEX_HIDE_INDICES = NO
#---------------------------------------------------------------------------
# configuration options related to the RTF output
#---------------------------------------------------------------------------
GENERATE_RTF = NO
RTF_OUTPUT = rtf
COMPACT_RTF = NO
RTF_HYPERLINKS = NO
RTF_STYLESHEET_FILE =
RTF_EXTENSIONS_FILE =
#---------------------------------------------------------------------------
# configuration options related to the man page output
#---------------------------------------------------------------------------
GENERATE_MAN = NO
MAN_OUTPUT = man
MAN_EXTENSION = .3
MAN_LINKS = NO
#---------------------------------------------------------------------------
# configuration options related to the XML output
#---------------------------------------------------------------------------
GENERATE_XML = yes
XML_OUTPUT = xml
XML_SCHEMA =
XML_DTD =
XML_PROGRAMLISTING = YES
#---------------------------------------------------------------------------
# configuration options for the AutoGen Definitions output
#---------------------------------------------------------------------------
GENERATE_AUTOGEN_DEF = NO
#---------------------------------------------------------------------------
# configuration options related to the Perl module output
#---------------------------------------------------------------------------
GENERATE_PERLMOD = NO
PERLMOD_LATEX = NO
PERLMOD_PRETTY = YES
PERLMOD_MAKEVAR_PREFIX =
#---------------------------------------------------------------------------
# Configuration options related to the preprocessor
#---------------------------------------------------------------------------
ENABLE_PREPROCESSING = YES
MACRO_EXPANSION = NO
EXPAND_ONLY_PREDEF = NO
SEARCH_INCLUDES = YES
INCLUDE_PATH =
INCLUDE_FILE_PATTERNS =
PREDEFINED =
EXPAND_AS_DEFINED =
SKIP_FUNCTION_MACROS = YES
#---------------------------------------------------------------------------
# Configuration::additions related to external references
#---------------------------------------------------------------------------
TAGFILES =
GENERATE_TAGFILE =
ALLEXTERNALS = NO
EXTERNAL_GROUPS = YES
PERL_PATH = /usr/bin/perl
#---------------------------------------------------------------------------
# Configuration options related to the dot tool
#---------------------------------------------------------------------------
CLASS_DIAGRAMS = YES
HIDE_UNDOC_RELATIONS = YES
HAVE_DOT = NO
CLASS_GRAPH = YES
COLLABORATION_GRAPH = YES
UML_LOOK = NO
TEMPLATE_RELATIONS = NO
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
CALL_GRAPH = NO
GRAPHICAL_HIERARCHY = YES
DOT_IMAGE_FORMAT = png
DOT_PATH =
DOTFILE_DIRS =
MAX_DOT_GRAPH_WIDTH = 1024
MAX_DOT_GRAPH_HEIGHT = 1024
MAX_DOT_GRAPH_DEPTH = 1000
GENERATE_LEGEND = YES
DOT_CLEANUP = YES
#---------------------------------------------------------------------------
# Configuration::additions related to the search engine
#---------------------------------------------------------------------------
SEARCHENGINE = NO

@ -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,23 @@
SUBDIRS = $(TOPSUBDIRS)
$(top_srcdir)/configure.in: configure.in.in $(top_srcdir)/subdirs
cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common configure.in ;
$(top_srcdir)/subdirs:
cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common subdirs
$(top_srcdir)/acinclude.m4: $(top_srcdir)/admin/acinclude.m4.in $(top_srcdir)/admin/libtool.m4.in
@cd $(top_srcdir) && cat admin/acinclude.m4.in admin/libtool.m4.in > acinclude.m4
MAINTAINERCLEANFILES = subdirs configure.in acinclude.m4 configure.files
package-messages:
$(MAKE) -f $(top_srcdir)/admin/Makefile.common package-messages
$(MAKE) -C po merge
EXTRA_DIST = admin COPYING configure.in.in
dist-hook:
cd $(top_distdir) && perl admin/am_edit -padmin
cd $(top_distdir) && $(MAKE) -f admin/Makefile.common subdirs
METASOURCES = AUTO

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

@ -0,0 +1 @@

23
TODO

@ -0,0 +1,23 @@
[v 0.4.1]
-implement anti idle patches
-hammering
-configurable timer
-extend bookmarks
-add waiting window
-bookmark hotkeys
-reconnect
-make queues saveable
-add retries
-check freebsd patches
-add translations
-get rid of eventhandler stuff
-kb/s for fxp transfers
[v 0.5]
-auto-adjustment for the header
-add resume to fxp
-add owner and rights files to browser view
-choose port range
-extend the app to more than 2 sessions

File diff suppressed because it is too large Load Diff

928
aclocal.m4 vendored

@ -0,0 +1,928 @@
# generated automatically by aclocal 1.8.3 -*- Autoconf -*-
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
# 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.
# -*- Autoconf -*-
# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
# Generated from amversion.in; do not edit by hand.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 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.8"])
# 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.8.3])])
# AM_AUX_DIR_EXPAND
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# 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 Free Software Foundation, Inc.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# serial 6
# 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])])
# serial 7 -*- Autoconf -*-
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
# Free Software Foundation, Inc.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# 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
# (even with -Werror). So we grep stderr for any message
# that says an option was ignored.
if grep 'ignoring option' 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 Free Software Foundation, Inc.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
#serial 2
# _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
grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
# Extract the definition of DEP_FILES from the Makefile without
# running `make'.
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
test -z "$DEPDIR" && continue
# When using ansi2knr, U may be empty or an underscore; expand it
U=`sed -n 's/^U = //p' < "$mf"`
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
# 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 '
/^DEP_FILES = .*\\\\$/ {
s/^DEP_FILES = //
:loop
s/\\\\$//
p
n
/\\\\$/ b loop
p
}
/^DEP_FILES = / s/^DEP_FILES = //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"])
])
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# serial 7
# 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 -*-
# 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.
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
# Free Software Foundation, Inc.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# serial 11
# 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_MISSING_PROG(AMTAR, tar)
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([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])
# AM_PROG_INSTALL_SH
# ------------------
# Define $install_sh.
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
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)])
# -*- Autoconf -*-
# Copyright (C) 2003 Free Software Foundation, Inc.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# serial 1
# 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])])
# Check to see how 'make' treats includes. -*- Autoconf -*-
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# serial 2
# 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
])
# -*- Autoconf -*-
# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# serial 3
# 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
])
# AM_PROG_MKDIR_P
# ---------------
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# 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
# Keeping the `.' argument allows $(mkdir_p) to be used without
# argument. Indeed, we sometimes output rules like
# $(mkdir_p) $(somedir)
# where $(somedir) is conditionally defined.
# (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
# expensive solution, as it forces Make to start a sub-shell.)
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 Free Software Foundation, Inc.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# serial 2
# _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.
#
# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# serial 3
# 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)])
# AM_PROG_INSTALL_STRIP
# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
# 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, 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., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# 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])])
m4_include([acinclude.m4])

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

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

@ -0,0 +1,90 @@
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., 59 Temple Place - Suite 330,
dnl Boston, MA 02111-1307, 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(kasablanca, 0.4.0.2) dnl searches for some needed programs
KDE_SET_PREFIX
dnl generate the config header
AM_CONFIG_HEADER(config.h) dnl at the distribution this done
dnl Checks for programs.
AC_CHECK_COMPILERS
AC_ENABLE_SHARED(yes)
AC_ENABLE_STATIC(no)
KDE_PROG_LIBTOOL
dnl for NLS support. Call them in this order!
dnl WITH_NLS is for the po files
AM_KDE_WITH_NLS
KDE_USE_QT(3.2.0)
AC_PATH_KDE
dnl =======================================================
dnl FILE: configure.in.in
dnl =======================================================
#MIN_CONFIG(3.2.0)
dnl PACKAGE set before
AC_C_BIGENDIAN
AC_CHECK_KDEMAXPATHLEN
AC_CHECK_HEADER([openssl/ssl.h],[],[echo "ERROR: openssl headers not found"; exit;])
KDE_CREATE_SUBDIRSLIST
AC_CONFIG_FILES([ Makefile ])
AC_CONFIG_FILES([ doc/Makefile ])
AC_CONFIG_FILES([ doc/en/Makefile ])
AC_CONFIG_FILES([ po/Makefile ])
AC_CONFIG_FILES([ src/Makefile ])
AC_OUTPUT
if test "$all_tests" = "bad"; then
if test ! "$cache_file" = "/dev/null"; then
echo ""
echo "Please remove the file $cache_file after changing your setup"
echo "so that configure will find the changes next time."
echo ""
fi
else
echo ""
echo "Good - your configure finished. Start make now"
echo ""
fi

@ -0,0 +1,6 @@
#MIN_CONFIG(3.2.0)
AM_INIT_AUTOMAKE(kasablanca, 0.4.0.2)
AC_C_BIGENDIAN
AC_CHECK_KDEMAXPATHLEN
AC_CHECK_HEADER([openssl/ssl.h],[],[echo "ERROR: openssl headers not found"; exit;])

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

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

@ -0,0 +1,342 @@
<?xml version="1.0" ?>
<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.1.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [
<!ENTITY kasablanca "<application>kasablanca 0&#46;4</application>">
<!ENTITY kappname "&kasablanca;"><!-- Do *not* replace kappname-->
<!ENTITY package "kde-module"><!-- kdebase, kdeadmin, etc -->
<!ENTITY % addindex "IGNORE">
<!ENTITY % English "INCLUDE"><!-- change language only here -->
<!-- Do not define any other entities; instead, use the entities
from kde-genent.entities and $LANG/user.entities. -->
]>
<!-- kdoctemplate v0.8 October 1 1999
Minor update to "Credits and Licenses" section on August 24, 2000
Removed "Revision history" section on 22 January 2001
Changed to Installation/Help menu entities 18 October 2001
Other minor cleanup and changes 18 October 2001 -->
<!--
This template was designed by: David Rugge davidrugge@mindspring.com
with lots of help from: Eric Bischoff ebisch@cybercable.tm.fr
and Frederik Fouvry fouvry@sfs.nphil.uni-tuebingen.de
of the KDE DocBook team.
You may freely use this template for writing any sort of KDE documentation.
If you have any changes or improvements, please let us know.
Remember:
- in XML, the case of the <tags> and attributes is relevant ;
- also, quote all attributes.
Please don't forget to remove all these comments in your final documentation,
thanks ;-).
-->
<!-- ................................................................ -->
<!-- The language must NOT be changed here. -->
<book lang="&language;">
<!-- This header contains all of the meta-information for the document such
as Authors, publish date, the abstract, and Keywords -->
<bookinfo>
<title>The &kasablanca; Handbook</title>
<authorgroup>
<author>
<firstname></firstname>
<othername></othername>
<surname>Magnus Kulke</surname>
<affiliation>
<address><email>sikor_sxe&#64;radicalapproach.de</email></address>
</affiliation>
</author>
</authorgroup>
<!-- TRANS:ROLES_OF_TRANSLATORS -->
<copyright>
<year>1999</year>
<year>2004</year>
<holder>Magnus Kulke</holder>
</copyright>
<!-- Translators: put here the copyright notice of the translation -->
<!-- Put here the FDL notice. Read the explanation in fdl-notice.docbook
and in the FDL itself on how to use it. -->
<legalnotice>&FDLNotice;</legalnotice>
<!-- Date and version information of the documentation
Don't forget to include this last date and this last revision number, we
need them for translation coordination !
Please respect the format of the date (YYYY-MM-DD) and of the version
(V.MM.LL), it could be used by automation scripts.
Do NOT change these in the translation. -->
<date>2004-7-13</date>
<releaseinfo>0&#46;4</releaseinfo>
<!-- Abstract about this handbook -->
<abstract>
<para>
&kasablanca; is an ftp client, written in c++, using the kde libraries. among its features are
currently encryption (auth tls) support, fxp, site bookmarks, and queued transfers.
</para>
</abstract>
<!-- This is a set of Keywords for indexing by search engines.
Please at least include KDE, the KDE package it is in, the name
of your application, and a few relevant keywords. -->
<keywordset>
<keyword>KDE</keyword>
<keyword>kasablanca</keyword>
<keyword>nothing</keyword>
<keyword>nothing else</keyword>
</keywordset>
</bookinfo>
<!-- The contents of the documentation begin here. Label
each chapter so with the id attribute. This is necessary for two reasons: it
allows you to easily reference the chapter from other chapters of your
document, and if there is no ID, the name of the generated HTML files will vary
from time to time making it hard to manage for maintainers and for the CVS
system. Any chapter labelled (OPTIONAL) may be left out at the author's
discretion. Other chapters should not be left out in order to maintain a
consistent documentation style across all KDE apps. -->
<chapter id="Helpusing-kasablanca">
<title>Using &kasablanca;</title>
<!-- This chapter should tell the user how to use your app. You should use as
many sections (Chapter, Sect1, Sect3, etc...) as is necessary to fully document
your application. -->
<sect1 id="globalhelp">
<title>Global Settings</title>
<para>The settings which concern the behaviour of the whole application.</para>
<sect2>
<title>Skiplist</title>
<para>
Here you can enter a Regular Expression. Transfer items which match this Regular Expression are skipped. For example a value of "^\." excludes every entry beginning with "." from transfer.
</para>
</sect2>
<sect2>
<title>On queue finished</title>
<para>
This field can hold an executable and its arguments which will be run, when last item of in queue has finished transferring. For Example, on KDE desktops the entry "dcop ksmserver ksmserver logout 0 0 0" would shutdown the computer automatically.
</para>
</sect2>
<sect2>
<title>On file exists</title>
<para>
These Radio Buttons indicate how the application should proceed if a file to be transfered already exists on the destination. Usually the user is asked by the application how to proceed if this occurs, in case you aren't present during the transfer you can enable this feature.
</para>
</sect2>
<sect2>
<title>Priority List</title>
<para>
This Field contains a regular expression, which queues the items matching this regular expression before the items which don't. For example, ".sfv" would make the common checksum files with this fileending transfer first.
</para>
</sect2>
</sect1>
<sect1 id="ftphelp">
<title>Ftp Server Settings</title>
<para>The settings which can be applied to an ftp session are described here.</para>
<sect2>
<title>Name</title>
<para>
The ftp's name is entered here.
</para>
</sect2>
<sect2>
<title>Host:Port</title>
<para>
This information points to the the ftp server. HOST can either be a standard ip adress like 192.168.2.1 or a domain name. PORT is the port number on which the ftp server listens. In most cases this is 21. Both are seperated by a ":" character. A legit input would be "ftp.kde.org:21".
</para>
</sect2>
<sect2>
<title>Username</title>
<para>
The ftp Login Username. On open ftp servers you usually login using "anonymous".
</para>
</sect2>
<sect2>
<title>Password</title>
<para>
The user's password. Anonymous ftp servers ussually don't use passwords or accept passwords in the form of "user@emailaddress.com".
</para>
</sect2>
<sect2>
<title>Encryption</title>
<para>
There are 4 encryption levels available. Unencrypted leaves all traffic clear and without encryption. Most ftp servers allow only this mode. Level 1 encryption means that the traffic on the control connection is encrypted while data transfer remains clear. Level 2 is basically the same with the exception of directory information which is transfered on the data channel, but is encrypted too. Eventually Level 3 encrypts everything all communication and all data traffic.
</para>
</sect2>
<sect2>
<title>Mode</title>
<para>
The mode you are using for data transfer. This is quite important in case you're behind a firewall or a router. In these cases you depend on the passive mode, which makes the client connects to the ftp server for data transfer. Passive mode is the standard method today, while active mode is the old way to do data transfers, the client listens for the server to connect in active mode.
</para>
</sect2>
<sect2>
<title>Mode</title>
<para>
The mode you are using for data transfer. This is quite important in case you're behind a firewall or a router. In these cases you depend on the passive mode, which makes the client connects to the ftp server for data transfer. Passive mode is the standard method today, while active mode is the old way to do data transfers, the client listens for the server to connect in active mode.
</para>
</sect2>
<sect2>
<title>Default directory</title>
<para>
Here you can type in a path which kasablanca attempts to enter after login.
</para>
</sect2>
<sect2>
<title>Alternative fxp</title>
<para>
Some ftp servers have problems with either active or pasv mode, which is needed for fxp. Using alternative fxp might help in such cases.
</para>
</sect2>
<sect2>
<title>Correct pasv responses</title>
<para>
When ftp servers are behind a router (NAT) they sometimes send wrong pasv responses containing their local IP. This option changes the IP value in pasv responses to the IP you connected to (most likely the servers router).
</para>
</sect2>
</sect1>
</chapter>
<chapter id="credits">
<!-- Include credits for the programmers, documentation writers, and
contributors here. The license for your software should then be included below
the credits with a reference to the appropriate license file included in the KDE
distribution. -->
<title>Credits and License</title>
<para>
&kasablanca;
</para>
<para>
Program copyright 2004 Magnus Kulke <email>sikor_sxe&#64;radicalapproach.de</email>
</para>
<para>
Contributors:
<itemizedlist>
<listitem><para>Big Biff<email>bigbiff&#64;chunkyfilms.org</email></para>
</listitem>
<listitem><para>Stefan Bogner<email>bochi@online.ms</email></para>
</listitem>
</itemizedlist>
</para>
<para>
Documentation copyright 2004 Magnus Kulke <email>sikor_sxe&#64;radicalapproach.de</email>
</para>
<!-- TRANS:CREDIT_FOR_TRANSLATORS -->
&underFDL; <!-- FDL: do not remove -->
<!-- Determine which license your application is licensed under,
and delete all the remaining licenses below:
(NOTE: All documentation are licensed under the FDL,
regardless of what license the application uses) -->
&underGPL; <!-- GPL License -->
</chapter>
<appendix id="installation">
<title>Installation</title>
<sect1 id="getting-kasablanca">
<title>How to obtain &kasablanca;</title>
<para>
The most recent sources are available at <ulink url="http://kasablanca.berlios.de">http://kasablanca.berlios.de</ulink>.
</para>
<!-- This first entity contains boiler plate for applications that are
part of KDE CVS. You should remove it if you are releasing your
application -->
<para>
In order to use &kasablanca;, you need at least &kde; 3.2. a recent version of OpenSSL is
required also.
</para>
</sect1>
<sect1 id="requirements">
<title>Requirements</title>
<!--
List any special requirements for your application here. This should include:
.Libraries or other software that is not included in kdesupport,
kdelibs, or kdebase.
.Hardware requirements like amount of RAM, disk space, graphics card
capabilities, screen resolution, special expansion cards, etc.
.Operating systems the app will run on. If your app is designed only for a
specific OS, (you wrote a graphical LILO configurator for example) put this
information here.
-->
<para>
In order to use &kasablanca;, you need at least &kde; 3.2. A recent version of OpenSSL is
required also.
</para>
</sect1>
<sect1 id="compilation">
<title>Compilation and Installation</title>
<!-- This entity contains the boilerplate text for standard -->
<!-- compilation instructions. If your application requires any -->
<!-- special handling, remove it, and replace with your own text. -->
&install.compile.documentation;
</sect1>
</appendix>
&documentation.index;
</book>
<!--
Local Variables:
mode: sgml
sgml-minimize-attributes:nil
sgml-general-insert-case:lower
sgml-indent-step:0
sgml-indent-data:nil
End:
vim:tabstop=2:shiftwidth=2:expandtab
-->

@ -0,0 +1,201 @@
<?xml version = '1.0'?>
<kdevelop>
<general>
<author>Magnus Kulke</author>
<email>mkulke@magnusmachine</email>
<version>0.4.0.2</version>
<projectmanagement>KDevKDEAutoProject</projectmanagement>
<primarylanguage>C++</primarylanguage>
<keywords>
<keyword>C++</keyword>
<keyword>Code</keyword>
<keyword>Qt</keyword>
<keyword>KDE</keyword>
</keywords>
<projectdirectory>.</projectdirectory>
<absoluteprojectpath>false</absoluteprojectpath>
<description/>
<ignoreparts/>
<secondaryLanguages/>
</general>
<kdevautoproject>
<general>
<activetarget>src/kasablanca</activetarget>
<useconfiguration>debug</useconfiguration>
</general>
<run>
<mainprogram>src/kasablanca</mainprogram>
<directoryradio>executable</directoryradio>
<runarguments>
<kbftp/>
<kasablanca/>
</runarguments>
<customdirectory>/</customdirectory>
<programargs/>
<terminal>false</terminal>
<autocompile>true</autocompile>
<envvars/>
</run>
<configurations>
<optimized>
<builddir>optimized</builddir>
<ccompiler>kdevgccoptions</ccompiler>
<cxxcompiler>kdevgppoptions</cxxcompiler>
<f77compiler>kdevg77options</f77compiler>
<cxxflags>-O2 -g0</cxxflags>
</optimized>
<debug>
<configargs>--enable-debug=full --prefix=/opt/kde3</configargs>
<builddir>debug</builddir>
<ccompiler>kdevgccoptions</ccompiler>
<cxxcompiler>kdevgppoptions</cxxcompiler>
<f77compiler>kdevg77options</f77compiler>
<cxxflags>-O0 -g3</cxxflags>
<topsourcedir/>
<cppflags/>
<ldflags/>
<ccompilerbinary/>
<cxxcompilerbinary/>
<f77compilerbinary/>
<cflags/>
<f77flags/>
</debug>
<default>
<configargs>--prefix=/opt/kde3</configargs>
<builddir/>
<topsourcedir/>
<cppflags/>
<ldflags/>
<ccompiler>kdevgccoptions</ccompiler>
<cxxcompiler>kdevgppoptions</cxxcompiler>
<f77compiler>kdevg77options</f77compiler>
<ccompilerbinary/>
<cxxcompilerbinary/>
<f77compilerbinary/>
<cflags/>
<cxxflags/>
<f77flags/>
</default>
</configurations>
<make>
<envvars>
<envvar value="1" name="WANT_AUTOCONF_2_5" />
<envvar value="1" name="WANT_AUTOMAKE_1_6" />
</envvars>
<abortonerror>false</abortonerror>
<numberofjobs>1</numberofjobs>
<dontact>false</dontact>
<makebin/>
</make>
</kdevautoproject>
<kdevfileview>
<groups>
<group pattern="*.cpp;*.cxx;*.h" name="Sources" />
<group pattern="*.ui" name="User Interface" />
<group pattern="*.png" name="Icons" />
<group pattern="*.po;*.ts" name="Translations" />
<group pattern="*" name="Others" />
<hidenonprojectfiles>false</hidenonprojectfiles>
<hidenonlocation>false</hidenonlocation>
</groups>
<tree>
<hidepatterns>*.o,*.lo,CVS</hidepatterns>
<hidenonprojectfiles>false</hidenonprojectfiles>
<showvcsfields>false</showvcsfields>
</tree>
</kdevfileview>
<kdevdoctreeview>
<ignoretocs>
<toc>gtk</toc>
<toc>gnustep</toc>
<toc>python</toc>
<toc>php</toc>
<toc>perl</toc>
</ignoretocs>
<projectdoc>
<userdocDir>html/</userdocDir>
<apidocDir>html/</apidocDir>
</projectdoc>
<ignoreqt_xml/>
<ignoredoxygen/>
<ignorekdocs/>
<ignoredevhelp/>
</kdevdoctreeview>
<kdevdebugger>
<general>
<dbgshell>libtool</dbgshell>
<programargs/>
<gdbpath/>
<configGdbScript/>
<runShellScript/>
<runGdbScript/>
<breakonloadinglibs>true</breakonloadinglibs>
<separatetty>false</separatetty>
<floatingtoolbar>false</floatingtoolbar>
</general>
<display>
<staticmembers>false</staticmembers>
<demanglenames>true</demanglenames>
</display>
</kdevdebugger>
<kdevfilecreate>
<filetypes/>
<useglobaltypes>
<type ext="ui" />
<type ext="cpp" />
<type ext="h" />
</useglobaltypes>
</kdevfilecreate>
<kdevcppsupport>
<references/>
<codecompletion>
<includeGlobalFunctions>true</includeGlobalFunctions>
<includeTypes>true</includeTypes>
<includeEnums>true</includeEnums>
<includeTypedefs>false</includeTypedefs>
<automaticCodeCompletion>true</automaticCodeCompletion>
<automaticArgumentsHint>true</automaticArgumentsHint>
<automaticHeaderCompletion>true</automaticHeaderCompletion>
<codeCompletionDelay>250</codeCompletionDelay>
<argumentsHintDelay>400</argumentsHintDelay>
<headerCompletionDelay>250</headerCompletionDelay>
</codecompletion>
</kdevcppsupport>
<cppsupportpart>
<filetemplates>
<interfacesuffix>.h</interfacesuffix>
<implementationsuffix>.cpp</implementationsuffix>
</filetemplates>
</cppsupportpart>
<dist>
<custom>false</custom>
<bzip>false</bzip>
<archname/>
<appname>kasablanca</appname>
<version>0.3.1</version>
<release>1</release>
<vendor>Me</vendor>
<licence>GPL</licence>
<summary>kde ftp klient</summary>
<group>Applications/System</group>
<packager>x</packager>
<description>y</description>
<changelog/>
<devpackage>false</devpackage>
<docspackage>false</docspackage>
<appicon>false</appicon>
<arch>1</arch>
<genHTML>false</genHTML>
<useRPM>false</useRPM>
<ftpkde>false</ftpkde>
<appskde>false</appskde>
<url/>
</dist>
<kdevcvsservice>
<recursivewhenupdate>true</recursivewhenupdate>
<prunedirswhenupdate>true</prunedirswhenupdate>
<createdirswhenupdate>true</createdirswhenupdate>
<recursivewhencommitremove>true</recursivewhencommitremove>
<revertoptions>-C</revertoptions>
</kdevcvsservice>
</kdevelop>

Binary file not shown.

@ -0,0 +1,49 @@
Summary: A Kde Ftp Client
Name: kasablanca
Version: 0.4.0.2
Release: 1
Copyright: GPL
Group: Applications/Internet
Source: http://download.berlios.de/kasablanca/kasablanca-0.4.0.1.tar.gz
BuildRoot: /var/tmp/%{name}-buildroot
Provides: kasablanca
%description
Kasablanca is a KDE ftp client.
Its main features are:
- advanced ftp operations like resumed and recursive transfers
- direct remote to remote transfer (fxp)
- ftps encryption on both control and data connection
- enqeueing of files and directories
- high configurability
%prep
%setup
%build
./configure --prefix=/var/tmp/%{name}-buildroot/opt/kde3
make
%install
make install
%clean
rm -rf /var/tmp/%{name}-buildroot
%files
/opt/kde3/bin/kasablanca
/opt/kde3/share/applnk/Utilities/kasablanca.desktop
/opt/kde3/share/apps/kasablanca/about.png
/opt/kde3/share/apps/kasablanca/kasablancaui.rc
/opt/kde3/share/config.kcfg/kbconfig.kcfg
/opt/kde3/share/doc/HTML/en/kasablanca/index.cache.bz2
/opt/kde3/share/doc/HTML/en/kasablanca/index.docbook
/opt/kde3/share/icons/hicolor/128x128/apps/kasablanca.png
/opt/kde3/share/icons/hicolor/16x16/apps/kasablanca.png
/opt/kde3/share/icons/hicolor/22x22/apps/kasablanca.png
/opt/kde3/share/icons/hicolor/32x32/apps/kasablanca.png
/opt/kde3/share/icons/hicolor/48x48/apps/kasablanca.png
/opt/kde3/share/icons/hicolor/64x64/apps/kasablanca.png
/opt/kde3/share/locale/de/LC_MESSAGES/kasablanca.mo
/opt/kde3/share/locale/pl/LC_MESSAGES/kasablanca.mo

@ -0,0 +1,26 @@
<?xml version = '1.0' encoding = 'UTF-8'?>
<!DOCTYPE KDevPrjSession>
<KDevPrjSession>
<DocsAndViews NumberOfDocuments="1" >
<Doc0 NumberOfViews="1" URL="file:/home/mkulke/Development/kasablanca/ChangeLog" >
<View0 line="6" Type="Source" />
</Doc0>
</DocsAndViews>
<pluginList>
<kdevsubversion>
<subversion recurseresolve="1" recurserelocate="1" recursemerge="1" recursecommit="1" base="" recursepropget="1" recurseswitch="1" recurseupdate="1" recursepropset="1" recursediff="1" recurserevert="1" forcemove="1" recursecheckout="1" forceremove="1" recurseadd="1" recurseproplist="1" forcemerge="1" />
</kdevsubversion>
<kdevvalgrind>
<executable path="" params="" />
<valgrind path="" params="" />
<calltree path="" params="" />
<kcachegrind path="" />
</kdevvalgrind>
<kdevdebugger>
<breakpointList/>
</kdevdebugger>
<kdevbookmarks>
<bookmarks/>
</kdevbookmarks>
</pluginList>
</KDevPrjSession>

@ -0,0 +1,49 @@
Summary: A Kde Ftp Client
Name: kasablanca
Version: 0.4.0.2
Release: 1
Copyright: GPL
Group: Applications/Internet
Source: http://download.berlios.de/kasablanca/kasablanca-0.4.0.2.tar.gz
BuildRoot: /var/tmp/%{name}-buildroot
Provides: kasablanca
%description
Kasablanca is a KDE ftp client.
Its main features are:
- advanced ftp operations like resumed and recursive transfers
- direct remote to remote transfer (fxp)
- ftps encryption on both control and data connection
- enqeueing of files and directories
- high configurability
%prep
%setup
%build
./configure --prefix=/var/tmp/%{name}-buildroot/opt/kde3
make
%install
make install
%clean
rm -rf /var/tmp/%{name}-buildroot
%files
/opt/kde3/bin/kasablanca
/opt/kde3/share/applnk/Utilities/kasablanca.desktop
/opt/kde3/share/apps/kasablanca/about.png
/opt/kde3/share/apps/kasablanca/kasablancaui.rc
/opt/kde3/share/config.kcfg/kbconfig.kcfg
/opt/kde3/share/doc/HTML/en/kasablanca/index.cache.bz2
/opt/kde3/share/doc/HTML/en/kasablanca/index.docbook
/opt/kde3/share/icons/hicolor/128x128/apps/kasablanca.png
/opt/kde3/share/icons/hicolor/16x16/apps/kasablanca.png
/opt/kde3/share/icons/hicolor/22x22/apps/kasablanca.png
/opt/kde3/share/icons/hicolor/32x32/apps/kasablanca.png
/opt/kde3/share/icons/hicolor/48x48/apps/kasablanca.png
/opt/kde3/share/icons/hicolor/64x64/apps/kasablanca.png
/opt/kde3/share/locale/de/LC_MESSAGES/kasablanca.mo
/opt/kde3/share/locale/pl/LC_MESSAGES/kasablanca.mo

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

Binary file not shown.

@ -0,0 +1,537 @@
# translation of de.po to Deutsch
# translation of kasablanca.po to Deutsch
# This file is distributed under the same license as the PACKAGE package.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER.
# Magnus Kulke <sikor_sxe@radicalapproach.de>, 2004.
#
msgid ""
msgstr ""
"Project-Id-Version: de\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2004-07-17 17:53+0200\n"
"PO-Revision-Date: 2004-07-17 18:06+0200\n"
"Last-Translator: Magnus Kulke <sikor_sxe@radicalapproach.de>\n"
"Language-Team: Deutsch <de@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 1.3.1\n"
#: _translatorinfo.cpp:1
msgid ""
"_: NAME OF TRANSLATORS\n"
"Your names"
msgstr "Magnus Kulke"
#: _translatorinfo.cpp:3
msgid ""
"_: EMAIL OF TRANSLATORS\n"
"Your emails"
msgstr "sikor_sxe@radicalapproach.de"
#: bookmarkdialog.cpp:46
msgid "New"
msgstr "Neu"
#: bookmarkdialog.cpp:196
msgid "Enter sitename"
msgstr "Servernamen eingeben"
#: bookmarkdialog.cpp:197
msgid "Enter username"
msgstr "Benutzernamen eingeben"
#: bookmarkdialog.cpp:198
msgid "Enter hostname"
msgstr "Hostnamen eingeben"
#: customconnectdialog.cpp:30 customconnectdialog.cpp:45 rc.cpp:42
msgid "Custom Site"
msgstr "Benutzerdefinierter Server"
#: ftpsession.cpp:140
msgid "Enter directory name"
msgstr "Verzeichnisnamen eingeben"
#: ftpsession.cpp:140
msgid "Enter directory name:"
msgstr "Verzeichnisnamen eingeben:"
#: ftpsession.cpp:166 ftpsession.cpp:186
msgid "Delete this item?"
msgstr "Diesen Eintrag löschen?"
#: ftpsession.cpp:209 ftpsession.cpp:231
msgid "Enter new name"
msgstr "Neuen Namen eingeben"
#: ftpsession.cpp:209 ftpsession.cpp:231
msgid "Enter new name:"
msgstr "Neuen Namen eingeben:"
#: ftpsession.cpp:254
msgid "Enter bookmark name"
msgstr "Name des Lesezeichens eingeben"
#: ftpsession.cpp:254
msgid "Enter bookmark name:"
msgstr "Name des Lesezeichens eingeben:"
#: ftpsession.cpp:275
msgid "That site information is not legit."
msgstr "Diese Server-Information ist nicht zulässig."
#: ftpsession.cpp:366
msgid "Cancel transfer?"
msgstr "Transfer abbrechen?"
#: ftpsession.cpp:411
msgid "Aborted ftp operation"
msgstr "Ftp Aktion abgebrochen"
#: ftpsession.cpp:527
msgid "connection failed"
msgstr "verbindung fehlgeschlagen"
#: ftpsession.cpp:543
msgid "server does not support encryption"
msgstr "server unterstützt keine verschlüsselung"
#: ftpsession.cpp:631
msgid "Occupied"
msgstr "Beschäftigt"
#: ftpsession.cpp:642 ftpsession.cpp:680
msgid "Disconnected"
msgstr "Nicht verbunden"
#: ftpsession.cpp:658 ftpsession.cpp:659 ftpsession.cpp:661
msgid " is occupied"
msgstr " ist beschäftigt"
#: ftpsession.cpp:677 ftpsession.cpp:678
msgid "Connected to "
msgstr "Verbunden mit "
#: ftpsession.cpp:941
msgid "Enter New Name"
msgstr "Neuen Namen eingeben"
#: ftpsession.cpp:941
msgid "Enter New Name:"
msgstr "Neuen Namen eingeben:"
#: ftpsession.cpp:941
msgid "_alt"
msgstr "_neu"
#: kasablanca.cpp:269 kasablanca.cpp:272 rc.cpp:6 rc.cpp:43 rc.cpp:73
msgid "General"
msgstr "Allgemein"
#: kasablanca.cpp:270 kasablanca.cpp:273 rc.cpp:33
msgid "Colors"
msgstr "Farben"
#: kasablanca.cpp:271 kasablanca.cpp:274 rc.cpp:110
msgid "User Interface"
msgstr "Benutzerschnittstelle"
#: kasablanca.cpp:304 kasablanca.cpp:312
msgid "Session A"
msgstr ""
#: kasablanca.cpp:305 kasablanca.cpp:313
msgid "Session B"
msgstr ""
#: kasablanca.cpp:314
msgid "Queue"
msgstr "Warteschlange"
#: kasablanca.cpp:317 kasablanca.cpp:326
msgid "Transfer"
msgstr ""
#: kasablanca.cpp:318 kasablanca.cpp:327
msgid "Put in queue"
msgstr "In Warteschlange einfügen"
#: kasablanca.cpp:321 kasablanca.cpp:330 rc.cpp:71
msgid "Rename"
msgstr "Umbenennen"
#: kasablanca.cpp:322 kasablanca.cpp:331
msgid "Mkdir"
msgstr ""
#: kasablanca.cpp:324 kasablanca.cpp:333
msgid "Bookmark site"
msgstr "Lesezeichen hinzufügen"
#: kasablanca.cpp:335
msgid "Start Queue"
msgstr "Warteschlange starten"
#: kasablanca.cpp:337
msgid "Skip Item(s)"
msgstr "Einträge überspringen"
#: kasablanca.cpp:392 kasablanca.cpp:393
msgid "Custom"
msgstr "Benutzerdefiniert"
#: kbtaskview.cpp:26
msgid "Task"
msgstr "Aufgabe"
#: kbtaskview.cpp:27
msgid "Progress"
msgstr "Fortschritt"
#: main.cpp:13
msgid "A KDE Ftp Client"
msgstr "Ein KDE Ftp Client"
#: main.cpp:27
msgid "kasablanca"
msgstr ""
#: rc.cpp:2
msgid "Connect"
msgstr "Verbinden"
#: rc.cpp:3
msgid "Action"
msgstr "Aktion"
#: rc.cpp:5 rc.cpp:102 rc.cpp:105
msgid "Name"
msgstr ""
#: rc.cpp:7 rc.cpp:46
msgid ""
"The user's password. Anonymous ftp servers ussually don't use passwords or "
"accept passwords in the form of \"user@emailaddress.com\"."
msgstr ""
"Das Passwort des Benutzers. Anonyme Ftp-Server benutzen gewöhnlich keine "
"Passwörter oder akzeptieren Passwörter in der Form: \"user@emailaddresse.de"
"\"."
#: rc.cpp:8 rc.cpp:45
msgid ""
"The ftp Login Username. On open ftp servers you usually login using "
"\"anonymous\"."
msgstr ""
"Der Benutzername. Auf offenen Ftp-Servern loggen Sie sich für gewöhnlich mit "
"\"Anonymous\" ein."
#: rc.cpp:10
msgid ""
"This information points to the the ftp server. HOST can either be a standard "
"ip adress like 192.168.2.1 or a domain name. PORT is the port number on "
"which the ftp server listens. In most cases this is 21. Both are seperated "
"by a \":\" character. A legit input would be \"ftp.kde.org:21\"."
msgstr ""
"Diese Information zeigt auf den Ftp-Server. HOST kann entweder eine Standard-"
"IP-Adresse wie 192.168.2.1 oder ein Domain-Name sein. PORT ist die Port-"
"Nummer auf der Ftp-Server 'lauscht'. In den meisten Fällen ist dies 21. "
"Beide sind durch ein \":\" getrennt. Ein zulässiger Wert wäre etwa \"ftp.kde."
"org:21\"."
#: rc.cpp:11
msgid "The ftp's name is entered here."
msgstr "Der Server-Name wird hier eingetragen."
#: rc.cpp:12 rc.cpp:49
msgid "Username:"
msgstr "Benutzername:"
#: rc.cpp:13
msgid "Name:"
msgstr ""
#: rc.cpp:14 rc.cpp:51
msgid "Encryption:"
msgstr "Verschlüsselung:"
#: rc.cpp:16 rc.cpp:50
msgid "Host:Port:"
msgstr ""
#: rc.cpp:17 rc.cpp:44
msgid "Password:"
msgstr "Passwort:"
#: rc.cpp:18 rc.cpp:52
msgid "Mode:"
msgstr "Modus:"
#: rc.cpp:19 rc.cpp:60
msgid "Active Mode"
msgstr "Aktiver Modus"
#: rc.cpp:20 rc.cpp:59
msgid "Passive Mode"
msgstr "Passiver Modus"
#: rc.cpp:21 rc.cpp:61
msgid ""
"The mode you are using for data transfer. This is quite important in case "
"you're behind a firewall or a router. In these cases you depend on the "
"passive mode, which makes the client connects to the ftp server for data "
"transfer. Passive mode is the standard method today, while active mode is "
"the old way to do data transfers, the client listens for the server to "
"connect in active mode."
msgstr ""
"Der Modus den sie für den Daten-Transfer verwenden. Für den Fall, dass Sie "
"hinter eine Firewall oder einem Router ans Internet angeschlossen sind, "
"wählen sie den Passiven Modus."
#: rc.cpp:22 rc.cpp:54
msgid "Unencrypted"
msgstr "Unverschlüsselt"
#: rc.cpp:23 rc.cpp:55
msgid "Level 1"
msgstr "Stufe 1"
#: rc.cpp:24 rc.cpp:56
msgid "Level 2"
msgstr "Stufe 2"
#: rc.cpp:25 rc.cpp:57
msgid "Level 3"
msgstr "Stufe 3"
#: rc.cpp:26 rc.cpp:58
msgid ""
"There are 4 encryption levels available. Unencrypted leaves all traffic "
"clear and without encryption. Most ftp servers allow only this mode. Level 1 "
"encryption means that the traffic on the control connection is encrypted "
"while data transfer remains clear. Level 2 is basically the same with the "
"exception of directory information which is transfered on the data channel, "
"but is encrypted too. Eventually Level 3 encrypts everything all "
"communication and all data traffic."
msgstr ""
"Es stehen 4 Verschlüsselungs-Stufen zur Verfügung. \"Unverschlüsselt\" lässt "
"allen Datenverkehr offen. Die meisten Ftp-Server erlauben nur diesen Modus. "
"\"Stufe 1\"-Verschlüsselung bedeutet, dass der Datenverkehr auf der "
"Kontrollebene verschlüsselt wird, während Verzeichnisinhalte und Dateien "
"unverschlüsselt übertragen werden. In \"Stufe 2\" werden dann auch "
"Verzeichnisinhalte verschlüsselt, und in \"Stufe 3\" schliesslich jeglicher "
"Datenverkehr."
#: rc.cpp:27 rc.cpp:62
msgid "Advanced"
msgstr "Fortgeschritten"
#: rc.cpp:28 rc.cpp:67
msgid "Default directory:"
msgstr "StandardVerzeichnis:"
#: rc.cpp:29 rc.cpp:63
msgid "Alternative fxp:"
msgstr "Alternatives Fxp:"
#: rc.cpp:30 rc.cpp:31 rc.cpp:64 rc.cpp:66 rc.cpp:76 rc.cpp:79 rc.cpp:81
#: rc.cpp:82 rc.cpp:83 rc.cpp:114 rc.cpp:115 rc.cpp:116
msgid "Enabled"
msgstr "Aktiviert"
#: rc.cpp:32 rc.cpp:65
msgid "Correct pasv responses:"
msgstr "Korrigiere Pasv Antworten:"
#: rc.cpp:34
msgid "Background:"
msgstr "Hintergrund:"
#: rc.cpp:35
msgid "Success Text:"
msgstr "Text (Erfolg):"
#: rc.cpp:36
msgid "Failure Text:"
msgstr "Text (Fehler):"
#: rc.cpp:37
msgid "Local Text:"
msgstr "Text (Lokal):"
#: rc.cpp:48
msgid ""
"This information points to the the ftp server. HOST can either be a standard "
"ip adress like \"192.168.2.1\" or a domain name. PORT is the port number on "
"which the ftp server listens. In most cases this is 21. Both are seperated "
"by a \":\" character. A legit input would be \"ftp.kde.org:21\"."
msgstr ""
"Diese Information zeigt auf den Ftp-Server. HOST kann entweder eine Standard-"
"IP-Adresse wie 192.168.2.1 oder ein Domain-Name sein. PORT ist die Port-"
"Nummer auf der Ftp-Server 'lauscht'. In den meisten Fällen ist dies 21. "
"Beide sind durch ein \":\" getrennt. Ein zulässiger Wert wäre etwa \"ftp.kde."
"org:21\"."
#: rc.cpp:53
msgid "Anonymous"
msgstr "Anonym"
#: rc.cpp:68
msgid "File Exists"
msgstr "Datei existiert bereits"
#: rc.cpp:69 rc.cpp:90
msgid "Skip"
msgstr "Überspringen"
#: rc.cpp:70
msgid "Resume"
msgstr "Wiederaufnehmen"
#: rc.cpp:72 rc.cpp:92
msgid "Overwrite"
msgstr "Überschreiben"
#: rc.cpp:74
msgid ""
"Directory caching means that once you browsed a folder on a ftp session the "
"content of that folder is cached, and will be loaded from there in case you "
"enter it again. This can speed up browsing especially with large dirs. If "
"you want a fresh representation of the dir content, you can press the "
"refresh button."
msgstr ""
"Verzeichnisse Cachen bedeutet dass, wenn Sie in einer Ftp Session ein "
"Verzeichnis betreten dieses zwischengespeichert wird, und wenn Sie das "
"Verzeichnis später dann nocheinmal betreten wird der Verzeichnisinhalt aus "
"dem Zwischenspeicher geholt, anstatt nochmals vom Server geladen zu werden. "
"Wenn Sie dennoch eine aktuelle Ansicht des Verzeichnisinhalts wollen, können "
"Sie den Refresh-Knopf drücken."
#: rc.cpp:75
msgid "On file exist:"
msgstr "Wenn Datei bereits existiert:"
#: rc.cpp:77
msgid ""
"Here you can enter a Regular Expression. Transfer items which match this "
"Regular Expression are skipped. For example a value of \"^\\.\" excludes "
"every entry beginning with \".\" from transfer."
msgstr ""
"Hier können Sie einen Regulären Ausdruck eingeben. Transfer-Aufgaben auf "
"welche dieser Ausdruck zutrifft werden übersprungen. Eine eingabe von \"^\\."
"\" würde zum Beispiel jede Aufgaben beginned mit \".\" vom Transfer "
"ausschließen."
#: rc.cpp:78
msgid "Skiplist:"
msgstr "Skipliste:"
#: rc.cpp:80
msgid ""
"This Field contains a regular expression, which queues the items matching "
"this regular expression before the items which don't. For example, \".sfv\" "
"would make the common checksum files with this fileending transfer first."
msgstr ""
"Dieses Feld enthält einen Regulären Ausdruck, welcher die Aufgaben auf die "
"er zutrifft in der Warteschlange vor diejenigen, auf die er nicht zutrifft "
"schiebt. Ein Eintrag \".sfv\" würde zum Beispiel bewirken, dass die "
"weitverbreiteten Prüfsummen-files mit dieser Dateiendung zuerst übertragen "
"werden."
#: rc.cpp:84
msgid "Priority list:"
msgstr "Prioritätenliste:"
#: rc.cpp:85
msgid "Directory caching:"
msgstr "Verzeichnisse Cachen:"
#: rc.cpp:86
msgid ""
"This field can hold an executable and its arguments which will be run, when "
"last item of in queue has finished transferring. For Example, on KDE "
"desktops the entry \"dcop ksmserver ksmserver logout 0 0 0\" would shutdown "
"the computer automatically."
msgstr ""
"Dieses Feld kann eine ausführbare Datei und ihre Argumenten beinhalten, "
"welche ausgeführt werden, sobald die letze Aufgabe in der Warteschlange "
"übertragen wurde. Auf KDE Desktops würde zum Beispiel ein Eintrag von \"dcop "
"ksmserver ksmserver logout 0 0 0\" den Computer automatisch herunterfahren."
#: rc.cpp:88
msgid "Resume (if possible)"
msgstr "Wiederaufnehmen (wenn möglich)"
#: rc.cpp:89 rc.cpp:91 rc.cpp:93
msgid ""
"These Radio Buttons indicate how the application should proceed if a file to "
"be transfered already exists on the destination. Usually the user is asked "
"by the application how to proceed if this occurs, in case you aren't present "
"during the transfer you can enable this feature."
msgstr ""
"Diese Auswahlknöpfe zeigen an, wie die Applikation verfahren soll wenn eine "
"zu Übertragende Datei auf dem Zielsystem bereits exisitert. Normalerweise "
"wird in diesem Fall ein interaktiver Dialog geöffnet der den Benutzer "
"entscheiden lässt. Hier lässt eine Standard Verfahrensweise für diese Fälle "
"festlegen."
#: rc.cpp:94
msgid "On queue finished:"
msgstr "Wenn letzter Transfer beendet:"
#: rc.cpp:95
msgid "Kasablanca x"
msgstr "Kasablanca x"
#: rc.cpp:103 rc.cpp:106
msgid "Size"
msgstr "Größe"
#: rc.cpp:104 rc.cpp:107
msgid "Date"
msgstr "Datum"
#: rc.cpp:111
msgid "Show system tray icon:"
msgstr "Zeige System-Tray Icon:"
#: rc.cpp:112
msgid "Show command lines:"
msgstr "Zeige Kommandozeilen:"
#: rc.cpp:113
msgid "Hide hidden files from view:"
msgstr "Versteckte Dateien nicht anzeigen:"
#: rc.cpp:117
msgid "Logwindow Font:"
msgstr ""
#: rc.cpp:118
msgid "A RegExp which describes the items to skip at transfer."
msgstr ""
#: rc.cpp:119
msgid "A RegExp which describes the items to transfer first."
msgstr ""
#: rc.cpp:120
msgid "The font for the logwindow."
msgstr ""
#: rc.cpp:121
msgid "The color value for local messages on the logging window."
msgstr ""
#: rc.cpp:122
msgid "The color value for successful remote messages on the logging window."
msgstr ""
#: rc.cpp:123
msgid "The color value for the background on the logging window."
msgstr ""
#: rc.cpp:124
msgid "The color value for failed remote messages on the logging window."
msgstr ""

@ -0,0 +1,480 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2004-07-17 17:53+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: _translatorinfo.cpp:1
msgid ""
"_: NAME OF TRANSLATORS\n"
"Your names"
msgstr ""
#: _translatorinfo.cpp:3
msgid ""
"_: EMAIL OF TRANSLATORS\n"
"Your emails"
msgstr ""
#: bookmarkdialog.cpp:46
msgid "New"
msgstr ""
#: bookmarkdialog.cpp:196
msgid "Enter sitename"
msgstr ""
#: bookmarkdialog.cpp:197
msgid "Enter username"
msgstr ""
#: bookmarkdialog.cpp:198
msgid "Enter hostname"
msgstr ""
#: customconnectdialog.cpp:30 customconnectdialog.cpp:45 rc.cpp:42
msgid "Custom Site"
msgstr ""
#: ftpsession.cpp:140
msgid "Enter directory name"
msgstr ""
#: ftpsession.cpp:140
msgid "Enter directory name:"
msgstr ""
#: ftpsession.cpp:166 ftpsession.cpp:186
msgid "Delete this item?"
msgstr ""
#: ftpsession.cpp:209 ftpsession.cpp:231
msgid "Enter new name"
msgstr ""
#: ftpsession.cpp:209 ftpsession.cpp:231
msgid "Enter new name:"
msgstr ""
#: ftpsession.cpp:254
msgid "Enter bookmark name"
msgstr ""
#: ftpsession.cpp:254
msgid "Enter bookmark name:"
msgstr ""
#: ftpsession.cpp:275
msgid "That site information is not legit."
msgstr ""
#: ftpsession.cpp:366
msgid "Cancel transfer?"
msgstr ""
#: ftpsession.cpp:411
msgid "Aborted ftp operation"
msgstr ""
#: ftpsession.cpp:527
msgid "connection failed"
msgstr ""
#: ftpsession.cpp:543
msgid "server does not support encryption"
msgstr ""
#: ftpsession.cpp:631
msgid "Occupied"
msgstr ""
#: ftpsession.cpp:642 ftpsession.cpp:680
msgid "Disconnected"
msgstr ""
#: ftpsession.cpp:658 ftpsession.cpp:659 ftpsession.cpp:661
msgid " is occupied"
msgstr ""
#: ftpsession.cpp:677 ftpsession.cpp:678
msgid "Connected to "
msgstr ""
#: ftpsession.cpp:941
msgid "Enter New Name"
msgstr ""
#: ftpsession.cpp:941
msgid "Enter New Name:"
msgstr ""
#: ftpsession.cpp:941
msgid "_alt"
msgstr ""
#: kasablanca.cpp:269 kasablanca.cpp:272 rc.cpp:6 rc.cpp:43 rc.cpp:73
msgid "General"
msgstr ""
#: kasablanca.cpp:270 kasablanca.cpp:273 rc.cpp:33
msgid "Colors"
msgstr ""
#: kasablanca.cpp:271 kasablanca.cpp:274 rc.cpp:110
msgid "User Interface"
msgstr ""
#: kasablanca.cpp:304 kasablanca.cpp:312
msgid "Session A"
msgstr ""
#: kasablanca.cpp:305 kasablanca.cpp:313
msgid "Session B"
msgstr ""
#: kasablanca.cpp:314
msgid "Queue"
msgstr ""
#: kasablanca.cpp:317 kasablanca.cpp:326
msgid "Transfer"
msgstr ""
#: kasablanca.cpp:318 kasablanca.cpp:327
msgid "Put in queue"
msgstr ""
#: kasablanca.cpp:321 kasablanca.cpp:330 rc.cpp:71
msgid "Rename"
msgstr ""
#: kasablanca.cpp:322 kasablanca.cpp:331
msgid "Mkdir"
msgstr ""
#: kasablanca.cpp:324 kasablanca.cpp:333
msgid "Bookmark site"
msgstr ""
#: kasablanca.cpp:335
msgid "Start Queue"
msgstr ""
#: kasablanca.cpp:337
msgid "Skip Item(s)"
msgstr ""
#: kasablanca.cpp:392 kasablanca.cpp:393
msgid "Custom"
msgstr ""
#: kbtaskview.cpp:26
msgid "Task"
msgstr ""
#: kbtaskview.cpp:27
msgid "Progress"
msgstr ""
#: main.cpp:13
msgid "A KDE Ftp Client"
msgstr ""
#: main.cpp:27
msgid "kasablanca"
msgstr ""
#: rc.cpp:2
msgid "Connect"
msgstr ""
#: rc.cpp:3
msgid "Action"
msgstr ""
#: rc.cpp:5 rc.cpp:102 rc.cpp:105
msgid "Name"
msgstr ""
#: rc.cpp:7 rc.cpp:46
msgid ""
"The user's password. Anonymous ftp servers ussually don't use passwords or "
"accept passwords in the form of \"user@emailaddress.com\"."
msgstr ""
#: rc.cpp:8 rc.cpp:45
msgid ""
"The ftp Login Username. On open ftp servers you usually login using "
"\"anonymous\"."
msgstr ""
#: rc.cpp:10
msgid ""
"This information points to the the ftp server. HOST can either be a standard "
"ip adress like 192.168.2.1 or a domain name. PORT is the port number on "
"which the ftp server listens. In most cases this is 21. Both are seperated "
"by a \":\" character. A legit input would be \"ftp.kde.org:21\"."
msgstr ""
#: rc.cpp:11
msgid "The ftp's name is entered here."
msgstr ""
#: rc.cpp:12 rc.cpp:49
msgid "Username:"
msgstr ""
#: rc.cpp:13
msgid "Name:"
msgstr ""
#: rc.cpp:14 rc.cpp:51
msgid "Encryption:"
msgstr ""
#: rc.cpp:16 rc.cpp:50
msgid "Host:Port:"
msgstr ""
#: rc.cpp:17 rc.cpp:44
msgid "Password:"
msgstr ""
#: rc.cpp:18 rc.cpp:52
msgid "Mode:"
msgstr ""
#: rc.cpp:19 rc.cpp:60
msgid "Active Mode"
msgstr ""
#: rc.cpp:20 rc.cpp:59
msgid "Passive Mode"
msgstr ""
#: rc.cpp:21 rc.cpp:61
msgid ""
"The mode you are using for data transfer. This is quite important in case "
"you're behind a firewall or a router. In these cases you depend on the "
"passive mode, which makes the client connects to the ftp server for data "
"transfer. Passive mode is the standard method today, while active mode is "
"the old way to do data transfers, the client listens for the server to "
"connect in active mode."
msgstr ""
#: rc.cpp:22 rc.cpp:54
msgid "Unencrypted"
msgstr ""
#: rc.cpp:23 rc.cpp:55
msgid "Level 1"
msgstr ""
#: rc.cpp:24 rc.cpp:56
msgid "Level 2"
msgstr ""
#: rc.cpp:25 rc.cpp:57
msgid "Level 3"
msgstr ""
#: rc.cpp:26 rc.cpp:58
msgid ""
"There are 4 encryption levels available. Unencrypted leaves all traffic "
"clear and without encryption. Most ftp servers allow only this mode. Level 1 "
"encryption means that the traffic on the control connection is encrypted "
"while data transfer remains clear. Level 2 is basically the same with the "
"exception of directory information which is transfered on the data channel, "
"but is encrypted too. Eventually Level 3 encrypts everything all "
"communication and all data traffic."
msgstr ""
#: rc.cpp:27 rc.cpp:62
msgid "Advanced"
msgstr ""
#: rc.cpp:28 rc.cpp:67
msgid "Default directory:"
msgstr ""
#: rc.cpp:29 rc.cpp:63
msgid "Alternative fxp:"
msgstr ""
#: rc.cpp:30 rc.cpp:31 rc.cpp:64 rc.cpp:66 rc.cpp:76 rc.cpp:79 rc.cpp:81
#: rc.cpp:82 rc.cpp:83 rc.cpp:114 rc.cpp:115 rc.cpp:116
msgid "Enabled"
msgstr ""
#: rc.cpp:32 rc.cpp:65
msgid "Correct pasv responses:"
msgstr ""
#: rc.cpp:34
msgid "Background:"
msgstr ""
#: rc.cpp:35
msgid "Success Text:"
msgstr ""
#: rc.cpp:36
msgid "Failure Text:"
msgstr ""
#: rc.cpp:37
msgid "Local Text:"
msgstr ""
#: rc.cpp:48
msgid ""
"This information points to the the ftp server. HOST can either be a standard "
"ip adress like \"192.168.2.1\" or a domain name. PORT is the port number on "
"which the ftp server listens. In most cases this is 21. Both are seperated "
"by a \":\" character. A legit input would be \"ftp.kde.org:21\"."
msgstr ""
#: rc.cpp:53
msgid "Anonymous"
msgstr ""
#: rc.cpp:68
msgid "File Exists"
msgstr ""
#: rc.cpp:69 rc.cpp:90
msgid "Skip"
msgstr ""
#: rc.cpp:70
msgid "Resume"
msgstr ""
#: rc.cpp:72 rc.cpp:92
msgid "Overwrite"
msgstr ""
#: rc.cpp:74
msgid ""
"Directory caching means that once you browsed a folder on a ftp session the "
"content of that folder is cached, and will be loaded from there in case you "
"enter it again. This can speed up browsing especially with large dirs. If "
"you want a fresh representation of the dir content, you can press the "
"refresh button."
msgstr ""
#: rc.cpp:75
msgid "On file exist:"
msgstr ""
#: rc.cpp:77
msgid ""
"Here you can enter a Regular Expression. Transfer items which match this "
"Regular Expression are skipped. For example a value of \"^\\.\" excludes "
"every entry beginning with \".\" from transfer."
msgstr ""
#: rc.cpp:78
msgid "Skiplist:"
msgstr ""
#: rc.cpp:80
msgid ""
"This Field contains a regular expression, which queues the items matching "
"this regular expression before the items which don't. For example, \".sfv\" "
"would make the common checksum files with this fileending transfer first."
msgstr ""
#: rc.cpp:84
msgid "Priority list:"
msgstr ""
#: rc.cpp:85
msgid "Directory caching:"
msgstr ""
#: rc.cpp:86
msgid ""
"This field can hold an executable and its arguments which will be run, when "
"last item of in queue has finished transferring. For Example, on KDE "
"desktops the entry \"dcop ksmserver ksmserver logout 0 0 0\" would shutdown "
"the computer automatically."
msgstr ""
#: rc.cpp:88
msgid "Resume (if possible)"
msgstr ""
#: rc.cpp:89 rc.cpp:91 rc.cpp:93
msgid ""
"These Radio Buttons indicate how the application should proceed if a file to "
"be transfered already exists on the destination. Usually the user is asked "
"by the application how to proceed if this occurs, in case you aren't present "
"during the transfer you can enable this feature."
msgstr ""
#: rc.cpp:94
msgid "On queue finished:"
msgstr ""
#: rc.cpp:95
msgid "Kasablanca x"
msgstr ""
#: rc.cpp:103 rc.cpp:106
msgid "Size"
msgstr ""
#: rc.cpp:104 rc.cpp:107
msgid "Date"
msgstr ""
#: rc.cpp:111
msgid "Show system tray icon:"
msgstr ""
#: rc.cpp:112
msgid "Show command lines:"
msgstr ""
#: rc.cpp:113
msgid "Hide hidden files from view:"
msgstr ""
#: rc.cpp:117
msgid "Logwindow Font:"
msgstr ""
#: rc.cpp:118
msgid "A RegExp which describes the items to skip at transfer."
msgstr ""
#: rc.cpp:119
msgid "A RegExp which describes the items to transfer first."
msgstr ""
#: rc.cpp:120
msgid "The font for the logwindow."
msgstr ""
#: rc.cpp:121
msgid "The color value for local messages on the logging window."
msgstr ""
#: rc.cpp:122
msgid "The color value for successful remote messages on the logging window."
msgstr ""
#: rc.cpp:123
msgid "The color value for the background on the logging window."
msgstr ""
#: rc.cpp:124
msgid "The color value for failed remote messages on the logging window."
msgstr ""

Binary file not shown.

@ -0,0 +1,483 @@
# translation of kasablanca.po to Polish
# This file is distributed under the same license as the PACKAGE package.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER.
# Tomasz Waleńczak <tom@w.pl>, 2004.
#
msgid ""
msgstr ""
"Project-Id-Version: pl\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2004-07-13 21:45+0200\n"
"PO-Revision-Date: 2004-07-27 11:14+0200\n"
"Last-Translator: Tomasz Waleńczak <tom@w.pl>\n"
"Language-Team: Polish\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 1.3.1\n"
#: _translatorinfo.cpp:1
msgid ""
"_: NAME OF TRANSLATORS\n"
"Your names"
msgstr "Tomasz Waleńczak"
#: _translatorinfo.cpp:3
msgid ""
"_: EMAIL OF TRANSLATORS\n"
"Your emails"
msgstr "tom@w.pl"
#: bookmarkdialog.cpp:46
msgid "New"
msgstr "Nowy"
#: bookmarkdialog.cpp:196
msgid "Enter sitename"
msgstr "Wpisz adres"
#: bookmarkdialog.cpp:197
msgid "Enter username"
msgstr "Wpisz użytkownika"
#: bookmarkdialog.cpp:198
msgid "Enter hostname"
msgstr "Wprowadź nazwę hosta"
#: customconnectdialog.cpp:30 customconnectdialog.cpp:45 rc.cpp:42
msgid "Custom Site"
msgstr ""
#: ftpsession.cpp:139
msgid "Enter directory name"
msgstr "Wprowadź nazwę katalogu"
#: ftpsession.cpp:139
msgid "Enter directory name:"
msgstr "Wprowadź nazwę katalogu:"
#: ftpsession.cpp:165 ftpsession.cpp:185
msgid "Delete this item?"
msgstr "Usunąć ten element?"
#: ftpsession.cpp:208 ftpsession.cpp:230
msgid "Enter new name"
msgstr "Wprowadź nową nazwę"
#: ftpsession.cpp:208 ftpsession.cpp:230
msgid "Enter new name:"
msgstr "Wprowadź nową nazwę:"
#: ftpsession.cpp:253
msgid "Enter bookmark name"
msgstr "Wprowadź nazwę zakładki"
#: ftpsession.cpp:253
msgid "Enter bookmark name:"
msgstr "Wprowadź nazwę zakładki:"
#: ftpsession.cpp:274
msgid "That site information is not legit."
msgstr "Informacja o serwerze nie jest poprawna."
#: ftpsession.cpp:365
msgid "Cancel transfer?"
msgstr "Anulować transfer?"
#: ftpsession.cpp:410
msgid "Aborted ftp operation"
msgstr "Anulowana operacja ftp"
#: ftpsession.cpp:526
msgid "connection failed"
msgstr "połączenie nieudane"
#: ftpsession.cpp:625
msgid "Occupied"
msgstr "Zajęty"
#: ftpsession.cpp:636 ftpsession.cpp:674
msgid "Disconnected"
msgstr "Brak połączenia"
#: ftpsession.cpp:652 ftpsession.cpp:653 ftpsession.cpp:655
msgid " is occupied"
msgstr "jest zajęty"
#: ftpsession.cpp:671 ftpsession.cpp:672
msgid "Connected to "
msgstr "Połączone do "
#: ftpsession.cpp:935
msgid "Enter New Name"
msgstr "Wprowadź nową nazwę"
#: ftpsession.cpp:935
msgid "Enter New Name:"
msgstr "Wprowadź nową nazwę:"
#: ftpsession.cpp:935
msgid "_alt"
msgstr ""
#: kasablanca.cpp:269 kasablanca.cpp:272 rc.cpp:6 rc.cpp:43 rc.cpp:73
msgid "General"
msgstr "Ogólne"
#: kasablanca.cpp:270 kasablanca.cpp:273 rc.cpp:33
msgid "Colors"
msgstr "Kolory"
#: kasablanca.cpp:271 kasablanca.cpp:274 rc.cpp:110
msgid "User Interface"
msgstr "Interface użytkownika"
#: kasablanca.cpp:304 kasablanca.cpp:312
msgid "Session A"
msgstr "Sesja A"
#: kasablanca.cpp:305 kasablanca.cpp:313
msgid "Session B"
msgstr "Sesja B"
#: kasablanca.cpp:314
msgid "Queue"
msgstr "Kolejka"
#: kasablanca.cpp:317 kasablanca.cpp:326
msgid "Transfer"
msgstr "Transfer"
#: kasablanca.cpp:318 kasablanca.cpp:327
msgid "Put in queue"
msgstr "Dodaj do kolejki"
#: kasablanca.cpp:321 kasablanca.cpp:330 rc.cpp:71
msgid "Rename"
msgstr "Zmień nazwę"
#: kasablanca.cpp:322 kasablanca.cpp:331
msgid "Mkdir"
msgstr ""
#: kasablanca.cpp:324 kasablanca.cpp:333
msgid "Bookmark site"
msgstr "Zakładka"
#: kasablanca.cpp:335
msgid "Start Queue"
msgstr "Uruchom kolejkę"
#: kasablanca.cpp:337
msgid "Skip Item(s)"
msgstr "Pomiń element(y)"
#: kasablanca.cpp:392 kasablanca.cpp:393
msgid "Custom"
msgstr "Własne"
#: kbtaskview.cpp:26
msgid "Task"
msgstr "Zadanie"
#: kbtaskview.cpp:27
msgid "Progress"
msgstr "Postęp"
#: main.cpp:13
msgid "A KDE Ftp Client"
msgstr "Klient FTP KDE"
#: main.cpp:27
msgid "kasablanca"
msgstr "Kasablanka"
#: rc.cpp:2
msgid "Connect"
msgstr "Połączenie"
#: rc.cpp:3
msgid "Action"
msgstr "Akcja"
#: rc.cpp:5 rc.cpp:102 rc.cpp:105
msgid "Name"
msgstr "Nazwa"
#: rc.cpp:7 rc.cpp:46
msgid ""
"The user's password. Anonymous ftp servers ussually don't use passwords or "
"accept passwords in the form of \"user@emailaddress.com\"."
msgstr "Hasło użytkownika. Anonimowe serwery ftp zwykle nie używają haseł lub akceptują hasła w formie \"user@emailaddress.com\"."
#: rc.cpp:8 rc.cpp:45
msgid ""
"The ftp Login Username. On open ftp servers you usually login using "
"\"anonymous\"."
msgstr "Login konta ftp. W ogólnie dostępnych serwerach zwykle jako login używa się \"anonymous\"."
#: rc.cpp:10
msgid ""
"This information points to the the ftp server. HOST can either be a standard "
"ip adress like 192.168.2.1 or a domain name. PORT is the port number on "
"which the ftp server listens. In most cases this is 21. Both are seperated "
"by a \":\" character. A legit input would be \"ftp.kde.org:21\"."
msgstr "Te informacje tyczą się serwera ftp. HOST może być wprowadzony jako zwykły adres IP jak np 192.168.2.1 lub nazwę domeny. PORT jest numerem portu na którym serwer ftp nasłuchuje. Najczęściej jest to nr 21. HOST i PORT odseparowane są znakiem\":\". Poprawną formą może być \"ftp.kde.org:21\"."
#: rc.cpp:11
msgid "The ftp's name is entered here."
msgstr "Nazwa ftp jest wpisywana tutaj."
#: rc.cpp:12 rc.cpp:49
msgid "Username:"
msgstr "Nazwa użytkownika:"
#: rc.cpp:13
msgid "Name:"
msgstr "Nazwa:"
#: rc.cpp:14 rc.cpp:51
msgid "Encryption:"
msgstr "Kodowanie:"
#: rc.cpp:16 rc.cpp:50
msgid "Host:Port:"
msgstr "Host:Port:"
#: rc.cpp:17 rc.cpp:44
msgid "Password:"
msgstr "Hasło:"
#: rc.cpp:18 rc.cpp:52
msgid "Mode:"
msgstr "Tryb:"
#: rc.cpp:19 rc.cpp:60
msgid "Active Mode"
msgstr "Aktywny"
#: rc.cpp:20 rc.cpp:59
msgid "Passive Mode"
msgstr "Pasywny"
#: rc.cpp:21 rc.cpp:61
msgid ""
"The mode you are using for data transfer. This is quite important in case "
"you're behind a firewall or a router. In these cases you depend on the "
"passive mode, which makes the client connects to the ftp server for data "
"transfer. Passive mode is the standard method today, while active mode is "
"the old way to do data transfers, the client listens for the server to "
"connect in active mode."
msgstr "Tryb używany przy przesyłaniu danych. Jest to ważne jeśli jesteś za firewallem lub ruterem. W takim przypadku wybierz tryb pasywny w którym to klient ftp łączy się z serwerem podczas przesyłania danych. Tryb pasywny jest dziś standardową metodą, podczas gdy tryb aktywny jest starsza metodą gdzie klient ftp oczekuje połączenia od serwera do transferu danych."
#: rc.cpp:22 rc.cpp:54
msgid "Unencrypted"
msgstr "Niekodowane"
#: rc.cpp:23 rc.cpp:55
msgid "Level 1"
msgstr "Poziom 1"
#: rc.cpp:24 rc.cpp:56
msgid "Level 2"
msgstr "Poziom 2"
#: rc.cpp:25 rc.cpp:57
msgid "Level 3"
msgstr "Poziom 3"
#: rc.cpp:26 rc.cpp:58
msgid ""
"There are 4 encryption levels available. Unencrypted leaves all traffic "
"clear and without encryption. Most ftp servers allow only this mode. Level 1 "
"encryption means that the traffic on the control connection is encrypted "
"while data transfer remains clear. Level 2 is basically the same with the "
"exception of directory information which is transfered on the data channel, "
"but is encrypted too. Eventually Level 3 encrypts everything all "
"communication and all data traffic."
msgstr "Są dostępne 4 poziomy kodowania. Niekodowane powoduje ze całych ruch jest niekodowany. Większość serwerów ftp zezwala tylko na taki tryb. Poziom 1 koduje dane kontrolujące transfer podczas gdy same dane są niekodowane. Poziom 2 jest podobny z tą różnicą ze dane na temat katalogów są kodowane. Poziom 3 koduje zarówno dane kontrolne jak i same dane."
#: rc.cpp:27 rc.cpp:62
msgid "Advanced"
msgstr "Zaawansowane"
#: rc.cpp:28 rc.cpp:67
msgid "Default directory:"
msgstr "Katalog domyślny:"
#: rc.cpp:29 rc.cpp:63
msgid "Alternative fxp:"
msgstr "Alternatywny fxp:"
#: rc.cpp:30 rc.cpp:31 rc.cpp:64 rc.cpp:66 rc.cpp:76 rc.cpp:79 rc.cpp:81
#: rc.cpp:82 rc.cpp:83 rc.cpp:114 rc.cpp:115 rc.cpp:116
msgid "Enabled"
msgstr "Włączone"
#: rc.cpp:32 rc.cpp:65
msgid "Correct pasv responses:"
msgstr "Poprawna odpowiedz pasv:"
#: rc.cpp:34
msgid "Background:"
msgstr "Tło:"
#: rc.cpp:35
msgid "Success Text:"
msgstr "Tekst powodzenia:"
#: rc.cpp:36
msgid "Failure Text:"
msgstr "Tekst błędów:"
#: rc.cpp:37
msgid "Local Text:"
msgstr "Tekst lokalny:"
#: rc.cpp:48
msgid ""
"This information points to the the ftp server. HOST can either be a standard "
"ip adress like \"192.168.2.1\" or a domain name. PORT is the port number on "
"which the ftp server listens. In most cases this is 21. Both are seperated "
"by a \":\" character. A legit input would be \"ftp.kde.org:21\"."
msgstr "Te informacje tyczą się serwera ftp. HOST może być wprowadzony jako zwykły adres IP jak np 192.168.2.1 lub nazwę domeny. PORT jest numerem portu na którym serwer ftp nasłuchuje. Najczęściej jest to nr 21. HOST i PORT odseparowane są znakiem\":\". Poprawną formą może być \"ftp.kde.org:21\"."
#: rc.cpp:53
msgid "Anonymous"
msgstr "Anonimowo"
#: rc.cpp:68
msgid "File Exists"
msgstr "Plik istnieje"
#: rc.cpp:69 rc.cpp:90
msgid "Skip"
msgstr "Pomiń"
#: rc.cpp:70
msgid "Resume"
msgstr "Wznów"
#: rc.cpp:72 rc.cpp:92
msgid "Overwrite"
msgstr "Nadpisz"
#: rc.cpp:74
msgid ""
"Directory caching means that once you browsed a folder on a ftp session the "
"content of that folder is cached, and will be loaded from there in case you "
"enter it again. This can speed up browsing especially with large dirs. If "
"you want a fresh representation of the dir content, you can press the "
"refresh button."
msgstr "Zapisywanie katalogu oznacza że jeśli przeglądałeś katalog w czasie sesji ftp, to zawartość tego katalogu zostanie zapisana i zostanie z tego miejsca odczytana jeśli wejdziesz do danego katalogu ponownie. Powoduje to wzrost prędkości przeglądania katalogów szczególnie dużych. Jeśli chcesz odświeżyć zawartość katalogu to naciśnij klawisz Odśwież."
#: rc.cpp:75
msgid "On file exist:"
msgstr "Jeśli plik istnieje:"
#: rc.cpp:77
msgid ""
"Here you can enter a Regular Expression. Transfer items which match this "
"Regular Expression are skipped. For example a value of \"^\\.\" excludes "
"every entry beginning with \".\" from transfer."
msgstr "Wprowadź tutaj regularne wyrażenie. Transfer elementów które odpowiadają temu wyrażeniu będą pominięte. Dla przykładu wyrażenie \"^\\.\" wyklucza transfer wszystkiego zaczynającego się na \".\"."
#: rc.cpp:78
msgid "Skiplist:"
msgstr "Lista pominięć:"
#: rc.cpp:80
msgid ""
"This Field contains a regular expression, which queues the items matching "
"this regular expression before the items which don't. For example, \".sfv\" "
"would make the common checksum files with this fileending transfer first."
msgstr ""
#: rc.cpp:84
msgid "Priority list:"
msgstr "Lista priorytetów:"
#: rc.cpp:85
msgid "Directory caching:"
msgstr "Zapisywanie katalogu:"
#: rc.cpp:86
msgid ""
"This field can hold an executable and its arguments which will be run, when "
"last item of in queue has finished transferring. For Example, on KDE "
"desktops the entry \"dcop ksmserver ksmserver logout 0 0 0\" would shutdown "
"the computer automatically."
msgstr "W tym polu można wpisać nazwę pliku wykonywalnego wraz z argumentami który ma być wykonany gdy ostatni element z kolejki zostanie przesłany. Dla przykładu w środowisku KDE wypisanie polecenia \"dcop ksmserver logout 0 0 0\" spowoduje automatyczne wyłączenie komputera."
#: rc.cpp:88
msgid "Resume (if possible)"
msgstr "Wznów ( jeśli możliwe)"
#: rc.cpp:89 rc.cpp:91 rc.cpp:93
msgid ""
"These Radio Buttons indicate how the application should proceed if a file to "
"be transfered already exists on the destination. Usually the user is asked "
"by the application how to proceed if this occurs, in case you aren't present "
"during the transfer you can enable this feature."
msgstr "Te ustawienia wskazują jak aplikacja ma się zachować jeśli plik który ma być przesłany już istnieje. Zwykle użytkownik jest pytany przez aplikacje co ma robić. W przypadku gdy użytkownik jest nieobecny w trakcie transferu możesz włączyć tą funkcję."
#: rc.cpp:94
msgid "On queue finished:"
msgstr "Po zakończeniu kolejki:"
#: rc.cpp:95
msgid "Kasablanca x"
msgstr "Kasablanka x"
#: rc.cpp:103 rc.cpp:106
msgid "Size"
msgstr "Rozmiar"
#: rc.cpp:104 rc.cpp:107
msgid "Date"
msgstr "Data"
#: rc.cpp:111
msgid "Show system tray icon:"
msgstr "Pokaż ikonę w trayu:"
#: rc.cpp:112
msgid "Show command lines:"
msgstr "Pokaż linię komend:"
#: rc.cpp:113
msgid "Hide hidden files from view:"
msgstr "Nie pokazuj ukrytych plików:"
#: rc.cpp:117
msgid "Logwindow Font:"
msgstr "Czcionka okna logów:"
#: rc.cpp:118
msgid "A RegExp which describes the items to skip at transfer."
msgstr "RegExp opisuje elementy jakie mają być pominięte."
#: rc.cpp:119
msgid "A RegExp which describes the items to transfer first."
msgstr "RegExp opisuje elementy jakie mają być przesłane w pierwszej kolejności."
#: rc.cpp:120
msgid "The font for the logwindow."
msgstr "Czcionka w oknie logów."
#: rc.cpp:121
msgid "The color value for local messages on the logging window."
msgstr "Kolor lokalnych wiadomości w oknie logów."
#: rc.cpp:122
msgid "The color value for successful remote messages on the logging window."
msgstr "Kolor sukcesów odległych wiadomości w oknie logów."
#: rc.cpp:123
msgid "The color value for the background on the logging window."
msgstr "Kolor tła w oknie logów."
#: rc.cpp:124
msgid "The color value for failed remote messages on the logging window."
msgstr "Kolor błędów odległych komunikatów w oknie logów."

@ -0,0 +1,37 @@
# set the include path for X, qt and KDE
INCLUDES = $(all_includes)
# these are the headers for your project
noinst_HEADERS = kasablanca.h bookmarkdialog.h customconnectdialog.h fileexistsdialog.h kbitem.h ftplib.h ftpsession.h kbfileinfo.h kbdirinfo.h kbtransferitem.h kbtransferdir.h kbtransferfile.h kbtaskview.h kbbookmarkitem.h kbsiteinfo.h importdialog.h kbstatustip.h
# let automoc handle all of the meta source files (moc)
METASOURCES = AUTO
messages: rc.cpp
$(XGETTEXT) *.cpp -o $(podir)/kasablanca.pot
KDE_ICON = kasablanca
#########################################################################
# APPLICATION SECTION
#########################################################################
# this is the program that gets installed. it's name is used for all
# of the other Makefile.am variables
bin_PROGRAMS = kasablanca
# the application source, library search path, and link libraries
kasablanca_SOURCES = main.cpp kasablanca.cpp bookmarkdialog.cpp customconnectdialog.cpp fileexistsdialog.cpp kbitem.cpp Q_bookmarkdialog.ui Q_fileexistsdialog.ui Q_mainwindow.ui eventhandler.cpp ftpthread.cpp ftplib.cpp ftpsession.cpp kbfileinfo.cpp kbdirinfo.cpp kbdir.cpp kbfile.cpp kbtransferitem.cpp kbtransferdir.cpp kbtransferfile.cpp kbconfig.kcfgc Q_colorspreferencesdialog.ui Q_generalpreferencesdialog.ui kbtaskview.cpp Q_userinterfacepreferencesdialog.ui kbbookmarkitem.cpp kbsiteinfo.cpp Q_customconnectdialog.ui Q_importdialog.ui importdialog.cpp kbstatustip.cpp
kasablanca_LDFLAGS = $(KDE_RPATH) $(all_libraries)
kasablanca_LDADD = -lssl $(LIB_KDEUI)
# this is where the desktop file will go
shelldesktopdir = $(kde_appsdir)/Utilities
shelldesktop_DATA = kasablanca.desktop
# this is where the shell's XML-GUI resource file goes
shellrcdir = $(kde_datadir)/kasablanca
shellrc_DATA = kasablancaui.rc about.png
# this is the config xml
kde_kcfg_DATA=kbconfig.kcfg

@ -0,0 +1,214 @@
#include <kdialog.h>
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file '/home/mkulke/Development/kasablanca/src/Q_bookmarkdialog.ui'
**
** Created: Mo Jan 31 15:02:05 2005
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.3 edited Nov 24 2003 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "Q_bookmarkdialog.h"
#include <qvariant.h>
#include <qpushbutton.h>
#include <qsplitter.h>
#include <qheader.h>
#include <klistview.h>
#include <qtabwidget.h>
#include <klineedit.h>
#include <qlabel.h>
#include <kcombobox.h>
#include <qlineedit.h>
#include <qcheckbox.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
/*
* Constructs a KasablancaBookmarkDialog as a child of 'parent', with the
* name 'name' and widget flags set to 'f'.
*/
KasablancaBookmarkDialog::KasablancaBookmarkDialog( QWidget* parent, const char* name, WFlags fl )
: QWidget( parent, name, fl )
{
if ( !name )
setName( "KasablancaBookmarkDialog" );
setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, sizePolicy().hasHeightForWidth() ) );
KasablancaBookmarkDialogLayout = new QGridLayout( this, 1, 1, 2, 6, "KasablancaBookmarkDialogLayout");
splitter1 = new QSplitter( this, "splitter1" );
splitter1->setOrientation( QSplitter::Horizontal );
BookmarkListView = new KListView( splitter1, "BookmarkListView" );
BookmarkListView->addColumn( tr2i18n( "Name" ) );
BookmarkListView->header()->setClickEnabled( FALSE, BookmarkListView->header()->count() - 1 );
BookmarkListView->setMinimumSize( QSize( 0, 0 ) );
BookmarkListView->setAcceptDrops( TRUE );
BookmarkListView->setDragEnabled( TRUE );
SettingsTab = new QTabWidget( splitter1, "SettingsTab" );
SettingsTab->setEnabled( TRUE );
SettingsTab->setMinimumSize( QSize( 360, 232 ) );
tab = new QWidget( SettingsTab, "tab" );
tabLayout = new QGridLayout( tab, 1, 1, 2, 6, "tabLayout");
PassEdit = new KLineEdit( tab, "PassEdit" );
PassEdit->setEnabled( FALSE );
PassEdit->setEchoMode( KLineEdit::Password );
tabLayout->addMultiCellWidget( PassEdit, 3, 3, 1, 2 );
UserEdit = new KLineEdit( tab, "UserEdit" );
UserEdit->setEnabled( FALSE );
tabLayout->addMultiCellWidget( UserEdit, 2, 2, 1, 2 );
InfoEdit = new KLineEdit( tab, "InfoEdit" );
InfoEdit->setEnabled( FALSE );
tabLayout->addMultiCellWidget( InfoEdit, 1, 1, 1, 2 );
NameEdit = new KLineEdit( tab, "NameEdit" );
NameEdit->setEnabled( FALSE );
NameEdit->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, NameEdit->sizePolicy().hasHeightForWidth() ) );
tabLayout->addMultiCellWidget( NameEdit, 0, 0, 1, 2 );
textLabel1_3 = new QLabel( tab, "textLabel1_3" );
tabLayout->addWidget( textLabel1_3, 2, 0 );
textLabel1 = new QLabel( tab, "textLabel1" );
tabLayout->addWidget( textLabel1, 0, 0 );
textLabel1_2_2_2 = new QLabel( tab, "textLabel1_2_2_2" );
tabLayout->addWidget( textLabel1_2_2_2, 4, 0 );
textLabel1_2 = new QLabel( tab, "textLabel1_2" );
tabLayout->addWidget( textLabel1_2, 1, 0 );
textLabel1_2_2 = new QLabel( tab, "textLabel1_2_2" );
tabLayout->addWidget( textLabel1_2_2, 3, 0 );
textLabel1_2_2_3 = new QLabel( tab, "textLabel1_2_2_3" );
tabLayout->addWidget( textLabel1_2_2_3, 5, 0 );
spacer8 = new QSpacerItem( 20, 16, QSizePolicy::Minimum, QSizePolicy::Expanding );
tabLayout->addItem( spacer8, 6, 2 );
ModeComboBox = new KComboBox( FALSE, tab, "ModeComboBox" );
ModeComboBox->setEnabled( FALSE );
tabLayout->addWidget( ModeComboBox, 5, 1 );
EncryptionComboBox = new KComboBox( FALSE, tab, "EncryptionComboBox" );
EncryptionComboBox->setEnabled( FALSE );
tabLayout->addWidget( EncryptionComboBox, 4, 1 );
spacer10 = new QSpacerItem( 111, 31, QSizePolicy::Expanding, QSizePolicy::Minimum );
tabLayout->addMultiCell( spacer10, 4, 5, 2, 2 );
SettingsTab->insertTab( tab, QString("") );
tab_2 = new QWidget( SettingsTab, "tab_2" );
tabLayout_2 = new QGridLayout( tab_2, 1, 1, 2, 6, "tabLayout_2");
textLabel3 = new QLabel( tab_2, "textLabel3" );
tabLayout_2->addWidget( textLabel3, 0, 0 );
DefaultDirectoryEdit = new QLineEdit( tab_2, "DefaultDirectoryEdit" );
DefaultDirectoryEdit->setEnabled( FALSE );
tabLayout_2->addMultiCellWidget( DefaultDirectoryEdit, 0, 0, 1, 3 );
textLabel2 = new QLabel( tab_2, "textLabel2" );
tabLayout_2->addWidget( textLabel2, 1, 0 );
AlternativeFxpCheckBox = new QCheckBox( tab_2, "AlternativeFxpCheckBox" );
AlternativeFxpCheckBox->setEnabled( FALSE );
tabLayout_2->addWidget( AlternativeFxpCheckBox, 1, 3 );
CorrectPasvCheckBox = new QCheckBox( tab_2, "CorrectPasvCheckBox" );
CorrectPasvCheckBox->setEnabled( FALSE );
tabLayout_2->addWidget( CorrectPasvCheckBox, 2, 3 );
textLabel1_2_2_2_2 = new QLabel( tab_2, "textLabel1_2_2_2_2" );
tabLayout_2->addMultiCellWidget( textLabel1_2_2_2_2, 2, 2, 0, 1 );
spacer16 = new QSpacerItem( 60, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
tabLayout_2->addMultiCell( spacer16, 1, 2, 2, 2 );
spacer7 = new QSpacerItem( 20, 71, QSizePolicy::Minimum, QSizePolicy::Expanding );
tabLayout_2->addItem( spacer7, 3, 1 );
SettingsTab->insertTab( tab_2, QString("") );
KasablancaBookmarkDialogLayout->addWidget( splitter1, 0, 0 );
languageChange();
resize( QSize(541, 240).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
// tab order
setTabOrder( NameEdit, InfoEdit );
setTabOrder( InfoEdit, UserEdit );
setTabOrder( UserEdit, PassEdit );
setTabOrder( PassEdit, EncryptionComboBox );
setTabOrder( EncryptionComboBox, ModeComboBox );
}
/*
* Destroys the object and frees any allocated resources
*/
KasablancaBookmarkDialog::~KasablancaBookmarkDialog()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void KasablancaBookmarkDialog::languageChange()
{
setCaption( tr2i18n( "Bookmarks" ) );
BookmarkListView->header()->setLabel( 0, tr2i18n( "Name" ) );
QWhatsThis::add( PassEdit, tr2i18n( "The user's password. Anonymous ftp servers ussually don't use passwords or accept passwords in the form of \"user@emailaddress.com\"." ) );
QWhatsThis::add( UserEdit, tr2i18n( "The ftp Login Username. On open ftp servers you usually login using \"anonymous\"." ) );
InfoEdit->setInputMask( QString::null );
QWhatsThis::add( InfoEdit, tr2i18n( "This information points to the the ftp server. HOST can either be a standard ip adress like 192.168.2.1 or a domain name. PORT is the port number on which the ftp server listens. In most cases this is 21. Both are seperated by a \":\" character. A legit input would be \"ftp.kde.org:21\"." ) );
QWhatsThis::add( NameEdit, tr2i18n( "The ftp's name is entered here." ) );
textLabel1_3->setText( tr2i18n( "Username:" ) );
textLabel1->setText( tr2i18n( "Name:" ) );
textLabel1_2_2_2->setText( tr2i18n( "Encryption:" ) );
QWhatsThis::add( textLabel1_2_2_2, QString::null );
textLabel1_2->setText( tr2i18n( "Host:Port:" ) );
textLabel1_2_2->setText( tr2i18n( "Password:" ) );
textLabel1_2_2_3->setText( tr2i18n( "Mode:" ) );
ModeComboBox->clear();
ModeComboBox->insertItem( tr2i18n( "Active Mode" ) );
ModeComboBox->insertItem( tr2i18n( "Passive Mode" ) );
QWhatsThis::add( ModeComboBox, tr2i18n( "The mode you are using for data transfer. This is quite important in case you're behind a firewall or a router. In these cases you depend on the passive mode, which makes the client connects to the ftp server for data transfer. Passive mode is the standard method today, while active mode is the old way to do data transfers, the client listens for the server to connect in active mode." ) );
EncryptionComboBox->clear();
EncryptionComboBox->insertItem( tr2i18n( "Unencrypted" ) );
EncryptionComboBox->insertItem( tr2i18n( "Level 1" ) );
EncryptionComboBox->insertItem( tr2i18n( "Level 2" ) );
EncryptionComboBox->insertItem( tr2i18n( "Level 3" ) );
QWhatsThis::add( EncryptionComboBox, tr2i18n( "There are 4 encryption levels available. Unencrypted leaves all traffic clear and without encryption. Most ftp servers allow only this mode. Level 1 encryption means that the traffic on the control connection is encrypted while data transfer remains clear. Level 2 is basically the same with the exception of directory information which is transfered on the data channel, but is encrypted too. Eventually Level 3 encrypts everything all communication and all data traffic." ) );
SettingsTab->changeTab( tab, tr2i18n( "General" ) );
textLabel3->setText( tr2i18n( "Default directory:" ) );
textLabel2->setText( tr2i18n( "Alternative fxp:" ) );
AlternativeFxpCheckBox->setText( tr2i18n( "Enabled" ) );
CorrectPasvCheckBox->setText( tr2i18n( "Enabled" ) );
textLabel1_2_2_2_2->setText( tr2i18n( "Correct pasv responses:" ) );
SettingsTab->changeTab( tab_2, tr2i18n( "Advanced" ) );
}
#include "Q_bookmarkdialog.moc"

@ -0,0 +1,420 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>KasablancaBookmarkDialog</class>
<widget class="QWidget">
<property name="name">
<cstring>KasablancaBookmarkDialog</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>541</width>
<height>240</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="caption">
<string>Bookmarks</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>2</number>
</property>
<widget class="QSplitter" row="0" column="0">
<property name="name">
<cstring>splitter1</cstring>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
<widget class="KListView">
<column>
<property name="text">
<string>Name</string>
</property>
<property name="clickable">
<bool>false</bool>
</property>
<property name="resizable">
<bool>true</bool>
</property>
</column>
<property name="name">
<cstring>BookmarkListView</cstring>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="acceptDrops">
<bool>true</bool>
</property>
<property name="dragEnabled">
<bool>true</bool>
</property>
</widget>
<widget class="QTabWidget">
<property name="name">
<cstring>SettingsTab</cstring>
</property>
<property name="enabled">
<bool>true</bool>
</property>
<property name="minimumSize">
<size>
<width>360</width>
<height>232</height>
</size>
</property>
<widget class="QWidget">
<property name="name">
<cstring>tab</cstring>
</property>
<attribute name="title">
<string>General</string>
</attribute>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>2</number>
</property>
<widget class="KLineEdit" row="3" column="1" rowspan="1" colspan="2">
<property name="name">
<cstring>PassEdit</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="echoMode">
<enum>Password</enum>
</property>
<property name="whatsThis" stdset="0">
<string>The user's password. Anonymous ftp servers ussually don't use passwords or accept passwords in the form of "user@emailaddress.com".</string>
</property>
</widget>
<widget class="KLineEdit" row="2" column="1" rowspan="1" colspan="2">
<property name="name">
<cstring>UserEdit</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="whatsThis" stdset="0">
<string>The ftp Login Username. On open ftp servers you usually login using "anonymous".</string>
</property>
</widget>
<widget class="KLineEdit" row="1" column="1" rowspan="1" colspan="2">
<property name="name">
<cstring>InfoEdit</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="inputMask">
<string></string>
</property>
<property name="whatsThis" stdset="0">
<string>This information points to the the ftp server. HOST can either be a standard ip adress like 192.168.2.1 or a domain name. PORT is the port number on which the ftp server listens. In most cases this is 21. Both are seperated by a ":" character. A legit input would be "ftp.kde.org:21".</string>
</property>
</widget>
<widget class="KLineEdit" row="0" column="1" rowspan="1" colspan="2">
<property name="name">
<cstring>NameEdit</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="whatsThis" stdset="0">
<string>The ftp's name is entered here.</string>
</property>
</widget>
<widget class="QLabel" row="2" column="0">
<property name="name">
<cstring>textLabel1_3</cstring>
</property>
<property name="text">
<string>Username:</string>
</property>
</widget>
<widget class="QLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
<property name="text">
<string>Name:</string>
</property>
</widget>
<widget class="QLabel" row="4" column="0">
<property name="name">
<cstring>textLabel1_2_2_2</cstring>
</property>
<property name="text">
<string>Encryption:</string>
</property>
<property name="whatsThis" stdset="0">
<string></string>
</property>
</widget>
<widget class="QLabel" row="1" column="0">
<property name="name">
<cstring>textLabel1_2</cstring>
</property>
<property name="text">
<string>Host:Port:</string>
</property>
</widget>
<widget class="QLabel" row="3" column="0">
<property name="name">
<cstring>textLabel1_2_2</cstring>
</property>
<property name="text">
<string>Password:</string>
</property>
</widget>
<widget class="QLabel" row="5" column="0">
<property name="name">
<cstring>textLabel1_2_2_3</cstring>
</property>
<property name="text">
<string>Mode:</string>
</property>
</widget>
<spacer row="6" column="2">
<property name="name">
<cstring>spacer8</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>20</width>
<height>16</height>
</size>
</property>
</spacer>
<widget class="KComboBox" row="5" column="1">
<item>
<property name="text">
<string>Active Mode</string>
</property>
</item>
<item>
<property name="text">
<string>Passive Mode</string>
</property>
</item>
<property name="name">
<cstring>ModeComboBox</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="whatsThis" stdset="0">
<string>The mode you are using for data transfer. This is quite important in case you're behind a firewall or a router. In these cases you depend on the passive mode, which makes the client connects to the ftp server for data transfer. Passive mode is the standard method today, while active mode is the old way to do data transfers, the client listens for the server to connect in active mode.</string>
</property>
</widget>
<widget class="KComboBox" row="4" column="1">
<item>
<property name="text">
<string>Unencrypted</string>
</property>
</item>
<item>
<property name="text">
<string>Level 1</string>
</property>
</item>
<item>
<property name="text">
<string>Level 2</string>
</property>
</item>
<item>
<property name="text">
<string>Level 3</string>
</property>
</item>
<property name="name">
<cstring>EncryptionComboBox</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="whatsThis" stdset="0">
<string>There are 4 encryption levels available. Unencrypted leaves all traffic clear and without encryption. Most ftp servers allow only this mode. Level 1 encryption means that the traffic on the control connection is encrypted while data transfer remains clear. Level 2 is basically the same with the exception of directory information which is transfered on the data channel, but is encrypted too. Eventually Level 3 encrypts everything all communication and all data traffic.</string>
</property>
</widget>
<spacer row="4" column="2" rowspan="2" colspan="1">
<property name="name">
<cstring>spacer10</cstring>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>111</width>
<height>31</height>
</size>
</property>
</spacer>
</grid>
</widget>
<widget class="QWidget">
<property name="name">
<cstring>tab</cstring>
</property>
<attribute name="title">
<string>Advanced</string>
</attribute>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>2</number>
</property>
<widget class="QLabel" row="0" column="0">
<property name="name">
<cstring>textLabel3</cstring>
</property>
<property name="text">
<string>Default directory:</string>
</property>
</widget>
<widget class="QLineEdit" row="0" column="1" rowspan="1" colspan="3">
<property name="name">
<cstring>DefaultDirectoryEdit</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
</widget>
<widget class="QLabel" row="1" column="0">
<property name="name">
<cstring>textLabel2</cstring>
</property>
<property name="text">
<string>Alternative fxp:</string>
</property>
</widget>
<widget class="QCheckBox" row="1" column="3">
<property name="name">
<cstring>AlternativeFxpCheckBox</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Enabled</string>
</property>
</widget>
<widget class="QCheckBox" row="2" column="3">
<property name="name">
<cstring>CorrectPasvCheckBox</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Enabled</string>
</property>
</widget>
<widget class="QLabel" row="2" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>textLabel1_2_2_2_2</cstring>
</property>
<property name="text">
<string>Correct pasv responses:</string>
</property>
</widget>
<spacer row="1" column="2" rowspan="2" colspan="1">
<property name="name">
<cstring>spacer16</cstring>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>60</width>
<height>20</height>
</size>
</property>
</spacer>
<spacer row="3" column="1">
<property name="name">
<cstring>spacer7</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>20</width>
<height>71</height>
</size>
</property>
</spacer>
</grid>
</widget>
</widget>
</widget>
</grid>
</widget>
<customwidgets>
</customwidgets>
<tabstops>
<tabstop>NameEdit</tabstop>
<tabstop>InfoEdit</tabstop>
<tabstop>UserEdit</tabstop>
<tabstop>PassEdit</tabstop>
<tabstop>EncryptionComboBox</tabstop>
<tabstop>ModeComboBox</tabstop>
</tabstops>
<layoutdefaults spacing="6" margin="0"/>
<includehints>
<includehint>klistview.h</includehint>
<includehint>klineedit.h</includehint>
<includehint>klineedit.h</includehint>
<includehint>klineedit.h</includehint>
<includehint>klineedit.h</includehint>
<includehint>kcombobox.h</includehint>
<includehint>kcombobox.h</includehint>
</includehints>
</UI>

@ -0,0 +1,100 @@
#include <kdialog.h>
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file '/home/mkulke/Development/kasablanca/src/Q_colorspreferencesdialog.ui'
**
** Created: Mo Jan 31 15:02:07 2005
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.3 edited Nov 24 2003 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "Q_colorspreferencesdialog.h"
#include <qvariant.h>
#include <qlabel.h>
#include <kcolorbutton.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
/*
* Constructs a KasablancaColorsPreferencesDialog as a child of 'parent', with the
* name 'name' and widget flags set to 'f'.
*
* The dialog will by default be modeless, unless you set 'modal' to
* TRUE to construct a modal dialog.
*/
KasablancaColorsPreferencesDialog::KasablancaColorsPreferencesDialog( QWidget* parent, const char* name, bool modal, WFlags fl )
: QDialog( parent, name, modal, fl )
{
if ( !name )
setName( "KasablancaColorsPreferencesDialog" );
KasablancaColorsPreferencesDialogLayout = new QGridLayout( this, 1, 1, 11, 6, "KasablancaColorsPreferencesDialogLayout");
textLabel1_2 = new QLabel( this, "textLabel1_2" );
KasablancaColorsPreferencesDialogLayout->addWidget( textLabel1_2, 0, 0 );
textLabel1_3_3 = new QLabel( this, "textLabel1_3_3" );
KasablancaColorsPreferencesDialogLayout->addWidget( textLabel1_3_3, 1, 0 );
textLabel1_3 = new QLabel( this, "textLabel1_3" );
KasablancaColorsPreferencesDialogLayout->addWidget( textLabel1_3, 2, 0 );
textLabel1_3_2 = new QLabel( this, "textLabel1_3_2" );
KasablancaColorsPreferencesDialogLayout->addWidget( textLabel1_3_2, 3, 0 );
spacer3 = new QSpacerItem( 30, 60, QSizePolicy::Expanding, QSizePolicy::Minimum );
KasablancaColorsPreferencesDialogLayout->addMultiCell( spacer3, 0, 2, 1, 1 );
kcfg_FailureColor = new KColorButton( this, "kcfg_FailureColor" );
KasablancaColorsPreferencesDialogLayout->addWidget( kcfg_FailureColor, 2, 2 );
kcfg_SuccessColor = new KColorButton( this, "kcfg_SuccessColor" );
KasablancaColorsPreferencesDialogLayout->addWidget( kcfg_SuccessColor, 1, 2 );
kcfg_LocalColor = new KColorButton( this, "kcfg_LocalColor" );
KasablancaColorsPreferencesDialogLayout->addWidget( kcfg_LocalColor, 3, 2 );
kcfg_BackgroundColor = new KColorButton( this, "kcfg_BackgroundColor" );
KasablancaColorsPreferencesDialogLayout->addWidget( kcfg_BackgroundColor, 0, 2 );
spacer5 = new QSpacerItem( 31, 30, QSizePolicy::Minimum, QSizePolicy::Expanding );
KasablancaColorsPreferencesDialogLayout->addItem( spacer5, 4, 1 );
languageChange();
resize( QSize(241, 183).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
}
/*
* Destroys the object and frees any allocated resources
*/
KasablancaColorsPreferencesDialog::~KasablancaColorsPreferencesDialog()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void KasablancaColorsPreferencesDialog::languageChange()
{
setCaption( tr2i18n( "Colors" ) );
textLabel1_2->setText( tr2i18n( "Background:" ) );
textLabel1_3_3->setText( tr2i18n( "Success Text:" ) );
textLabel1_3->setText( tr2i18n( "Failure Text:" ) );
textLabel1_3_2->setText( tr2i18n( "Local Text:" ) );
kcfg_FailureColor->setText( QString::null );
kcfg_SuccessColor->setText( QString::null );
kcfg_LocalColor->setText( QString::null );
kcfg_BackgroundColor->setText( QString::null );
}
#include "Q_colorspreferencesdialog.moc"

@ -0,0 +1,131 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>KasablancaColorsPreferencesDialog</class>
<widget class="QDialog">
<property name="name">
<cstring>KasablancaColorsPreferencesDialog</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>241</width>
<height>183</height>
</rect>
</property>
<property name="caption">
<string>Colors</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1_2</cstring>
</property>
<property name="text">
<string>Background:</string>
</property>
</widget>
<widget class="QLabel" row="1" column="0">
<property name="name">
<cstring>textLabel1_3_3</cstring>
</property>
<property name="text">
<string>Success Text:</string>
</property>
</widget>
<widget class="QLabel" row="2" column="0">
<property name="name">
<cstring>textLabel1_3</cstring>
</property>
<property name="text">
<string>Failure Text:</string>
</property>
</widget>
<widget class="QLabel" row="3" column="0">
<property name="name">
<cstring>textLabel1_3_2</cstring>
</property>
<property name="text">
<string>Local Text:</string>
</property>
</widget>
<spacer row="0" column="1" rowspan="3" colspan="1">
<property name="name">
<cstring>spacer3</cstring>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>30</width>
<height>60</height>
</size>
</property>
</spacer>
<widget class="KColorButton" row="2" column="2">
<property name="name">
<cstring>kcfg_FailureColor</cstring>
</property>
<property name="text">
<string></string>
</property>
</widget>
<widget class="KColorButton" row="1" column="2">
<property name="name">
<cstring>kcfg_SuccessColor</cstring>
</property>
<property name="text">
<string></string>
</property>
</widget>
<widget class="KColorButton" row="3" column="2">
<property name="name">
<cstring>kcfg_LocalColor</cstring>
</property>
<property name="text">
<string></string>
</property>
</widget>
<widget class="KColorButton" row="0" column="2">
<property name="name">
<cstring>kcfg_BackgroundColor</cstring>
</property>
<property name="text">
<string></string>
</property>
</widget>
<spacer row="4" column="1">
<property name="name">
<cstring>spacer5</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>31</width>
<height>30</height>
</size>
</property>
</spacer>
</grid>
</widget>
<customwidgets>
</customwidgets>
<layoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kcolorbutton.h</includehint>
<includehint>kcolorbutton.h</includehint>
<includehint>kcolorbutton.h</includehint>
<includehint>kcolorbutton.h</includehint>
</includehints>
</UI>

@ -0,0 +1,180 @@
#include <kdialog.h>
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file '/home/mkulke/Development/kasablanca/src/Q_customconnectdialog.ui'
**
** Created: Mo Jan 31 15:02:09 2005
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.3 edited Nov 24 2003 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "Q_customconnectdialog.h"
#include <qvariant.h>
#include <qpushbutton.h>
#include <qtabwidget.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qcheckbox.h>
#include <qcombobox.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
/*
* Constructs a KasablancaCustomConnectDialog as a child of 'parent', with the
* name 'name' and widget flags set to 'f'.
*/
KasablancaCustomConnectDialog::KasablancaCustomConnectDialog( QWidget* parent, const char* name, WFlags fl )
: QWidget( parent, name, fl )
{
if ( !name )
setName( "KasablancaCustomConnectDialog" );
KasablancaCustomConnectDialogLayout = new QGridLayout( this, 1, 1, 2, 6, "KasablancaCustomConnectDialogLayout");
Custom = new QTabWidget( this, "Custom" );
tab = new QWidget( Custom, "tab" );
tabLayout = new QGridLayout( tab, 1, 1, 2, 6, "tabLayout");
textLabel4 = new QLabel( tab, "textLabel4" );
textLabel4->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignLeft ) );
tabLayout->addWidget( textLabel4, 2, 0 );
UserLineEdit = new QLineEdit( tab, "UserLineEdit" );
UserLineEdit->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, UserLineEdit->sizePolicy().hasHeightForWidth() ) );
tabLayout->addMultiCellWidget( UserLineEdit, 1, 1, 1, 2 );
PassLineEdit = new QLineEdit( tab, "PassLineEdit" );
PassLineEdit->setEchoMode( QLineEdit::Password );
tabLayout->addMultiCellWidget( PassLineEdit, 2, 2, 1, 2 );
InfoEdit = new QLineEdit( tab, "InfoEdit" );
InfoEdit->setAlignment( int( QLineEdit::AlignAuto ) );
tabLayout->addMultiCellWidget( InfoEdit, 0, 0, 1, 2 );
textLabel3 = new QLabel( tab, "textLabel3" );
textLabel3->setAlignment( int( QLabel::AlignVCenter ) );
tabLayout->addWidget( textLabel3, 1, 0 );
textLabel2 = new QLabel( tab, "textLabel2" );
textLabel2->setAlignment( int( QLabel::AlignVCenter ) );
tabLayout->addWidget( textLabel2, 0, 0 );
textLabel1 = new QLabel( tab, "textLabel1" );
textLabel1->setAlignment( int( QLabel::AlignVCenter ) );
tabLayout->addWidget( textLabel1, 3, 0 );
textLabel1_2 = new QLabel( tab, "textLabel1_2" );
textLabel1_2->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter ) );
tabLayout->addWidget( textLabel1_2, 4, 0 );
AnonymousCheckBox = new QCheckBox( tab, "AnonymousCheckBox" );
tabLayout->addWidget( AnonymousCheckBox, 1, 3 );
spacer12 = new QSpacerItem( 20, 16, QSizePolicy::Minimum, QSizePolicy::Expanding );
tabLayout->addItem( spacer12, 5, 1 );
EncryptionComboBox = new QComboBox( FALSE, tab, "EncryptionComboBox" );
tabLayout->addWidget( EncryptionComboBox, 3, 1 );
ModeComboBox = new QComboBox( FALSE, tab, "ModeComboBox" );
tabLayout->addWidget( ModeComboBox, 4, 1 );
spacer10 = new QSpacerItem( 120, 31, QSizePolicy::Expanding, QSizePolicy::Minimum );
tabLayout->addMultiCell( spacer10, 3, 4, 2, 3 );
Custom->insertTab( tab, QString("") );
tab_2 = new QWidget( Custom, "tab_2" );
tabLayout_2 = new QGridLayout( tab_2, 1, 1, 2, 6, "tabLayout_2");
textLabel2_2 = new QLabel( tab_2, "textLabel2_2" );
tabLayout_2->addWidget( textLabel2_2, 1, 0 );
AlternativeFxpCheckBox = new QCheckBox( tab_2, "AlternativeFxpCheckBox" );
tabLayout_2->addWidget( AlternativeFxpCheckBox, 1, 3 );
DefaultDirectoryEdit = new QLineEdit( tab_2, "DefaultDirectoryEdit" );
tabLayout_2->addMultiCellWidget( DefaultDirectoryEdit, 0, 0, 1, 3 );
textLabel1_2_2_2_2 = new QLabel( tab_2, "textLabel1_2_2_2_2" );
tabLayout_2->addMultiCellWidget( textLabel1_2_2_2_2, 2, 2, 0, 1 );
CorrectPasvCheckBox = new QCheckBox( tab_2, "CorrectPasvCheckBox" );
tabLayout_2->addWidget( CorrectPasvCheckBox, 2, 3 );
textLabel3_2 = new QLabel( tab_2, "textLabel3_2" );
tabLayout_2->addWidget( textLabel3_2, 0, 0 );
spacer16 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
tabLayout_2->addItem( spacer16, 3, 1 );
spacer17 = new QSpacerItem( 21, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
tabLayout_2->addMultiCell( spacer17, 1, 2, 2, 2 );
Custom->insertTab( tab_2, QString("") );
KasablancaCustomConnectDialogLayout->addWidget( Custom, 0, 0 );
languageChange();
resize( QSize(370, 214).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
}
/*
* Destroys the object and frees any allocated resources
*/
KasablancaCustomConnectDialog::~KasablancaCustomConnectDialog()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void KasablancaCustomConnectDialog::languageChange()
{
setCaption( tr2i18n( "Custom Site" ) );
textLabel4->setText( tr2i18n( "Password:" ) );
QWhatsThis::add( UserLineEdit, tr2i18n( "The ftp Login Username. On open ftp servers you usually login using \"anonymous\"." ) );
QWhatsThis::add( PassLineEdit, tr2i18n( "The user's password. Anonymous ftp servers ussually don't use passwords or accept passwords in the form of \"user@emailaddress.com\"." ) );
InfoEdit->setText( QString::null );
QWhatsThis::add( InfoEdit, tr2i18n( "This information points to the the ftp server. HOST can either be a standard ip adress like \"192.168.2.1\" or a domain name. PORT is the port number on which the ftp server listens. In most cases this is 21. Both are seperated by a \":\" character. A legit input would be \"ftp.kde.org:21\"." ) );
textLabel3->setText( tr2i18n( "Username:" ) );
textLabel2->setText( tr2i18n( "Host:Port:" ) );
textLabel1->setText( tr2i18n( "Encryption:" ) );
textLabel1_2->setText( tr2i18n( "Mode:" ) );
AnonymousCheckBox->setText( tr2i18n( "Anonymous" ) );
EncryptionComboBox->clear();
EncryptionComboBox->insertItem( tr2i18n( "Unencrypted" ) );
EncryptionComboBox->insertItem( tr2i18n( "Level 1" ) );
EncryptionComboBox->insertItem( tr2i18n( "Level 2" ) );
EncryptionComboBox->insertItem( tr2i18n( "Level 3" ) );
QWhatsThis::add( EncryptionComboBox, tr2i18n( "There are 4 encryption levels available. Unencrypted leaves all traffic clear and without encryption. Most ftp servers allow only this mode. Level 1 encryption means that the traffic on the control connection is encrypted while data transfer remains clear. Level 2 is basically the same with the exception of directory information which is transfered on the data channel, but is encrypted too. Eventually Level 3 encrypts everything all communication and all data traffic." ) );
ModeComboBox->clear();
ModeComboBox->insertItem( tr2i18n( "Passive Mode" ) );
ModeComboBox->insertItem( tr2i18n( "Active Mode" ) );
QWhatsThis::add( ModeComboBox, tr2i18n( "The mode you are using for data transfer. This is quite important in case you're behind a firewall or a router. In these cases you depend on the passive mode, which makes the client connects to the ftp server for data transfer. Passive mode is the standard method today, while active mode is the old way to do data transfers, the client listens for the server to connect in active mode." ) );
Custom->changeTab( tab, tr2i18n( "General" ) );
textLabel2_2->setText( tr2i18n( "Alternative fxp:" ) );
AlternativeFxpCheckBox->setText( tr2i18n( "Enabled" ) );
textLabel1_2_2_2_2->setText( tr2i18n( "Correct pasv responses:" ) );
CorrectPasvCheckBox->setText( tr2i18n( "Enabled" ) );
textLabel3_2->setText( tr2i18n( "Default directory:" ) );
Custom->changeTab( tab_2, tr2i18n( "Advanced" ) );
}
#include "Q_customconnectdialog.moc"

@ -0,0 +1,328 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>KasablancaCustomConnectDialog</class>
<widget class="QWidget">
<property name="name">
<cstring>KasablancaCustomConnectDialog</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>370</width>
<height>214</height>
</rect>
</property>
<property name="caption">
<string>Custom Site</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>2</number>
</property>
<widget class="QTabWidget" row="0" column="0">
<property name="name">
<cstring>Custom</cstring>
</property>
<widget class="QWidget">
<property name="name">
<cstring>tab</cstring>
</property>
<attribute name="title">
<string>General</string>
</attribute>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>2</number>
</property>
<widget class="QLabel" row="2" column="0">
<property name="name">
<cstring>textLabel4</cstring>
</property>
<property name="text">
<string>Password:</string>
</property>
<property name="alignment">
<set>AlignVCenter|AlignLeft</set>
</property>
</widget>
<widget class="QLineEdit" row="1" column="1" rowspan="1" colspan="2">
<property name="name">
<cstring>UserLineEdit</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="whatsThis" stdset="0">
<string>The ftp Login Username. On open ftp servers you usually login using "anonymous".</string>
</property>
</widget>
<widget class="QLineEdit" row="2" column="1" rowspan="1" colspan="2">
<property name="name">
<cstring>PassLineEdit</cstring>
</property>
<property name="echoMode">
<enum>Password</enum>
</property>
<property name="whatsThis" stdset="0">
<string>The user's password. Anonymous ftp servers ussually don't use passwords or accept passwords in the form of "user@emailaddress.com".</string>
</property>
</widget>
<widget class="QLineEdit" row="0" column="1" rowspan="1" colspan="2">
<property name="name">
<cstring>InfoEdit</cstring>
</property>
<property name="text">
<string></string>
</property>
<property name="alignment">
<set>AlignAuto</set>
</property>
<property name="whatsThis" stdset="0">
<string>This information points to the the ftp server. HOST can either be a standard ip adress like "192.168.2.1" or a domain name. PORT is the port number on which the ftp server listens. In most cases this is 21. Both are seperated by a ":" character. A legit input would be "ftp.kde.org:21".</string>
</property>
</widget>
<widget class="QLabel" row="1" column="0">
<property name="name">
<cstring>textLabel3</cstring>
</property>
<property name="text">
<string>Username:</string>
</property>
<property name="alignment">
<set>AlignVCenter</set>
</property>
</widget>
<widget class="QLabel" row="0" column="0">
<property name="name">
<cstring>textLabel2</cstring>
</property>
<property name="text">
<string>Host:Port:</string>
</property>
<property name="alignment">
<set>AlignVCenter</set>
</property>
</widget>
<widget class="QLabel" row="3" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
<property name="text">
<string>Encryption:</string>
</property>
<property name="alignment">
<set>AlignVCenter</set>
</property>
</widget>
<widget class="QLabel" row="4" column="0">
<property name="name">
<cstring>textLabel1_2</cstring>
</property>
<property name="text">
<string>Mode:</string>
</property>
<property name="alignment">
<set>WordBreak|AlignVCenter</set>
</property>
</widget>
<widget class="QCheckBox" row="1" column="3">
<property name="name">
<cstring>AnonymousCheckBox</cstring>
</property>
<property name="text">
<string>Anonymous</string>
</property>
</widget>
<spacer row="5" column="1">
<property name="name">
<cstring>spacer12</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>20</width>
<height>16</height>
</size>
</property>
</spacer>
<widget class="QComboBox" row="3" column="1">
<item>
<property name="text">
<string>Unencrypted</string>
</property>
</item>
<item>
<property name="text">
<string>Level 1</string>
</property>
</item>
<item>
<property name="text">
<string>Level 2</string>
</property>
</item>
<item>
<property name="text">
<string>Level 3</string>
</property>
</item>
<property name="name">
<cstring>EncryptionComboBox</cstring>
</property>
<property name="whatsThis" stdset="0">
<string>There are 4 encryption levels available. Unencrypted leaves all traffic clear and without encryption. Most ftp servers allow only this mode. Level 1 encryption means that the traffic on the control connection is encrypted while data transfer remains clear. Level 2 is basically the same with the exception of directory information which is transfered on the data channel, but is encrypted too. Eventually Level 3 encrypts everything all communication and all data traffic.</string>
</property>
</widget>
<widget class="QComboBox" row="4" column="1">
<item>
<property name="text">
<string>Passive Mode</string>
</property>
</item>
<item>
<property name="text">
<string>Active Mode</string>
</property>
</item>
<property name="name">
<cstring>ModeComboBox</cstring>
</property>
<property name="whatsThis" stdset="0">
<string>The mode you are using for data transfer. This is quite important in case you're behind a firewall or a router. In these cases you depend on the passive mode, which makes the client connects to the ftp server for data transfer. Passive mode is the standard method today, while active mode is the old way to do data transfers, the client listens for the server to connect in active mode.</string>
</property>
</widget>
<spacer row="3" column="2" rowspan="2" colspan="2">
<property name="name">
<cstring>spacer10</cstring>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>120</width>
<height>31</height>
</size>
</property>
</spacer>
</grid>
</widget>
<widget class="QWidget">
<property name="name">
<cstring>tab</cstring>
</property>
<attribute name="title">
<string>Advanced</string>
</attribute>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>2</number>
</property>
<widget class="QLabel" row="1" column="0">
<property name="name">
<cstring>textLabel2_2</cstring>
</property>
<property name="text">
<string>Alternative fxp:</string>
</property>
</widget>
<widget class="QCheckBox" row="1" column="3">
<property name="name">
<cstring>AlternativeFxpCheckBox</cstring>
</property>
<property name="text">
<string>Enabled</string>
</property>
</widget>
<widget class="QLineEdit" row="0" column="1" rowspan="1" colspan="3">
<property name="name">
<cstring>DefaultDirectoryEdit</cstring>
</property>
</widget>
<widget class="QLabel" row="2" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>textLabel1_2_2_2_2</cstring>
</property>
<property name="text">
<string>Correct pasv responses:</string>
</property>
</widget>
<widget class="QCheckBox" row="2" column="3">
<property name="name">
<cstring>CorrectPasvCheckBox</cstring>
</property>
<property name="text">
<string>Enabled</string>
</property>
</widget>
<widget class="QLabel" row="0" column="0">
<property name="name">
<cstring>textLabel3_2</cstring>
</property>
<property name="text">
<string>Default directory:</string>
</property>
</widget>
<spacer row="3" column="1">
<property name="name">
<cstring>spacer16</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
<spacer row="1" column="2" rowspan="2" colspan="1">
<property name="name">
<cstring>spacer17</cstring>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>21</width>
<height>20</height>
</size>
</property>
</spacer>
</grid>
</widget>
</widget>
</grid>
</widget>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -0,0 +1,111 @@
#include <kdialog.h>
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file '/home/mkulke/Development/kasablanca/src/Q_fileexistsdialog.ui'
**
** Created: Mo Jan 31 15:02:06 2005
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.3 edited Nov 24 2003 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "Q_fileexistsdialog.h"
#include <qvariant.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
/*
* Constructs a KasablancaFileExistsDialog as a child of 'parent', with the
* name 'name' and widget flags set to 'f'.
*
* The dialog will by default be modeless, unless you set 'modal' to
* TRUE to construct a modal dialog.
*/
KasablancaFileExistsDialog::KasablancaFileExistsDialog( QWidget* parent, const char* name, bool modal, WFlags fl )
: QDialog( parent, name, modal, fl )
{
if ( !name )
setName( "KasablancaFileExistsDialog" );
setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, sizePolicy().hasHeightForWidth() ) );
setModal( TRUE );
KasablancaFileExistsDialogLayout = new QGridLayout( this, 1, 1, 2, 6, "KasablancaFileExistsDialogLayout");
KasablancaFileExistsDialogLayout->setResizeMode( QLayout::Fixed );
SkipButton = new QPushButton( this, "SkipButton" );
KasablancaFileExistsDialogLayout->addWidget( SkipButton, 0, 3 );
ResumeButton = new QPushButton( this, "ResumeButton" );
ResumeButton->setEnabled( TRUE );
KasablancaFileExistsDialogLayout->addWidget( ResumeButton, 0, 1 );
RenameButton = new QPushButton( this, "RenameButton" );
RenameButton->setEnabled( TRUE );
KasablancaFileExistsDialogLayout->addWidget( RenameButton, 0, 2 );
OverwriteButton = new QPushButton( this, "OverwriteButton" );
KasablancaFileExistsDialogLayout->addWidget( OverwriteButton, 0, 0 );
languageChange();
resize( QSize(514, 57).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
// signals and slots connections
connect( SkipButton, SIGNAL( clicked() ), this, SLOT( Skip() ) );
connect( OverwriteButton, SIGNAL( clicked() ), this, SLOT( Overwrite() ) );
connect( ResumeButton, SIGNAL( clicked() ), this, SLOT( Resume() ) );
connect( RenameButton, SIGNAL( clicked() ), this, SLOT( Rename() ) );
// tab order
setTabOrder( OverwriteButton, ResumeButton );
setTabOrder( ResumeButton, RenameButton );
setTabOrder( RenameButton, SkipButton );
}
/*
* Destroys the object and frees any allocated resources
*/
KasablancaFileExistsDialog::~KasablancaFileExistsDialog()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void KasablancaFileExistsDialog::languageChange()
{
setCaption( tr2i18n( "File Exists" ) );
SkipButton->setText( tr2i18n( "Skip" ) );
ResumeButton->setText( tr2i18n( "Resume" ) );
RenameButton->setText( tr2i18n( "Rename" ) );
OverwriteButton->setText( tr2i18n( "Overwrite" ) );
}
void KasablancaFileExistsDialog::Skip()
{
qWarning( "KasablancaFileExistsDialog::Skip(): Not implemented yet" );
}
void KasablancaFileExistsDialog::Overwrite()
{
qWarning( "KasablancaFileExistsDialog::Overwrite(): Not implemented yet" );
}
void KasablancaFileExistsDialog::Resume()
{
qWarning( "KasablancaFileExistsDialog::Resume(): Not implemented yet" );
}
void KasablancaFileExistsDialog::Rename()
{
qWarning( "KasablancaFileExistsDialog::Rename(): Not implemented yet" );
}
#include "Q_fileexistsdialog.moc"

@ -0,0 +1,118 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>KasablancaFileExistsDialog</class>
<widget class="QDialog">
<property name="name">
<cstring>KasablancaFileExistsDialog</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>514</width>
<height>57</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="caption">
<string>File Exists</string>
</property>
<property name="modal">
<bool>true</bool>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>2</number>
</property>
<property name="resizeMode">
<enum>Fixed</enum>
</property>
<widget class="QPushButton" row="0" column="3">
<property name="name">
<cstring>SkipButton</cstring>
</property>
<property name="text">
<string>Skip</string>
</property>
</widget>
<widget class="QPushButton" row="0" column="1">
<property name="name">
<cstring>ResumeButton</cstring>
</property>
<property name="enabled">
<bool>true</bool>
</property>
<property name="text">
<string>Resume</string>
</property>
</widget>
<widget class="QPushButton" row="0" column="2">
<property name="name">
<cstring>RenameButton</cstring>
</property>
<property name="enabled">
<bool>true</bool>
</property>
<property name="text">
<string>Rename</string>
</property>
</widget>
<widget class="QPushButton" row="0" column="0">
<property name="name">
<cstring>OverwriteButton</cstring>
</property>
<property name="text">
<string>Overwrite</string>
</property>
</widget>
</grid>
</widget>
<connections>
<connection>
<sender>SkipButton</sender>
<signal>clicked()</signal>
<receiver>KasablancaFileExistsDialog</receiver>
<slot>Skip()</slot>
</connection>
<connection>
<sender>OverwriteButton</sender>
<signal>clicked()</signal>
<receiver>KasablancaFileExistsDialog</receiver>
<slot>Overwrite()</slot>
</connection>
<connection>
<sender>ResumeButton</sender>
<signal>clicked()</signal>
<receiver>KasablancaFileExistsDialog</receiver>
<slot>Resume()</slot>
</connection>
<connection>
<sender>RenameButton</sender>
<signal>clicked()</signal>
<receiver>KasablancaFileExistsDialog</receiver>
<slot>Rename()</slot>
</connection>
</connections>
<tabstops>
<tabstop>OverwriteButton</tabstop>
<tabstop>ResumeButton</tabstop>
<tabstop>RenameButton</tabstop>
<tabstop>SkipButton</tabstop>
</tabstops>
<slots>
<slot>Skip()</slot>
<slot>Overwrite()</slot>
<slot>Resume()</slot>
<slot>Rename()</slot>
</slots>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -0,0 +1,176 @@
#include <kdialog.h>
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file '/home/mkulke/Development/kasablanca/src/Q_generalpreferencesdialog.ui'
**
** Created: Mo Jan 31 15:02:08 2005
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.3 edited Nov 24 2003 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "Q_generalpreferencesdialog.h"
#include <qvariant.h>
#include <qpushbutton.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qbuttongroup.h>
#include <qradiobutton.h>
#include <qcheckbox.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
/*
* Constructs a KasablancaGeneralPreferencesDialog as a child of 'parent', with the
* name 'name' and widget flags set to 'f'.
*
* The dialog will by default be modeless, unless you set 'modal' to
* TRUE to construct a modal dialog.
*/
KasablancaGeneralPreferencesDialog::KasablancaGeneralPreferencesDialog( QWidget* parent, const char* name, bool modal, WFlags fl )
: QDialog( parent, name, modal, fl )
{
if ( !name )
setName( "KasablancaGeneralPreferencesDialog" );
setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, sizePolicy().hasHeightForWidth() ) );
setSizeGripEnabled( FALSE );
KasablancaGeneralPreferencesDialogLayout = new QGridLayout( this, 1, 1, 11, 6, "KasablancaGeneralPreferencesDialogLayout");
KasablancaGeneralPreferencesDialogLayout->setResizeMode( QLayout::Minimum );
spacer2_2 = new QSpacerItem( 20, 78, QSizePolicy::Minimum, QSizePolicy::Fixed );
KasablancaGeneralPreferencesDialogLayout->addItem( spacer2_2, 3, 0 );
textLabel1_3 = new QLabel( this, "textLabel1_3" );
KasablancaGeneralPreferencesDialogLayout->addWidget( textLabel1_3, 4, 0 );
textLabel1 = new QLabel( this, "textLabel1" );
KasablancaGeneralPreferencesDialogLayout->addWidget( textLabel1, 0, 0 );
textLabel1_2 = new QLabel( this, "textLabel1_2" );
KasablancaGeneralPreferencesDialogLayout->addWidget( textLabel1_2, 1, 0 );
textLabel1_2_2 = new QLabel( this, "textLabel1_2_2" );
KasablancaGeneralPreferencesDialogLayout->addWidget( textLabel1_2_2, 2, 0 );
spacer2 = new QSpacerItem( 20, 78, QSizePolicy::Minimum, QSizePolicy::Fixed );
KasablancaGeneralPreferencesDialogLayout->addItem( spacer2, 3, 3 );
kcfg_Skiplist = new QLineEdit( this, "kcfg_Skiplist" );
KasablancaGeneralPreferencesDialogLayout->addMultiCellWidget( kcfg_Skiplist, 0, 0, 1, 2 );
kcfg_OnQueueFinished = new QLineEdit( this, "kcfg_OnQueueFinished" );
KasablancaGeneralPreferencesDialogLayout->addMultiCellWidget( kcfg_OnQueueFinished, 1, 1, 1, 2 );
buttonGroup1 = new QButtonGroup( this, "buttonGroup1" );
buttonGroup1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, buttonGroup1->sizePolicy().hasHeightForWidth() ) );
buttonGroup1->setColumnLayout(0, Qt::Vertical );
buttonGroup1->layout()->setSpacing( 6 );
buttonGroup1->layout()->setMargin( 11 );
buttonGroup1Layout = new QGridLayout( buttonGroup1->layout() );
buttonGroup1Layout->setAlignment( Qt::AlignTop );
kcfg_OnFileExistsResume = new QRadioButton( buttonGroup1, "kcfg_OnFileExistsResume" );
buttonGroup1Layout->addWidget( kcfg_OnFileExistsResume, 1, 0 );
kcfg_OnFileExistsSkip = new QRadioButton( buttonGroup1, "kcfg_OnFileExistsSkip" );
buttonGroup1Layout->addWidget( kcfg_OnFileExistsSkip, 2, 0 );
kcfg_OnFileExistsOverwrite = new QRadioButton( buttonGroup1, "kcfg_OnFileExistsOverwrite" );
buttonGroup1Layout->addWidget( kcfg_OnFileExistsOverwrite, 0, 0 );
KasablancaGeneralPreferencesDialogLayout->addMultiCellWidget( buttonGroup1, 2, 3, 1, 2 );
kcfg_Prioritylist = new QLineEdit( this, "kcfg_Prioritylist" );
KasablancaGeneralPreferencesDialogLayout->addMultiCellWidget( kcfg_Prioritylist, 4, 4, 1, 2 );
textLabel1_3_2 = new QLabel( this, "textLabel1_3_2" );
KasablancaGeneralPreferencesDialogLayout->addMultiCellWidget( textLabel1_3_2, 5, 5, 0, 1 );
textLabel1_3_2_2 = new QLabel( this, "textLabel1_3_2_2" );
KasablancaGeneralPreferencesDialogLayout->addMultiCellWidget( textLabel1_3_2_2, 6, 6, 0, 1 );
spacer9 = new QSpacerItem( 20, 16, QSizePolicy::Minimum, QSizePolicy::Expanding );
KasablancaGeneralPreferencesDialogLayout->addItem( spacer9, 7, 2 );
kcfg_SkiplistIsEnabled = new QCheckBox( this, "kcfg_SkiplistIsEnabled" );
KasablancaGeneralPreferencesDialogLayout->addWidget( kcfg_SkiplistIsEnabled, 0, 3 );
kcfg_OnQueueFinishedIsEnabled = new QCheckBox( this, "kcfg_OnQueueFinishedIsEnabled" );
KasablancaGeneralPreferencesDialogLayout->addWidget( kcfg_OnQueueFinishedIsEnabled, 1, 3 );
kcfg_OnFileExistsIsEnabled = new QCheckBox( this, "kcfg_OnFileExistsIsEnabled" );
KasablancaGeneralPreferencesDialogLayout->addWidget( kcfg_OnFileExistsIsEnabled, 2, 3 );
kcfg_PrioritylistIsEnabled = new QCheckBox( this, "kcfg_PrioritylistIsEnabled" );
KasablancaGeneralPreferencesDialogLayout->addWidget( kcfg_PrioritylistIsEnabled, 4, 3 );
kcfg_DirCachingIsEnabled = new QCheckBox( this, "kcfg_DirCachingIsEnabled" );
KasablancaGeneralPreferencesDialogLayout->addWidget( kcfg_DirCachingIsEnabled, 5, 3 );
kcfg_DeleteMovesIntoTrashIsEnabled = new QCheckBox( this, "kcfg_DeleteMovesIntoTrashIsEnabled" );
KasablancaGeneralPreferencesDialogLayout->addWidget( kcfg_DeleteMovesIntoTrashIsEnabled, 6, 3 );
spacer10 = new QSpacerItem( 81, 51, QSizePolicy::Expanding, QSizePolicy::Minimum );
KasablancaGeneralPreferencesDialogLayout->addMultiCell( spacer10, 5, 6, 2, 2 );
languageChange();
resize( QSize(455, 303).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
}
/*
* Destroys the object and frees any allocated resources
*/
KasablancaGeneralPreferencesDialog::~KasablancaGeneralPreferencesDialog()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void KasablancaGeneralPreferencesDialog::languageChange()
{
setCaption( tr2i18n( "General" ) );
QWhatsThis::add( this, tr2i18n( "Directory caching means that once you browsed a folder on a ftp session the content of that folder is cached, and will be loaded from there in case you enter it again. This can speed up browsing especially with large dirs. If you want a fresh representation of the dir content, you can press the refresh button." ) );
textLabel1_3->setText( tr2i18n( "Priority list:" ) );
textLabel1->setText( tr2i18n( "Skiplist:" ) );
textLabel1_2->setText( tr2i18n( "On queue finished:" ) );
textLabel1_2_2->setText( tr2i18n( "On file exist:" ) );
QWhatsThis::add( kcfg_Skiplist, tr2i18n( "Here you can enter a Regular Expression. Transfer items which match this Regular Expression are skipped. For example a value of \"^\\.\" excludes every entry beginning with \".\" from transfer." ) );
QWhatsThis::add( kcfg_OnQueueFinished, tr2i18n( "This field can hold an executable and its arguments which will be run, when last item of in queue has finished transferring. For Example, on KDE desktops the entry \"dcop ksmserver ksmserver logout 0 0 0\" would shutdown the computer automatically." ) );
buttonGroup1->setTitle( QString::null );
kcfg_OnFileExistsResume->setText( tr2i18n( "Resume (if possible)" ) );
QWhatsThis::add( kcfg_OnFileExistsResume, tr2i18n( "These Radio Buttons indicate how the application should proceed if a file to be transfered already exists on the destination. Usually the user is asked by the application how to proceed if this occurs, in case you aren't present during the transfer you can enable this feature." ) );
kcfg_OnFileExistsSkip->setText( tr2i18n( "Skip" ) );
QWhatsThis::add( kcfg_OnFileExistsSkip, tr2i18n( "These Radio Buttons indicate how the application should proceed if a file to be transfered already exists on the destination. Usually the user is asked by the application how to proceed if this occurs, in case you aren't present during the transfer you can enable this feature." ) );
kcfg_OnFileExistsOverwrite->setText( tr2i18n( "Overwrite" ) );
QWhatsThis::add( kcfg_OnFileExistsOverwrite, tr2i18n( "These Radio Buttons indicate how the application should proceed if a file to be transfered already exists on the destination. Usually the user is asked by the application how to proceed if this occurs, in case you aren't present during the transfer you can enable this feature." ) );
QWhatsThis::add( kcfg_Prioritylist, tr2i18n( "This Field contains a regular expression, which queues the items matching this regular expression before the items which don't. For example, \".sfv\" would make the common checksum files with this fileending transfer first." ) );
textLabel1_3_2->setText( tr2i18n( "Directory caching:" ) );
textLabel1_3_2_2->setText( tr2i18n( "Delete moves files into trash:" ) );
kcfg_SkiplistIsEnabled->setText( tr2i18n( "Enabled" ) );
kcfg_OnQueueFinishedIsEnabled->setText( tr2i18n( "Enabled" ) );
kcfg_OnFileExistsIsEnabled->setText( tr2i18n( "Enabled" ) );
kcfg_PrioritylistIsEnabled->setText( tr2i18n( "Enabled" ) );
kcfg_DirCachingIsEnabled->setText( tr2i18n( "Enabled" ) );
kcfg_DeleteMovesIntoTrashIsEnabled->setText( tr2i18n( "Enabled" ) );
}
#include "Q_generalpreferencesdialog.moc"

@ -0,0 +1,284 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>KasablancaGeneralPreferencesDialog</class>
<widget class="QDialog">
<property name="name">
<cstring>KasablancaGeneralPreferencesDialog</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>455</width>
<height>303</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="caption">
<string>General</string>
</property>
<property name="sizeGripEnabled">
<bool>false</bool>
</property>
<property name="whatsThis" stdset="0">
<string>Directory caching means that once you browsed a folder on a ftp session the content of that folder is cached, and will be loaded from there in case you enter it again. This can speed up browsing especially with large dirs. If you want a fresh representation of the dir content, you can press the refresh button.</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="resizeMode">
<enum>Minimum</enum>
</property>
<spacer row="3" column="0">
<property name="name">
<cstring>spacer2_2</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="sizeHint">
<size>
<width>20</width>
<height>78</height>
</size>
</property>
</spacer>
<widget class="QLabel" row="4" column="0">
<property name="name">
<cstring>textLabel1_3</cstring>
</property>
<property name="text">
<string>Priority list:</string>
</property>
</widget>
<widget class="QLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
<property name="text">
<string>Skiplist:</string>
</property>
</widget>
<widget class="QLabel" row="1" column="0">
<property name="name">
<cstring>textLabel1_2</cstring>
</property>
<property name="text">
<string>On queue finished:</string>
</property>
</widget>
<widget class="QLabel" row="2" column="0">
<property name="name">
<cstring>textLabel1_2_2</cstring>
</property>
<property name="text">
<string>On file exist:</string>
</property>
</widget>
<spacer row="3" column="3">
<property name="name">
<cstring>spacer2</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Fixed</enum>
</property>
<property name="sizeHint">
<size>
<width>20</width>
<height>78</height>
</size>
</property>
</spacer>
<widget class="QLineEdit" row="0" column="1" rowspan="1" colspan="2">
<property name="name">
<cstring>kcfg_Skiplist</cstring>
</property>
<property name="whatsThis" stdset="0">
<string>Here you can enter a Regular Expression. Transfer items which match this Regular Expression are skipped. For example a value of "^\." excludes every entry beginning with "." from transfer.</string>
</property>
</widget>
<widget class="QLineEdit" row="1" column="1" rowspan="1" colspan="2">
<property name="name">
<cstring>kcfg_OnQueueFinished</cstring>
</property>
<property name="whatsThis" stdset="0">
<string>This field can hold an executable and its arguments which will be run, when last item of in queue has finished transferring. For Example, on KDE desktops the entry "dcop ksmserver ksmserver logout 0 0 0" would shutdown the computer automatically.</string>
</property>
</widget>
<widget class="QButtonGroup" row="2" column="1" rowspan="2" colspan="2">
<property name="name">
<cstring>buttonGroup1</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string></string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QRadioButton" row="1" column="0">
<property name="name">
<cstring>kcfg_OnFileExistsResume</cstring>
</property>
<property name="text">
<string>Resume (if possible)</string>
</property>
<property name="whatsThis" stdset="0">
<string>These Radio Buttons indicate how the application should proceed if a file to be transfered already exists on the destination. Usually the user is asked by the application how to proceed if this occurs, in case you aren't present during the transfer you can enable this feature.</string>
</property>
</widget>
<widget class="QRadioButton" row="2" column="0">
<property name="name">
<cstring>kcfg_OnFileExistsSkip</cstring>
</property>
<property name="text">
<string>Skip</string>
</property>
<property name="whatsThis" stdset="0">
<string>These Radio Buttons indicate how the application should proceed if a file to be transfered already exists on the destination. Usually the user is asked by the application how to proceed if this occurs, in case you aren't present during the transfer you can enable this feature.</string>
</property>
</widget>
<widget class="QRadioButton" row="0" column="0">
<property name="name">
<cstring>kcfg_OnFileExistsOverwrite</cstring>
</property>
<property name="text">
<string>Overwrite</string>
</property>
<property name="whatsThis" stdset="0">
<string>These Radio Buttons indicate how the application should proceed if a file to be transfered already exists on the destination. Usually the user is asked by the application how to proceed if this occurs, in case you aren't present during the transfer you can enable this feature.</string>
</property>
</widget>
</grid>
</widget>
<widget class="QLineEdit" row="4" column="1" rowspan="1" colspan="2">
<property name="name">
<cstring>kcfg_Prioritylist</cstring>
</property>
<property name="whatsThis" stdset="0">
<string>This Field contains a regular expression, which queues the items matching this regular expression before the items which don't. For example, ".sfv" would make the common checksum files with this fileending transfer first.</string>
</property>
</widget>
<widget class="QLabel" row="5" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>textLabel1_3_2</cstring>
</property>
<property name="text">
<string>Directory caching:</string>
</property>
</widget>
<widget class="QLabel" row="6" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>textLabel1_3_2_2</cstring>
</property>
<property name="text">
<string>Delete moves files into trash:</string>
</property>
</widget>
<spacer row="7" column="2">
<property name="name">
<cstring>spacer9</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>20</width>
<height>16</height>
</size>
</property>
</spacer>
<widget class="QCheckBox" row="0" column="3">
<property name="name">
<cstring>kcfg_SkiplistIsEnabled</cstring>
</property>
<property name="text">
<string>Enabled</string>
</property>
</widget>
<widget class="QCheckBox" row="1" column="3">
<property name="name">
<cstring>kcfg_OnQueueFinishedIsEnabled</cstring>
</property>
<property name="text">
<string>Enabled</string>
</property>
</widget>
<widget class="QCheckBox" row="2" column="3">
<property name="name">
<cstring>kcfg_OnFileExistsIsEnabled</cstring>
</property>
<property name="text">
<string>Enabled</string>
</property>
</widget>
<widget class="QCheckBox" row="4" column="3">
<property name="name">
<cstring>kcfg_PrioritylistIsEnabled</cstring>
</property>
<property name="text">
<string>Enabled</string>
</property>
</widget>
<widget class="QCheckBox" row="5" column="3">
<property name="name">
<cstring>kcfg_DirCachingIsEnabled</cstring>
</property>
<property name="text">
<string>Enabled</string>
</property>
</widget>
<widget class="QCheckBox" row="6" column="3">
<property name="name">
<cstring>kcfg_DeleteMovesIntoTrashIsEnabled</cstring>
</property>
<property name="text">
<string>Enabled</string>
</property>
</widget>
<spacer row="5" column="2" rowspan="2" colspan="1">
<property name="name">
<cstring>spacer10</cstring>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>81</width>
<height>51</height>
</size>
</property>
</spacer>
</grid>
</widget>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -0,0 +1,70 @@
#include <kdialog.h>
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file '/home/mkulke/Development/kasablanca/src/Q_importdialog.ui'
**
** Created: Mo Jan 31 15:02:10 2005
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.3 edited Nov 24 2003 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "Q_importdialog.h"
#include <qvariant.h>
#include <qpushbutton.h>
#include <qbuttongroup.h>
#include <qradiobutton.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
/*
* Constructs a KasablancaImportDialog as a child of 'parent', with the
* name 'name' and widget flags set to 'f'.
*/
KasablancaImportDialog::KasablancaImportDialog( QWidget* parent, const char* name, WFlags fl )
: QWidget( parent, name, fl )
{
if ( !name )
setName( "KasablancaImportDialog" );
KasablancaImportDialogLayout = new QGridLayout( this, 1, 1, 11, 6, "KasablancaImportDialogLayout");
ImportGroupBox = new QButtonGroup( this, "ImportGroupBox" );
ImportGroupBox->setColumnLayout(0, Qt::Vertical );
ImportGroupBox->layout()->setSpacing( 6 );
ImportGroupBox->layout()->setMargin( 11 );
ImportGroupBoxLayout = new QGridLayout( ImportGroupBox->layout() );
ImportGroupBoxLayout->setAlignment( Qt::AlignTop );
GftpRadioButton = new QRadioButton( ImportGroupBox, "GftpRadioButton" );
GftpRadioButton->setChecked( TRUE );
ImportGroupBoxLayout->addWidget( GftpRadioButton, 0, 0 );
KasablancaImportDialogLayout->addWidget( ImportGroupBox, 0, 0 );
languageChange();
resize( QSize(231, 80).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
}
/*
* Destroys the object and frees any allocated resources
*/
KasablancaImportDialog::~KasablancaImportDialog()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void KasablancaImportDialog::languageChange()
{
setCaption( tr2i18n( "Import Bookmarks" ) );
ImportGroupBox->setTitle( tr2i18n( "Import filter" ) );
GftpRadioButton->setText( tr2i18n( "gFtp" ) );
}
#include "Q_importdialog.moc"

@ -0,0 +1,49 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>KasablancaImportDialog</class>
<widget class="QWidget">
<property name="name">
<cstring>KasablancaImportDialog</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>231</width>
<height>80</height>
</rect>
</property>
<property name="caption">
<string>Import Bookmarks</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QButtonGroup" row="0" column="0">
<property name="name">
<cstring>ImportGroupBox</cstring>
</property>
<property name="title">
<string>Import filter</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QRadioButton" row="0" column="0">
<property name="name">
<cstring>GftpRadioButton</cstring>
</property>
<property name="text">
<string>gFtp</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</grid>
</widget>
</grid>
</widget>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -0,0 +1,185 @@
#include <kdialog.h>
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file '/home/mkulke/Development/kasablanca/src/Q_mainwindow.ui'
**
** Created: Mo Jan 31 15:02:06 2005
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.3 edited Nov 24 2003 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "Q_mainwindow.h"
#include <qvariant.h>
#include <qpushbutton.h>
#include <qtoolbutton.h>
#include <qheader.h>
#include <qlistview.h>
#include <klineedit.h>
#include <qsplitter.h>
#include <qtextedit.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include "kbtaskview.h"
/*
* Constructs a KasablancaMainWindow as a child of 'parent', with the
* name 'name' and widget flags set to 'f'.
*/
KasablancaMainWindow::KasablancaMainWindow( QWidget* parent, const char* name, WFlags fl )
: QWidget( parent, name, fl )
{
if ( !name )
setName( "KasablancaMainWindow" );
setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, sizePolicy().hasHeightForWidth() ) );
KasablancaMainWindowLayout = new QGridLayout( this, 1, 1, 2, 6, "KasablancaMainWindowLayout");
ConnectButtonA = new QToolButton( this, "ConnectButtonA" );
ConnectButtonA->setEnabled( TRUE );
ConnectButtonA->setAutoRaise( FALSE );
KasablancaMainWindowLayout->addWidget( ConnectButtonA, 0, 0 );
RefreshButtonA = new QToolButton( this, "RefreshButtonA" );
RefreshButtonA->setEnabled( TRUE );
RefreshButtonA->setAutoRaise( FALSE );
KasablancaMainWindowLayout->addWidget( RefreshButtonA, 0, 1 );
TransferButtonA = new QToolButton( this, "TransferButtonA" );
TransferButtonA->setEnabled( FALSE );
TransferButtonA->setAutoRaise( FALSE );
KasablancaMainWindowLayout->addWidget( TransferButtonA, 0, 2 );
ConnectButtonB = new QToolButton( this, "ConnectButtonB" );
ConnectButtonB->setEnabled( TRUE );
ConnectButtonB->setAutoRaise( FALSE );
KasablancaMainWindowLayout->addWidget( ConnectButtonB, 0, 4 );
RefreshButtonB = new QToolButton( this, "RefreshButtonB" );
RefreshButtonB->setEnabled( TRUE );
RefreshButtonB->setAutoRaise( FALSE );
KasablancaMainWindowLayout->addWidget( RefreshButtonB, 0, 5 );
TransferButtonB = new QToolButton( this, "TransferButtonB" );
TransferButtonB->setEnabled( FALSE );
TransferButtonB->setAutoRaise( FALSE );
KasablancaMainWindowLayout->addWidget( TransferButtonB, 0, 6 );
BrowserA = new QListView( this, "BrowserA" );
BrowserA->addColumn( tr2i18n( "Name" ) );
BrowserA->addColumn( tr2i18n( "Size" ) );
BrowserA->addColumn( tr2i18n( "Date" ) );
BrowserA->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)2, (QSizePolicy::SizeType)7, 0, 0, BrowserA->sizePolicy().hasHeightForWidth() ) );
BrowserA->setResizePolicy( QScrollView::Manual );
BrowserA->setSelectionMode( QListView::Extended );
KasablancaMainWindowLayout->addMultiCellWidget( BrowserA, 1, 1, 0, 3 );
BrowserB = new QListView( this, "BrowserB" );
BrowserB->addColumn( tr2i18n( "Name" ) );
BrowserB->addColumn( tr2i18n( "Size" ) );
BrowserB->addColumn( tr2i18n( "Date" ) );
BrowserB->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)2, (QSizePolicy::SizeType)7, 0, 0, BrowserB->sizePolicy().hasHeightForWidth() ) );
BrowserB->setSelectionMode( QListView::Extended );
KasablancaMainWindowLayout->addMultiCellWidget( BrowserB, 1, 1, 4, 7 );
CwdLineA = new KLineEdit( this, "CwdLineA" );
KasablancaMainWindowLayout->addWidget( CwdLineA, 0, 3 );
CwdLineB = new KLineEdit( this, "CwdLineB" );
KasablancaMainWindowLayout->addWidget( CwdLineB, 0, 7 );
CommandLineA = new KLineEdit( this, "CommandLineA" );
KasablancaMainWindowLayout->addMultiCellWidget( CommandLineA, 2, 2, 0, 3 );
CommandLineB = new KLineEdit( this, "CommandLineB" );
KasablancaMainWindowLayout->addMultiCellWidget( CommandLineB, 2, 2, 4, 7 );
splitter4 = new QSplitter( this, "splitter4" );
splitter4->setOrientation( QSplitter::Vertical );
TaskView = new KbTaskView( splitter4, "TaskView" );
QWidget* privateLayoutWidget = new QWidget( splitter4, "layout2" );
layout2 = new QGridLayout( privateLayoutWidget, 1, 1, 0, 6, "layout2");
LogWindowB = new QTextEdit( privateLayoutWidget, "LogWindowB" );
LogWindowB->setPaletteForegroundColor( QColor( 255, 255, 255 ) );
LogWindowB->setPaletteBackgroundColor( QColor( 82, 194, 255 ) );
QFont LogWindowB_font( LogWindowB->font() );
LogWindowB_font.setFamily( "Dec Terminal" );
LogWindowB->setFont( LogWindowB_font );
LogWindowB->setHScrollBarMode( QTextEdit::AlwaysOff );
LogWindowB->setTextFormat( QTextEdit::PlainText );
LogWindowB->setWrapPolicy( QTextEdit::AtWordOrDocumentBoundary );
LogWindowB->setReadOnly( TRUE );
layout2->addWidget( LogWindowB, 0, 1 );
LogWindowA = new QTextEdit( privateLayoutWidget, "LogWindowA" );
LogWindowA->setPaletteForegroundColor( QColor( 255, 255, 255 ) );
LogWindowA->setPaletteBackgroundColor( QColor( 82, 194, 255 ) );
QFont LogWindowA_font( LogWindowA->font() );
LogWindowA_font.setFamily( "Dec Terminal" );
LogWindowA->setFont( LogWindowA_font );
LogWindowA->setHScrollBarMode( QTextEdit::AlwaysOff );
LogWindowA->setTextFormat( QTextEdit::PlainText );
LogWindowA->setWrapPolicy( QTextEdit::AtWordOrDocumentBoundary );
LogWindowA->setReadOnly( TRUE );
layout2->addWidget( LogWindowA, 0, 0 );
KasablancaMainWindowLayout->addMultiCellWidget( splitter4, 3, 3, 0, 7 );
languageChange();
resize( QSize(689, 626).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
// tab order
setTabOrder( BrowserA, BrowserB );
setTabOrder( BrowserB, LogWindowA );
}
/*
* Destroys the object and frees any allocated resources
*/
KasablancaMainWindow::~KasablancaMainWindow()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void KasablancaMainWindow::languageChange()
{
setCaption( tr2i18n( "Kasablanca x" ) );
ConnectButtonA->setText( QString::null );
RefreshButtonA->setText( QString::null );
TransferButtonA->setText( QString::null );
ConnectButtonB->setText( QString::null );
RefreshButtonB->setText( QString::null );
TransferButtonB->setText( QString::null );
BrowserA->header()->setLabel( 0, tr2i18n( "Name" ) );
BrowserA->header()->setLabel( 1, tr2i18n( "Size" ) );
BrowserA->header()->setLabel( 2, tr2i18n( "Date" ) );
BrowserB->header()->setLabel( 0, tr2i18n( "Name" ) );
BrowserB->header()->setLabel( 1, tr2i18n( "Size" ) );
BrowserB->header()->setLabel( 2, tr2i18n( "Date" ) );
LogWindowB->setText( QString::null );
LogWindowA->setText( QString::null );
}
#include "Q_mainwindow.moc"

@ -0,0 +1,380 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>KasablancaMainWindow</class>
<widget class="QWidget">
<property name="name">
<cstring>KasablancaMainWindow</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>689</width>
<height>626</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="caption">
<string>Kasablanca x</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>2</number>
</property>
<widget class="QToolButton" row="0" column="0">
<property name="name">
<cstring>ConnectButtonA</cstring>
</property>
<property name="enabled">
<bool>true</bool>
</property>
<property name="text">
<string></string>
</property>
<property name="autoRaise">
<bool>false</bool>
</property>
</widget>
<widget class="QToolButton" row="0" column="1">
<property name="name">
<cstring>RefreshButtonA</cstring>
</property>
<property name="enabled">
<bool>true</bool>
</property>
<property name="text">
<string></string>
</property>
<property name="autoRaise">
<bool>false</bool>
</property>
</widget>
<widget class="QToolButton" row="0" column="2">
<property name="name">
<cstring>TransferButtonA</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string></string>
</property>
<property name="autoRaise">
<bool>false</bool>
</property>
</widget>
<widget class="QToolButton" row="0" column="4">
<property name="name">
<cstring>ConnectButtonB</cstring>
</property>
<property name="enabled">
<bool>true</bool>
</property>
<property name="text">
<string></string>
</property>
<property name="autoRaise">
<bool>false</bool>
</property>
</widget>
<widget class="QToolButton" row="0" column="5">
<property name="name">
<cstring>RefreshButtonB</cstring>
</property>
<property name="enabled">
<bool>true</bool>
</property>
<property name="text">
<string></string>
</property>
<property name="autoRaise">
<bool>false</bool>
</property>
</widget>
<widget class="QToolButton" row="0" column="6">
<property name="name">
<cstring>TransferButtonB</cstring>
</property>
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string></string>
</property>
<property name="autoRaise">
<bool>false</bool>
</property>
</widget>
<widget class="QListView" row="1" column="0" rowspan="1" colspan="4">
<column>
<property name="text">
<string>Name</string>
</property>
<property name="clickable">
<bool>true</bool>
</property>
<property name="resizable">
<bool>true</bool>
</property>
</column>
<column>
<property name="text">
<string>Size</string>
</property>
<property name="clickable">
<bool>true</bool>
</property>
<property name="resizable">
<bool>true</bool>
</property>
</column>
<column>
<property name="text">
<string>Date</string>
</property>
<property name="clickable">
<bool>true</bool>
</property>
<property name="resizable">
<bool>true</bool>
</property>
</column>
<property name="name">
<cstring>BrowserA</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>2</hsizetype>
<vsizetype>7</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="resizePolicy">
<enum>Manual</enum>
</property>
<property name="selectionMode">
<enum>Extended</enum>
</property>
</widget>
<widget class="QListView" row="1" column="4" rowspan="1" colspan="4">
<column>
<property name="text">
<string>Name</string>
</property>
<property name="clickable">
<bool>true</bool>
</property>
<property name="resizable">
<bool>true</bool>
</property>
</column>
<column>
<property name="text">
<string>Size</string>
</property>
<property name="clickable">
<bool>true</bool>
</property>
<property name="resizable">
<bool>true</bool>
</property>
</column>
<column>
<property name="text">
<string>Date</string>
</property>
<property name="clickable">
<bool>true</bool>
</property>
<property name="resizable">
<bool>true</bool>
</property>
</column>
<property name="name">
<cstring>BrowserB</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>2</hsizetype>
<vsizetype>7</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="selectionMode">
<enum>Extended</enum>
</property>
</widget>
<widget class="KLineEdit" row="0" column="3">
<property name="name">
<cstring>CwdLineA</cstring>
</property>
</widget>
<widget class="KLineEdit" row="0" column="7">
<property name="name">
<cstring>CwdLineB</cstring>
</property>
</widget>
<widget class="KLineEdit" row="2" column="0" rowspan="1" colspan="4">
<property name="name">
<cstring>CommandLineA</cstring>
</property>
</widget>
<widget class="KLineEdit" row="2" column="4" rowspan="1" colspan="4">
<property name="name">
<cstring>CommandLineB</cstring>
</property>
</widget>
<widget class="QSplitter" row="3" column="0" rowspan="1" colspan="8">
<property name="name">
<cstring>splitter4</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<widget class="KbTaskView">
<property name="name">
<cstring>TaskView</cstring>
</property>
</widget>
<widget class="QLayoutWidget">
<property name="name">
<cstring>layout2</cstring>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<widget class="QTextEdit" row="0" column="1">
<property name="name">
<cstring>LogWindowB</cstring>
</property>
<property name="paletteForegroundColor">
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
</property>
<property name="paletteBackgroundColor">
<color>
<red>82</red>
<green>194</green>
<blue>255</blue>
</color>
</property>
<property name="font">
<font>
<family>Dec Terminal</family>
</font>
</property>
<property name="hScrollBarMode">
<enum>AlwaysOff</enum>
</property>
<property name="textFormat">
<enum>PlainText</enum>
</property>
<property name="text">
<string></string>
</property>
<property name="wrapPolicy">
<enum>AtWordOrDocumentBoundary</enum>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
<widget class="QTextEdit" row="0" column="0">
<property name="name">
<cstring>LogWindowA</cstring>
</property>
<property name="paletteForegroundColor">
<color>
<red>255</red>
<green>255</green>
<blue>255</blue>
</color>
</property>
<property name="paletteBackgroundColor">
<color>
<red>82</red>
<green>194</green>
<blue>255</blue>
</color>
</property>
<property name="font">
<font>
<family>Dec Terminal</family>
</font>
</property>
<property name="hScrollBarMode">
<enum>AlwaysOff</enum>
</property>
<property name="textFormat">
<enum>PlainText</enum>
</property>
<property name="text">
<string></string>
</property>
<property name="wrapPolicy">
<enum>AtWordOrDocumentBoundary</enum>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</grid>
</widget>
</widget>
</grid>
</widget>
<customwidgets>
<customwidget>
<class>KbTaskView</class>
<header location="local">kbtaskview.h</header>
<sizehint>
<width>-1</width>
<height>-1</height>
</sizehint>
<container>0</container>
<sizepolicy>
<hordata>5</hordata>
<verdata>5</verdata>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
<pixmap>image0</pixmap>
</customwidget>
</customwidgets>
<images>
<image name="image0">
<data format="PNG" length="826">89504e470d0a1a0a0000000d4948445200000016000000160806000000c4b46c3b0000030149444154789cb59531681b5718c77f0e377c070e3c810a3a70e0041eac51852e0a19e45134830a1d9a4c69a04bc8928e990a693a640e1d0c8642b08742321894c1507991b484c890902bb8701a047760c3bd21701fe4201dde49b6a41a32b8df72dcbbeffdbefffbbfefbd5b1b0c07cce266ebe667ae2006c3c1dada0cdc3be87d6e6c35b0d692a409d9c7ec8b20d65ae29398d19b1114e7e3de4ce98b3f5e10dc0053cf0951b4506496e1b964bf7ce6c585d9054c62d01d617ca48be0596553cf496d8f2c8b01c5f795fc93904e85ec4c01a152857a5d9175d0b2805c872080f18595ccc1499a10a225d4e2fbc2877786fe81253ab6c04c8d106e09db5d43ab0d146e5c64d1a23938fb98a185cea1c33eecfd9eba49eb427dcb201e245365f2b7b2fb5b4a3a31dcb927178afe07d86901df870fefa4842aed6f6b74ba42e52b4014d580e1eb9cbd9d94de7e4aad16d2f9be02d805f0b5e532f927a1ffcacea1777f122a8105b164a7c25faf323a5d9f1f1fd600e1e5bec59e2d4b5c7ef5209d0ad17b8b31864e57c0b3e0815ac3ee33253ab664a770ff5185d1a1cb8d2267d3e58aa1dc7d2508cbe597d0e74fdd269aaaf0f52d414c4ea3e9762c996869e42560d7a72e41c4799a2586e74f95e8d8151481fa86efbe7b3398ac58b1a2b8527589f15451ad303ac2293542ad6648a796278f13a27185e4c4754310facb98c53a79e19a3fdc1426ff28c3d7399d1f7cb25343eb96106cf83c790ce9c4f2eb831855c55485663327992eb6dc8a6259874ed700b0b793323cccb9ffa842b30d6133e3e75fea989ac15a8b16ca76b746b0b92278d919774c5b6d48a78697fb29bbcf52468742a32120909c24e899ce67beed5be2db01e22d1e9485bb620e47f9ee9e606a21bd3f5d3744c7e7c54d55e87443867d8b554515ac5db4620e8e4f62263170fd1cdee90aad7640141992891b0f367c9adfe4049bb07d3b7022bd8c687c0978f46684ee084150b65ac1fcca94591b7a90a496e4c095164fb016a2b192a497795cc0f84817aebe25f7bf70ccc54a575c555c03f78ffa5fc0570d1f0c076bff0232285a0901e2257b0000000049454e44ae426082</data>
</image>
</images>
<tabstops>
<tabstop>BrowserA</tabstop>
<tabstop>BrowserB</tabstop>
<tabstop>LogWindowA</tabstop>
</tabstops>
<layoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>klineedit.h</includehint>
<includehint>klineedit.h</includehint>
<includehint>klineedit.h</includehint>
<includehint>klineedit.h</includehint>
<includehint>kbtaskview.h</includehint>
</includehints>
</UI>

@ -0,0 +1,102 @@
#include <kdialog.h>
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file '/home/mkulke/Development/kasablanca/src/Q_userinterfacepreferencesdialog.ui'
**
** Created: Mo Jan 31 15:02:09 2005
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.3 edited Nov 24 2003 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "Q_userinterfacepreferencesdialog.h"
#include <qvariant.h>
#include <qlabel.h>
#include <qcheckbox.h>
#include <kfontrequester.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
/*
* Constructs a KasablancaUserInterfacePreferencesDialog as a child of 'parent', with the
* name 'name' and widget flags set to 'f'.
*
* The dialog will by default be modeless, unless you set 'modal' to
* TRUE to construct a modal dialog.
*/
KasablancaUserInterfacePreferencesDialog::KasablancaUserInterfacePreferencesDialog( QWidget* parent, const char* name, bool modal, WFlags fl )
: QDialog( parent, name, modal, fl )
{
if ( !name )
setName( "KasablancaUserInterfacePreferencesDialog" );
KasablancaUserInterfacePreferencesDialogLayout = new QGridLayout( this, 1, 1, 11, 6, "KasablancaUserInterfacePreferencesDialogLayout");
spacer4 = new QSpacerItem( 20, 16, QSizePolicy::Minimum, QSizePolicy::Expanding );
KasablancaUserInterfacePreferencesDialogLayout->addItem( spacer4, 4, 3 );
textLabel1_2_2_2_2 = new QLabel( this, "textLabel1_2_2_2_2" );
KasablancaUserInterfacePreferencesDialogLayout->addMultiCellWidget( textLabel1_2_2_2_2, 0, 0, 0, 1 );
textLabel1_2_2_2_2_2 = new QLabel( this, "textLabel1_2_2_2_2_2" );
KasablancaUserInterfacePreferencesDialogLayout->addMultiCellWidget( textLabel1_2_2_2_2_2, 1, 1, 0, 1 );
textLabel1_2_2_2_2_2_3 = new QLabel( this, "textLabel1_2_2_2_2_2_3" );
KasablancaUserInterfacePreferencesDialogLayout->addMultiCellWidget( textLabel1_2_2_2_2_2_3, 2, 2, 0, 2 );
kcfg_SystrayIsEnabled = new QCheckBox( this, "kcfg_SystrayIsEnabled" );
KasablancaUserInterfacePreferencesDialogLayout->addWidget( kcfg_SystrayIsEnabled, 0, 4 );
kcfg_CommandLineIsEnabled = new QCheckBox( this, "kcfg_CommandLineIsEnabled" );
KasablancaUserInterfacePreferencesDialogLayout->addWidget( kcfg_CommandLineIsEnabled, 1, 4 );
kcfg_HideHiddenFilesIsEnabled = new QCheckBox( this, "kcfg_HideHiddenFilesIsEnabled" );
KasablancaUserInterfacePreferencesDialogLayout->addWidget( kcfg_HideHiddenFilesIsEnabled, 2, 4 );
kcfg_LogwindowFont = new KFontRequester( this, "kcfg_LogwindowFont" );
KasablancaUserInterfacePreferencesDialogLayout->addMultiCellWidget( kcfg_LogwindowFont, 3, 3, 2, 4 );
textLabel1_2_2_2_2_2_2 = new QLabel( this, "textLabel1_2_2_2_2_2_2" );
KasablancaUserInterfacePreferencesDialogLayout->addWidget( textLabel1_2_2_2_2_2_2, 3, 0 );
spacer3 = new QSpacerItem( 140, 58, QSizePolicy::Expanding, QSizePolicy::Minimum );
KasablancaUserInterfacePreferencesDialogLayout->addMultiCell( spacer3, 0, 1, 2, 3 );
spacer3_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
KasablancaUserInterfacePreferencesDialogLayout->addItem( spacer3_2, 3, 1 );
languageChange();
resize( QSize(448, 165).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
}
/*
* Destroys the object and frees any allocated resources
*/
KasablancaUserInterfacePreferencesDialog::~KasablancaUserInterfacePreferencesDialog()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void KasablancaUserInterfacePreferencesDialog::languageChange()
{
setCaption( tr2i18n( "User Interface" ) );
textLabel1_2_2_2_2->setText( tr2i18n( "Show system tray icon:" ) );
textLabel1_2_2_2_2_2->setText( tr2i18n( "Show command lines:" ) );
textLabel1_2_2_2_2_2_3->setText( tr2i18n( "Hide hidden files from view:" ) );
kcfg_SystrayIsEnabled->setText( tr2i18n( "Enabled" ) );
kcfg_CommandLineIsEnabled->setText( tr2i18n( "Enabled" ) );
kcfg_HideHiddenFilesIsEnabled->setText( tr2i18n( "Enabled" ) );
textLabel1_2_2_2_2_2_2->setText( tr2i18n( "Logwindow Font:" ) );
}
#include "Q_userinterfacepreferencesdialog.moc"

@ -0,0 +1,142 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>KasablancaUserInterfacePreferencesDialog</class>
<widget class="QDialog">
<property name="name">
<cstring>KasablancaUserInterfacePreferencesDialog</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>448</width>
<height>165</height>
</rect>
</property>
<property name="caption">
<string>User Interface</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<spacer row="4" column="3">
<property name="name">
<cstring>spacer4</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>20</width>
<height>16</height>
</size>
</property>
</spacer>
<widget class="QLabel" row="0" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>textLabel1_2_2_2_2</cstring>
</property>
<property name="text">
<string>Show system tray icon:</string>
</property>
</widget>
<widget class="QLabel" row="1" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>textLabel1_2_2_2_2_2</cstring>
</property>
<property name="text">
<string>Show command lines:</string>
</property>
</widget>
<widget class="QLabel" row="2" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>textLabel1_2_2_2_2_2_3</cstring>
</property>
<property name="text">
<string>Hide hidden files from view:</string>
</property>
</widget>
<widget class="QCheckBox" row="0" column="4">
<property name="name">
<cstring>kcfg_SystrayIsEnabled</cstring>
</property>
<property name="text">
<string>Enabled</string>
</property>
</widget>
<widget class="QCheckBox" row="1" column="4">
<property name="name">
<cstring>kcfg_CommandLineIsEnabled</cstring>
</property>
<property name="text">
<string>Enabled</string>
</property>
</widget>
<widget class="QCheckBox" row="2" column="4">
<property name="name">
<cstring>kcfg_HideHiddenFilesIsEnabled</cstring>
</property>
<property name="text">
<string>Enabled</string>
</property>
</widget>
<widget class="KFontRequester" row="3" column="2" rowspan="1" colspan="3">
<property name="name">
<cstring>kcfg_LogwindowFont</cstring>
</property>
</widget>
<widget class="QLabel" row="3" column="0">
<property name="name">
<cstring>textLabel1_2_2_2_2_2_2</cstring>
</property>
<property name="text">
<string>Logwindow Font:</string>
</property>
</widget>
<spacer row="0" column="2" rowspan="2" colspan="2">
<property name="name">
<cstring>spacer3</cstring>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>140</width>
<height>58</height>
</size>
</property>
</spacer>
<spacer row="3" column="1">
<property name="name">
<cstring>spacer3_2</cstring>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</grid>
</widget>
<customwidgets>
</customwidgets>
<layoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kfontrequester.h</includehint>
</includehints>
</UI>

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

@ -0,0 +1,210 @@
/***************************************************************************
* Copyright (C) 2004 by Magnus Kulke *
* mkulke@magnusmachine *
* *
* 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., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include <qdom.h>
#include <qfile.h>
#include <qdir.h>
#include <qcheckbox.h>
#include <qheader.h>
#include <qtabwidget.h>
#include <qaction.h>
#include <kcombobox.h>
#include <kcompletion.h>
#include <klocale.h>
#include <klineedit.h>
#include <kmessagebox.h>
#include <kpushbutton.h>
#include <klistview.h>
#include "bookmarkdialog.h"
#include "kbbookmarkitem.h"
BookmarkDialog::BookmarkDialog(QWidget *parent, const char *name)
: KDialogBase(parent, name, true, i18n( "Bookmarks" ),
KDialogBase::Ok |
KDialogBase::Help |
KDialogBase::Cancel |
KDialogBase::User1 |
KDialogBase::User2,
KDialogBase::Ok, true , KGuiItem(i18n("New")), KGuiItem(i18n("Remove")))
{
mp_dialog = new KasablancaBookmarkDialog(this);
setMainWidget(mp_dialog);
setHelp("ftphelp");
m_bookmarklist = KbSiteInfo::ParseBookmarks();
mp_dialog->BookmarkListView->header()->hide();
mp_dialog->BookmarkListView->setSorting(-1);
KbBookmarkItem *after = NULL;
list<KbSiteInfo>::iterator end_bookmarks = m_bookmarklist.end();
for (list<KbSiteInfo>::iterator i = m_bookmarklist.begin(); i != end_bookmarks; i++)
after = new KbBookmarkItem(mp_dialog->BookmarkListView, after, &(*i));
connect(mp_dialog->NameEdit, SIGNAL(textChanged(const QString&)), SLOT(SLOT_TextChanged(const QString&)));
connect(mp_dialog->InfoEdit, SIGNAL(textChanged(const QString&)), SLOT(SLOT_TextChanged(const QString&)));
connect(mp_dialog->UserEdit, SIGNAL(textChanged(const QString&)), SLOT(SLOT_TextChanged(const QString&)));
connect(mp_dialog->PassEdit, SIGNAL(textChanged(const QString&)), SLOT(SLOT_TextChanged(const QString&)));
connect(mp_dialog->DefaultDirectoryEdit, SIGNAL(textChanged(const QString&)), SLOT(SLOT_TextChanged(const QString&)));
connect(mp_dialog->EncryptionComboBox, SIGNAL(activated(const QString&)), SLOT(SLOT_TextChanged(const QString&)));
connect(mp_dialog->ModeComboBox, SIGNAL(activated(const QString&)), SLOT(SLOT_TextChanged(const QString&)));
connect(mp_dialog->AlternativeFxpCheckBox, SIGNAL(clicked()), SLOT(SLOT_StateChanged()));
connect(mp_dialog->CorrectPasvCheckBox, SIGNAL(clicked()), SLOT(SLOT_StateChanged()));
connect(mp_dialog->BookmarkListView, SIGNAL(selectionChanged()), SLOT(SLOT_SelectionChanged()));
m_newitemselected = false;
enableButton(KDialogBase::User2, false);
QAction *deleteShortcut = new QAction( QPixmap(), "&Delete",
Key_Delete, this, "delete" );
connect( deleteShortcut, SIGNAL( activated() ) , this, SLOT( slotUser2() ) );
}
BookmarkDialog::~BookmarkDialog()
{
}
#include "bookmarkdialog.moc"
void BookmarkDialog::SLOT_SelectionChanged()
{
KbBookmarkItem *kbb;
KbSiteInfo *s;
kbb = static_cast<KbBookmarkItem*>(mp_dialog->BookmarkListView->selectedItem());
if (!kbb)
{
EnableInput(false);
return;
}
m_newitemselected = true;
s = kbb->GetSiteInfo();
EnableInput(true);
RefreshEntry(s);
}
void BookmarkDialog::EnableInput(bool b)
{
mp_dialog->NameEdit->setEnabled(b);
mp_dialog->UserEdit->setEnabled(b);
mp_dialog->PassEdit->setEnabled(b);
mp_dialog->InfoEdit->setEnabled(b);
mp_dialog->EncryptionComboBox->setEnabled(b);
mp_dialog->ModeComboBox->setEnabled(b);
mp_dialog->AlternativeFxpCheckBox->setEnabled(b);
mp_dialog->CorrectPasvCheckBox->setEnabled(b);
mp_dialog->DefaultDirectoryEdit->setEnabled(b);
enableButton(KDialogBase::User2, b);
}
void BookmarkDialog::slotOk()
{
list<KbSiteInfo> newbookmarklist;
slotApply();
QListViewItemIterator it(mp_dialog->BookmarkListView);
while (it.current())
{
newbookmarklist.push_back(*(static_cast<KbBookmarkItem*>(it.current())->GetSiteInfo()));
++it;
}
KbSiteInfo::WriteBookmarks(newbookmarklist);
accept();
}
void BookmarkDialog::slotUser1()
{
KbBookmarkItem* newentry;
KbSiteInfo newsite;
newsite.SetName("New Site");
newsite.SetInfo("newftp:21");
newsite.SetUser("anonymous");
newsite.SetPass("bla@bla.com");
newsite.SetPasv(1);
newsite.SetTls(0);
newsite.SetAlternativeFxp(0);
newsite.SetCorrectPasv(0);
newsite.SetDefaultDirectory("");
m_bookmarklist.push_back(newsite);
newentry = new KbBookmarkItem(mp_dialog->BookmarkListView, mp_dialog->BookmarkListView->lastItem(), &m_bookmarklist.back());
mp_dialog->BookmarkListView->setSelected(newentry, true);
}
void BookmarkDialog::slotUser2()
{
delete mp_dialog->BookmarkListView->selectedItem();
}
void BookmarkDialog::RefreshEntry(KbSiteInfo* site)
{
mp_dialog->NameEdit->setText(site->GetName());
mp_dialog->UserEdit->setText(site->GetUser());
mp_dialog->PassEdit->setText(site->GetPass());
mp_dialog->InfoEdit->setText(site->GetInfo());
mp_dialog->EncryptionComboBox->setCurrentItem(site->GetTls());
mp_dialog->ModeComboBox->setCurrentItem(site->GetPasv());
mp_dialog->AlternativeFxpCheckBox->setChecked(site->GetAlternativeFxp());
mp_dialog->CorrectPasvCheckBox->setChecked(site->GetCorrectPasv());
mp_dialog->DefaultDirectoryEdit->setText(site->GetDefaultDirectory());
m_newitemselected = false;
}
void BookmarkDialog::SLOT_StateChanged()
{
if (!m_newitemselected) ApplyChanges();
}
void BookmarkDialog::SLOT_TextChanged(const QString&)
{
if (!m_newitemselected) ApplyChanges();
}
void BookmarkDialog::ApplyChanges()
{
KbSiteInfo *siteinfo;
KbBookmarkItem *kbb;
kbb = static_cast<KbBookmarkItem*>(mp_dialog->BookmarkListView->selectedItem());
if (!kbb) return;
siteinfo = kbb->GetSiteInfo();
siteinfo->SetName(mp_dialog->NameEdit->text());
siteinfo->SetUser(mp_dialog->UserEdit->text());
siteinfo->SetPass(mp_dialog->PassEdit->text());
siteinfo->SetInfo(mp_dialog->InfoEdit->text());
siteinfo->SetTls(mp_dialog->EncryptionComboBox->currentItem());
siteinfo->SetPasv(mp_dialog->ModeComboBox->currentItem());
siteinfo->SetAlternativeFxp(mp_dialog->AlternativeFxpCheckBox->isOn());
siteinfo->SetCorrectPasv(mp_dialog->CorrectPasvCheckBox->isOn());
siteinfo->SetDefaultDirectory(mp_dialog->DefaultDirectoryEdit->text());
kbb->setText(0, mp_dialog->NameEdit->text());
}

@ -0,0 +1,56 @@
/***************************************************************************
* Copyright (C) 2004 by Magnus Kulke *
* mkulke@magnusmachine *
* *
* 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., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef BOOKMARKDIALOG_H
#define BOOKMARKDIALOG_H
#include <Q_bookmarkdialog.h>
#include <kdialogbase.h>
#include "kbsiteinfo.h"
#include <list>
using namespace std;
/**
@author Magnus Kulke
*/
class BookmarkDialog : public KDialogBase
{
Q_OBJECT
public:
BookmarkDialog(QWidget *parent = 0, const char *name = 0);
~BookmarkDialog();
public slots:
void slotUser1();
void slotUser2();
void slotOk();
void SLOT_TextChanged(const QString& s);
void SLOT_StateChanged();
void SLOT_SelectionChanged();
private:
void ApplyChanges();
void RefreshEntry(KbSiteInfo *site);
void EnableInput(bool b);
KasablancaBookmarkDialog *mp_dialog;
list<KbSiteInfo> m_bookmarklist;
bool m_newitemselected;
};
#endif

@ -0,0 +1,74 @@
/***************************************************************************
customconnectdialog.cpp - description
-------------------
begin : Mit Aug 20 2003
copyright : (C) 2003 by mkulke
email : sikor_sxe@radicalapproach.de
***************************************************************************/
/***************************************************************************
* *
* 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. *
* *
***************************************************************************/
#include <klocale.h>
#include <qstring.h>
#include <qlineedit.h>
#include <qradiobutton.h>
#include <qcombobox.h>
#include <qcheckbox.h>
#include "kbsiteinfo.h"
#include "customconnectdialog.h"
CustomConnectDialog::CustomConnectDialog(QWidget *parent, const char *name ) : KDialogBase(parent, name,
true, i18n( "Custom Site" ), KDialogBase::Ok | KDialogBase::Cancel | KDialogBase::Help, KDialogBase::Ok, true)
{
setHelp("ftphelp");
mp_dialog = new KasablancaCustomConnectDialog(this);
setMainWidget(mp_dialog);
connect(mp_dialog->AnonymousCheckBox, SIGNAL(toggled(bool)), SLOT(SLOT_AnonymousToggled(bool)));
}
CustomConnectDialog::~CustomConnectDialog()
{
}
void CustomConnectDialog::slotOk()
{
mp_site->SetName(mp_dialog->InfoEdit->text());
mp_site->SetInfo(mp_dialog->InfoEdit->text());
mp_site->SetUser(mp_dialog->UserLineEdit->text());
mp_site->SetPass(mp_dialog->PassLineEdit->text());
mp_site->SetTls(mp_dialog->EncryptionComboBox->currentItem());
mp_site->SetPasv(mp_dialog->ModeComboBox->currentItem() ^ 1);
mp_site->SetDefaultDirectory(mp_dialog->DefaultDirectoryEdit->text());
mp_site->SetAlternativeFxp(mp_dialog->AlternativeFxpCheckBox->isOn());
mp_site->SetCorrectPasv(mp_dialog->CorrectPasvCheckBox->isOn());
accept();
}
void CustomConnectDialog::SLOT_AnonymousToggled(bool on)
{
mp_dialog->UserLineEdit->setEnabled(!on);
mp_dialog->PassLineEdit->setEnabled(!on);
if(on) {
m_user = mp_dialog->UserLineEdit->text();
m_pass = mp_dialog->PassLineEdit->text();
mp_dialog->UserLineEdit->setText("anonymous");
mp_dialog->PassLineEdit->setText("some@email.org");
}
else
{
mp_dialog->UserLineEdit->setText(m_user);
mp_dialog->PassLineEdit->setText(m_pass);
}
}

@ -0,0 +1,47 @@
/***************************************************************************
customconnectdialog.h - description
-------------------
begin : Mit Aug 20 2003
copyright : (C) 2003 by mkulke
email : sikor_sxe@radicalapproach.de
***************************************************************************/
/***************************************************************************
* *
* 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. *
* *
***************************************************************************/
#ifndef CUSTOMCONNECTDIALOG_H
#define CUSTOMCONNECTDIALOG_H
#include "Q_customconnectdialog.h"
#include <kdialogbase.h>
class KbSiteInfo;
/**
*@author mkulke
*/
class CustomConnectDialog : public KDialogBase
{
Q_OBJECT
public:
CustomConnectDialog(QWidget *parent=0, const char *name=0);
~CustomConnectDialog();
KbSiteInfo *mp_site;
public slots:
void slotOk();
void SLOT_AnonymousToggled(bool on);
private:
QString m_user;
QString m_pass;
KasablancaCustomConnectDialog *mp_dialog;
};
#endif

@ -0,0 +1,301 @@
/***************************************************************************
* Copyright (C) 2004 by Magnus Kulke *
* mkulke@magnusmachine *
* *
* 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., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include <qevent.h>
#include "ftpthread.h"
#include "eventhandler.h"
/*
class description:
the class transforms the events posted by an ftp thread into signals. the signals
are composed from the type of the arrived event and in certain cases an out_variable.
*/
/* constructor */
EventHandler::EventHandler(QObject *parent, const char *name)
: QObject(parent, name)
{
installEventFilter(this);
mp_thread = NULL;
}
/* destructor */
EventHandler::~EventHandler()
{
}
/* set ftp thread */
void EventHandler::SetFtpThread(FtpThread* thread)
{
mp_thread = thread;
}
/* the eventfilter method. when a certain event arrives a signal is emitted, composed
from the events type and a possible out_ variable from the ftp thread object. */
bool EventHandler::eventFilter(QObject*, QEvent *e )
{
EventType type = (EventType)(e->type());
if (mp_thread == NULL)
{
emit ftp_error("mp_thread is NULL");
return TRUE;
}
else if (type == outlog)
{
QString *line = static_cast<QString*>(static_cast<QCustomEvent*>(e)->data());
emit ftp_log(*line, true);
delete line;
return TRUE;
}
else if (type == inlog)
{
QString *line = static_cast<QString*>(static_cast<QCustomEvent*>(e)->data());
emit ftp_log(*line, false);
delete line;
return TRUE;
}
else if (type == xfered)
{
xferpair* xp = static_cast<xferpair*>(static_cast<QCustomEvent*>(e)->data());
emit ftp_xfered(xp->first, xp->second);
delete xp;
return TRUE;
}
else if (type == finished)
{
emit ftp_finished();
return TRUE;
}
else if (type == connectionlost)
{
emit ftp_connectionlost();
return TRUE;
}
else if (type == connect_success)
{
emit ftp_connect(true);
return TRUE;
}
else if (type == connect_failure)
{
emit ftp_connect(false);
return TRUE;
}
else if (type == misc_success)
{
emit ftp_misc(true);
return TRUE;
}
else if (type == misc_failure)
{
emit ftp_misc(false);
return TRUE;
}
else if (type == login_success)
{
emit ftp_login(true);
return TRUE;
}
else if (type == login_failure)
{
emit ftp_login(false);
return TRUE;
}
else if (type == quit_success)
{
emit ftp_quit(true);
return TRUE;
}
else if (type == quit_failure)
{
emit ftp_quit(false);
return TRUE;
}
else if (type == authtls_success)
{
emit ftp_authtls(true);
return TRUE;
}
else if (type == authtls_failure)
{
emit ftp_authtls(false);
return TRUE;
}
else if (type == pwd_success)
{
QString *path = static_cast<QString*>(static_cast<QCustomEvent*>(e)->data());
emit ftp_pwd(true, *path);
delete path;
return TRUE;
}
else if (type == pwd_failure)
{
emit ftp_pwd(false, "");
return TRUE;
}
else if (type == chdir_success)
{
emit ftp_chdir(true);
return TRUE;
}
else if (type == chdir_failure)
{
emit ftp_chdir(false);
return TRUE;
}
else if (type == transfer_success)
{
emit ftp_transfer(true);
return TRUE;
}
else if (type == transfer_failure)
{
emit ftp_transfer(false);
return TRUE;
}
else if (type == dir_success)
{
contentpair *content = static_cast<contentpair*>(static_cast<QCustomEvent*>(e)->data());
emit ftp_dir(true, content->first, content->second);
return TRUE;
}
else if (type == dir_failure)
{
contentpair *content = static_cast<contentpair*>(static_cast<QCustomEvent*>(e)->data());
emit ftp_dir(false, content->first, content->second);
return TRUE;
}
else if (type == scandir_success)
{
KbDirInfo *dir = static_cast<KbDirInfo*>(static_cast<QCustomEvent*>(e)->data());
emit ftp_scandir(true, dir);
return TRUE;
}
else if (type == scandir_failure)
{
emit ftp_scandir(false, NULL);
return TRUE;
}
else if (type == rm_success)
{
emit ftp_rm(true);
return TRUE;
}
else if (type == rm_failure)
{
emit ftp_rm(false);
return TRUE;
}
else if (type == rmdir_success)
{
emit ftp_rmdir(true);
return TRUE;
}
else if (type == rmdir_failure)
{
emit ftp_rmdir(false);
return TRUE;
}
else if (type == encryptdata_success)
{
emit ftp_encryptdata(true);
return TRUE;
}
else if (type == encryptdata_failure)
{
emit ftp_encryptdata(false);
return TRUE;
}
else if (type == get_success)
{
emit ftp_get(true);
return TRUE;
}
else if (type == get_failure)
{
emit ftp_get(false);
return TRUE;
}
else if (type == mkdir_success)
{
emit ftp_mkdir(true);
return TRUE;
}
else if (type == mkdir_failure)
{
emit ftp_mkdir(false);
return TRUE;
}
else if (type == rename_success)
{
emit ftp_rename(true);
return TRUE;
}
else if (type == rename_failure)
{
emit ftp_rename(false);
return TRUE;
}
else if (type == raw_success)
{
emit ftp_raw(true);
return TRUE;
}
else if (type == raw_failure)
{
emit ftp_raw(false);
return TRUE;
}
else if (type == put_success)
{
emit ftp_put(true);
return TRUE;
}
else if (type == put_failure)
{
emit ftp_put(false);
return TRUE;
}
else if (type == fxp_success)
{
emit ftp_fxp(true);
return TRUE;
}
else if (type == fxp_failure)
{
emit ftp_fxp(false);
return TRUE;
}
else
{
return FALSE;
}
}
#include "eventhandler.moc"

@ -0,0 +1,126 @@
/***************************************************************************
* Copyright (C) 2004 by Magnus Kulke *
* mkulke@magnusmachine *
* *
* 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., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef EVENTHANDLER_H
#define EVENTHANDLER_H
#include <qobject.h>
#include <qvaluelist.h>
#include <list>
#include "kbfileinfo.h"
using namespace std;
class KbDirInfo;
class FtpThread;
/**
@author Magnus Kulke
*/
typedef list<KbFileInfo*> filist;
typedef pair<filist, filist> contentpair;
class EventHandler : public QObject
{
Q_OBJECT
public:
EventHandler(QObject *parent = 0, const char *name = 0);
~EventHandler();
void SetFtpThread(FtpThread* thread);
public:
enum EventType
{
error = 1001,
outlog,
inlog,
xfered,
finished,
connectionlost,
misc_success,
misc_failure,
connect_success,
connect_failure,
login_success,
login_failure,
pwd_success,
pwd_failure,
chdir_success,
chdir_failure,
dir_success,
dir_failure,
scandir_success,
scandir_failure,
rm_success,
rm_failure,
rmdir_success,
rmdir_failure,
quit_success,
quit_failure,
authtls_success,
authtls_failure,
encryptdata_success,
encryptdata_failure,
get_success,
get_failure,
mkdir_success,
mkdir_failure,
rename_success,
rename_failure,
raw_success,
raw_failure,
put_success,
put_failure,
fxp_success,
fxp_failure,
transfer_success,
transfer_failure
};
private:
bool eventFilter(QObject* o, QEvent *e);
private:
FtpThread* mp_thread;
signals:
void ftp_error(QString error);
void ftp_log(QString log, bool out);
void ftp_xfered(off64_t xfered, bool encrypted);
void ftp_misc(bool success);
void ftp_finished();
void ftp_connect(bool success);
void ftp_login(bool success);
void ftp_quit(bool success);
void ftp_pwd(bool success, QString path);
void ftp_chdir(bool success);
void ftp_dir(bool success, list<KbFileInfo*> dirlist, list<KbFileInfo*> filelist);
void ftp_scandir(bool success, KbDirInfo* dir);
void ftp_rm(bool success);
void ftp_rmdir(bool success);
void ftp_authtls(bool success);
void ftp_encryptdata(bool success);
void ftp_get(bool success);
void ftp_mkdir(bool success);
void ftp_rename(bool success);
void ftp_raw(bool success);
void ftp_put(bool success);
void ftp_transfer(bool success);
void ftp_fxp(bool success);
void ftp_connectionlost();
};
#endif

@ -0,0 +1,44 @@
/***************************************************************************
fileexistsdialog.cpp - description
-------------------
begin : Mi Nov 19 2003
copyright : (C) 2003 by mkulke
email : sikor_sxe@radicalapproach.de
***************************************************************************/
/***************************************************************************
* *
* 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. *
* *
***************************************************************************/
#include "fileexistsdialog.h"
FileExistsDialog::FileExistsDialog(QWidget *parent, const char *name ) : KasablancaFileExistsDialog(parent,name)
{
}
FileExistsDialog::~FileExistsDialog(){
}
void FileExistsDialog::Overwrite()
{
done(overwrite);
}
void FileExistsDialog::Resume()
{
done(resume);
}
void FileExistsDialog::Skip()
{
done(skip);
}
void FileExistsDialog::Rename()
{
done(rename);
}

@ -0,0 +1,47 @@
/***************************************************************************
fileexistsdialog.h - description
-------------------
begin : Mi Nov 19 2003
copyright : (C) 2003 by mkulke
email : sikor_sxe@radicalapproach.de
***************************************************************************/
/***************************************************************************
* *
* 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. *
* *
***************************************************************************/
#ifndef FILEEXISTSDIALOG_H
#define FILEEXISTSDIALOG_H
#include <qwidget.h>
#include "Q_fileexistsdialog.h"
/**
*@author mkulke
*/
class FileExistsDialog : public KasablancaFileExistsDialog {
Q_OBJECT
public:
FileExistsDialog(QWidget *parent=0, const char *name=0);
~FileExistsDialog();
enum retval
{
skip = 0,
resume,
rename,
overwrite
};
public slots:
void Resume();
void Overwrite();
void Skip();
void Rename();
};
#endif

File diff suppressed because it is too large Load Diff

@ -0,0 +1,161 @@
/***************************************************************************
ftplib.h - description
-------------------
begin : Son Jul 27 2003
copyright : (C) 2003 by mkulke
email : sikor_sxe@radicalapproach.de
***************************************************************************/
/***************************************************************************
* *
* 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. *
* *
***************************************************************************/
/* original unmodified copyright notes from Thomas Pfau */
/***************************************************************************/
/* */
/* ftplib.c - callable ftp access routines */
/* Copyright (C) 1996, 1997, 1998 Thomas Pfau, pfau@cnj.digex.net */
/* 73 Catherine Street, South Bound Brook, NJ, 08880 */
/* */
/* This library is free software; you can redistribute it and/or */
/* modify it under the terms of the GNU Library General Public */
/* License as published by the Free Software Foundation; either */
/* version 2 of the License, or (at your option) any later version. */
/* */
/* This library is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU */
/* Library General Public License for more details. */
/* */
/* You should have received a copy of the GNU Library General Public */
/* License along with this progam; if not, write to the */
/* Free Software Foundation, Inc., 59 Temple Place - Suite 330, */
/* Boston, MA 02111-1307, USA. */
/* */
/***************************************************************************/
#ifndef FTPLIB_H
#define FTPLIB_H
/* FtpAccess() type codes */
#define FTPLIB_DIR 1
#define FTPLIB_DIR_VERBOSE 2
#define FTPLIB_FILE_READ 3
#define FTPLIB_FILE_WRITE 4
#define FTPLIB_FILE_READ_APPEND 5
#define FTPLIB_FILE_WRITE_APPEND 6
#define FTPLIB_ASCII 'A'
#define FTPLIB_IMAGE 'I'
#include <sys/time.h>
#include <openssl/ssl.h>
using namespace std;
/**
*@author mkulke
*/
typedef int (*FtpCallbackXfer)(off64_t xfered, void *arg);
typedef int (*FtpCallbackIdle)(void *arg);
typedef void (*FtpCallbackLog)(char *str, void* arg, bool out);
struct netbuf {
char *cput,*cget;
int handle;
int cavail,cleft;
char *buf;
int dir;
netbuf *ctrl;
int cmode;
int tlsctrl;
int tlsdata;
struct timeval idletime;
FtpCallbackXfer xfercb;
FtpCallbackIdle idlecb;
FtpCallbackLog logcb;
void *cbarg;
off64_t xfered;
off64_t cbbytes;
off64_t xfered1;
char response[256];
SSL* ssl;
SSL_CTX* ctx;
BIO* sbio;
off64_t offset;
bool correctpasv;
};
class ftplib {
public:
enum ftp
{
pasv = 1,
port = 2,
defaultconnmode = 1,
ascii = 'A',
image = 'I',
unencrypted = 0,
secure = 1,
defaultfxp = 0,
alternativefxp = 1
};
ftplib();
~ftplib();
char* LastResponse();
int Connect(const char *host);
int Login(const char *user, const char *pass);
int Site(const char *cmd);
int Raw(const char *cmd);
int SysType(char *buf, int max);
int Mkdir(const char *path);
int Chdir(const char *path);
int Cdup();
int Rmdir(const char *path);
int Pwd(char *path, int max);
int Nlst(const char *outputfile, const char *path);
int Dir(const char *outputfile, const char *path);
int Size(const char *path, int *size, ftplib::ftp mode);
int ModDate(const char *path, char *dt, int max);
int Get(const char *outputfile, const char *path, ftplib::ftp mode, off64_t offset = 0);
int Put(const char *inputfile, const char *path, ftplib::ftp mode, off64_t offset= 0);
int Rename(const char *src, const char *dst);
int Delete(const char *fnm);
int SetDataEncryption(ftplib::ftp flag);
int NegotiateEncryption();
int Quit();
void SetCallbackIdleFunction(FtpCallbackIdle pointer);
void SetCallbackLogFunction(FtpCallbackLog pointer);
void SetCallbackXferFunction(FtpCallbackXfer pointer);
void SetCallbackArg(void *arg);
void SetCallbackBytes(off64_t bytes);
void SetCorrectPasv(bool b) { mp_netbuf->correctpasv = b; };
void SetCallbackIdletime(int time);
void SetConnmode(ftplib::ftp mode);
static int Fxp(ftplib* src, ftplib* dst, const char *pathSrc, const char *pathDst, ftplib::ftp mode, ftplib::ftp method);
netbuf* mp_netbuf;
int FtpRead(void *buf, int max, netbuf *nData);
int FtpWrite(void *buf, int len, netbuf *nData);
int FtpAccess(const char *path, int typ, int mode, netbuf *nControl, netbuf **nData);
int FtpClose(netbuf *nData);
private:
int FtpXfer(const char *localfile, const char *path, netbuf *nControl, int typ, int mode);
int FtpOpenPasv(netbuf *nControl, netbuf **nData, int mode, int dir, char *cmd);
int FtpSendCmd(const char *cmd, char expresp, netbuf *nControl);
int FtpAcceptConnection(netbuf *nData, netbuf *nControl);
int FtpOpenPort(netbuf *nControl, netbuf **nData, int mode, int dir, char *cmd);
int socket_wait(netbuf *ctl);
int readline(char *buf,int max,netbuf *ctl);
int writeline(char *buf, int len, netbuf *nData);
int readresp(char c, netbuf *nControl);
void ClearNetbuf();
int CorrectPasvResponse(unsigned char *v);
};
#endif

File diff suppressed because it is too large Load Diff

@ -0,0 +1,165 @@
//
// C++ Interface: ftpsession
//
// Description:
//
//
// Author: Magnus Kulke <sikor_sxe@radicalapproach.de>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef FTPSESSION_H
#define FTPSESSION_H
#include <kprocess.h>
#include <qstring.h>
#include <qdir.h>
#include <qpixmap.h>
#include <qobject.h>
#include <qcolor.h>
#include <list>
#include "kbfileinfo.h"
using namespace std;
class FtpThread;
class EventHandler;
class QMutex;
class QTextEdit;
class QToolButton;
class QListView;
class KbSiteInfo;
class QPopupMenu;
class KLineEdit;
class QLabel;
class QPoint;
class KbDirInfo;
class QHeader;
class KbTransferItem;
typedef pair<QString, bool> logentries;
/**
@author Magnus Kulke
*/
class FtpSession : public QObject
{
Q_OBJECT
public:
enum filecheck
{
off = 0,
skip,
clear,
resume
};
public:
FtpSession(QObject *parent = 0, const char *name = 0);
~FtpSession();
void SetLogWindow(QTextEdit* logwindow) { mp_logwindow = logwindow; };
void SetRefreshButton(QToolButton* refreshbutton) { mp_refreshbutton = refreshbutton; };
void SetConnectButton(QToolButton* connectbutton) { mp_connectbutton = connectbutton; };
void SetTransferButton(QToolButton* transferbutton) { mp_transferbutton = transferbutton; }
void SetBrowser(QListView* browser) { mp_browser = browser; };
void SetStatusLine(QLabel* statusline) { mp_statusline = statusline; };
void SetEncryptionIcon(QLabel* encryptionicon) { mp_encryptionicon = encryptionicon; };
void SetBookmarksMenu(QPopupMenu *bookmarksmenu) { mp_bookmarksmenu = bookmarksmenu; };
void SetRclickMenu(QPopupMenu *rclickmenu) { mp_rclickmenu = rclickmenu; };
void SetSessionList(list<FtpSession*> *sessionlist) { mp_sessionlist = sessionlist; };
void SetCurrentTransfer(KbTransferItem* currenttransfer) { mp_currenttransfer = currenttransfer; };
bool Connected() { return m_connected; };
void Disconnect();
void Connect();
bool Occupied() { return m_occupied; };
void Occupy();
void Free();
QString WorkingDir();
void Transfer(KbTransferItem *item);
int CheckFile(KbTransferItem *item);
void Abort();
FtpThread* Ftp() { return mp_ftpthread; };
KbSiteInfo* SiteInfo() { return mp_siteinfo; };
void SetColors(QColor local, QColor success, QColor failure, QColor background);
void SetFont(QFont font);
void SetOnFileExistsDefault(filecheck onfileexistsdefault) {m_onfileexistsdefault = onfileexistsdefault; };
void EnableCmdLine(bool b);
void FilterHiddenFiles(bool b);
void SetCmdLine(KLineEdit* cmdline);
void SetCwdLine(KLineEdit* cwdline);
private:
FtpThread *mp_ftpthread;
EventHandler *mp_eventhandler;
KbSiteInfo *mp_siteinfo;
QTextEdit *mp_logwindow;
QToolButton *mp_connectbutton, *mp_refreshbutton, *mp_transferbutton;
KLineEdit *mp_cwdline, *mp_cmdline;
QPopupMenu* mp_bookmarksmenu, *mp_rclickmenu;
QListView *mp_browser;
QLabel *mp_statusline, *mp_encryptionicon;
QString m_remoteworkingdir;
QDir m_localworkingdir;
QColor m_colorsuccess, m_colorfailure, m_colorlocal;
QFont m_logwindowfont;
int m_sortpref;
bool m_connected, m_occupied, m_sortascending, m_startqueue;
list<logentries> m_loglist;
QPixmap m_iconencrypted, m_iconunencrypted;
QHeader *mp_header;
list<FtpSession*> *mp_sessionlist;
KbTransferItem *mp_currenttransfer;
filecheck m_onfileexistsdefault;
bool m_encrypted;
public slots:
void SLOT_Log(QString log, bool out);
void SLOT_Xfered(off64_t xfered, bool encrypted);
void SLOT_ActionMenu(int i);
void SLOT_ConnectMenu(int i);
void SLOT_HeaderClicked(int section);
void SLOT_LocalProcessExited(KProcess* proc) { delete proc; };
void SLOT_ItemClicked(QListViewItem*);
void SLOT_ItemRClicked(QListViewItem * item, const QPoint & point, int col);
void SLOT_Connect(bool success);
void SLOT_Login(bool success);
void SLOT_Pwd(bool success, QString pwd);
void SLOT_Misc(bool success);
void SLOT_AuthTls(bool success);
void SLOT_EncryptData(bool success);
void SLOT_Dir(bool success, list<KbFileInfo*> dirlist, list<KbFileInfo*> filelist);
void SLOT_ConnectButton();
void SLOT_RefreshButton();
void SLOT_TransferButton();
void SLOT_CwdLine();
void SLOT_CmdLine();
void SLOT_Finish();
void SLOT_ConnectionLost();
void SLOT_Transfer(bool success);
void SLOT_Scandir(bool success, KbDirInfo* dir);
private:
void PrintLog(bool success);
void QueueItems();
void RefreshBrowser();
void UpdateLocal(QString cwd = "");
//bool RmdirLocal(QString dir);
void GetFile(KbTransferItem *item, filecheck fc);
void PutFile(KbTransferItem *item, filecheck fc);
void FxpFile(KbTransferItem *item, filecheck fc);
void ChangeDirectory(QString path);
bool CheckLocalDirectory(QString path);
bool MakeLocalDirectory(QString path);
bool CopyLocalFile(KbTransferItem* item);
bool ScandirLocal(KbDirInfo *dir, QString path);
void SortItems();
void MakeDirectory(QString dir);
void timerEvent(QTimerEvent*);
signals:
void gui_update();
void gui_queueitems(KbDirInfo* dir, FtpSession* src, FtpSession* dst, bool startqueue);
void gui_succeedtransfer(QListViewItem* item);
void gui_clearqueue(FtpSession* session);
};
#endif

File diff suppressed because it is too large Load Diff

@ -0,0 +1,156 @@
/***************************************************************************
* Copyright (C) 2004 by Magnus Kulke *
* mkulke@magnusmachine *
* *
* 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., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef FTPTHREAD_H
#define FTPTHREAD_H
#define KB_THREAD_TIMEOUT 1000
#include <list>
#include <qthread.h>
#include <qstringlist.h>
#include <qvaluelist.h>
#include <qvaluevector.h>
#include "eventhandler.h"
#include "kbfileinfo.h"
using namespace std;
class ftplib;
class QObject;
class KbDirInfo;
typedef list<KbFileInfo*> filist;
typedef pair<off64_t, bool> xferpair;
typedef pair<filist, filist> dirpair;
/**
@author Magnus Kulke
*/
class FtpThread : public QThread
{
public:
FtpThread();
~FtpThread();
static void CallbackLog(char *log, void *arg, bool out);
static int CallbackXfer(off64_t xfered, void *arg);
void SetEventReceiver(QObject* eventreceiver);
void ClearQueue();
bool Connect(QString host);
bool Login(QString user, QString pass);
bool Quit();
bool Pwd();
bool Chdir(QString path);
bool Cdup();
bool Dir(bool force = false);
bool Scandir(KbDirInfo* dir);
bool Rm(QString name);
bool Rmdir(QString name);
bool Authtls();
bool Pasv(bool flag);
bool EncryptData(bool flag, bool force = false);
bool Transfer_Fxp(QString src, QString dst, FtpThread* dstftp, int srctls, int dsttls, off64_t resume = 0, int alt = 0);
bool Mkdir(QString path);
bool Rename(QString src, QString dst);
bool Raw(QString cmd);
bool Transfer_Get(QString src, QString dst, int tls, off64_t resume = 0);
bool Transfer_Put(QString src, QString dst, int tls, off64_t resume = 0);
bool Transfer_Changedir(QString dir, int tls);
bool Transfer_Mkdir(QString dir);
void Event(EventHandler::EventType type, void *data = NULL);
ftplib* Ftp() { return mp_ftp; };
void FxpReportResult(bool result);
bool FxpDisableTls();
private:
enum task
{
connect = 0,
negotiateencryption,
login,
quit,
pwd,
chdir,
cdup,
dir,
scandir,
rm,
rmdir,
authtls,
dataencryption,
mkdir,
rename,
raw,
transfer_changedir,
transfer_get,
transfer_mkdir,
transfer_put,
transfer_fxp
};
void run();
bool FormatFilelist(const char *filename,
QString current,
filist *filetable,
filist *dirtable
);
void InitInternals();
void Connect_thread();
void Login_thread();
void Pwd_thread();
void Quit_thread();
void Chdir_thread();
void Cdup_thread();
void Dir_thread();
void Scandir_thread();
void Delete_thread();
void Rm_thread();
void Rmdir_thread();
void Authtls_thread();
void Dataencryption_thread();
void Mkdir_thread();
void Rename_thread();
void Raw_thread();
void Transfer_Changedir_thread();
void Transfer_Get_thread();
void Transfer_Put_thread();
void Transfer_Fxp_thread();
void Transfer_Mkdir_thread();
bool Scandir_recurse(KbDirInfo *dir, QString path);
bool Delete_recurse(QString name);
bool ConnectionLost();
private:
QMutex* mp_mutex;
QObject* mp_eventreceiver;
ftplib* mp_ftp;
QString m_pwd;
bool m_dataencrypted;
KbDirInfo* mp_scandir;
filist m_dirlist, m_filelist;
dirpair m_dircontent;
QValueList<task> m_tasklist;
QStringList m_stringlist;
QValueList<int> m_intlist;
QValueList<off64_t> m_ulonglist;
QValueList<FtpThread*> m_ftplist;
QValueVector<dirpair> m_cache_vector;
QStringList m_cache_list;
public:
QString m_linebuffer;
};
#endif

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 858 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

@ -0,0 +1,177 @@
//
// C++ Implementation: importdialog
//
// Description:
//
//
// Author: Christoph Thielecke <u15119@hs-harz.de>, (C) 2004
//
// Contains pieces of code from kbear, Björn Sahlström <kbjorn@users.sourceforge.net>
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include <qradiobutton.h>
#include <qdir.h>
#include <qfile.h>
#include <qprogressdialog.h>
#include <klocale.h>
#include <kconfig.h>
#include <kmessagebox.h>
#include <kdebug.h>
#include "kbsiteinfo.h"
#include "importdialog.h"
using namespace std;
ImportDialog::ImportDialog(QWidget *parent, const char *name ) : KDialogBase(parent, name, true, i18n( "Import Bookmarks" ), KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, true)
{
mp_dialog = new KasablancaImportDialog(this);
setMainWidget(mp_dialog);
}
ImportDialog::~ImportDialog()
{
}
void ImportDialog::slotOk()
{
if (mp_dialog->GftpRadioButton->isChecked())
importGftpBookmarks ( QDir::homeDirPath() + "/.gftp/bookmarks" );
accept();
}
void ImportDialog::importGftpBookmarks( QString fileName ) {
// kdDebug() << "import start" << endl;
if ( fileName.isEmpty() || fileName.isNull() ) {
KMessageBox::sorry( 0, i18n( "You have to select a file to import." ), i18n( "No file" ) );
// emit progress( 100 );
return ;
}
QFile f(fileName);
if ( !f.exists() ) {
KMessageBox::information( 0, i18n( "No gftp bookmarks to import found." ), i18n( "No file" ) );
// emit progress( 100 );
return ;
}
// First we fetch some global settings
KConfig tmpConfig( fileName, true, false, "HOME" );
QString email = tmpConfig.readEntry( "email", "anonymous@" );
KConfig config( fileName, true, false, "HOME" );
QStringList groupList = config.groupList();
float size = ( float ) groupList.count();
if ( size == 0 ) {
// m_hasError = true;
// emit progress( 100 );
return ;
}
int counter = 0;
m_lines = groupList.count();
QProgressDialog progress( 0, "progressdialog", true );
progress.setLabelText( i18n( "Importing bookmarks..." ) );
progress.setCancelButton( 0 );
progress.setTotalSteps( m_lines );
for ( QStringList::Iterator it = groupList.begin(); it != groupList.end(); ++it ) {
QString groupName = *it; // found groupname from gFTP, can have subgroups ( group1/group2/group3 )
QStringList groupNames = QStringList::split( "/", groupName ); //split group name into subgroups if any
config.setGroup( groupName );
QString tmp = config.readEntry( "hostname" ); // we ignore the site if it hasn't any host
// first check so the site has a host, if not ignore it
if ( ! tmp.isNull() ) { // had host
KbSiteInfo newsite;
// kdDebug() << "-- start -- " << endl;
// kdDebug() << "bookmark count (read): " << counter << endl;
tmp = groupName;
// kdDebug() << "label: " << tmp << endl;
newsite.SetName( tmp );
// set host
tmp = config.readEntry( "hostname" );
// kdDebug() << "hostname: " << tmp << endl;
// set port
int p = config.readNumEntry( "port", 21 );
// kdDebug() << "port: " << p << endl;
// QString HostPort = tmp; /* host:port */
// HostPort += ":";
// HostPort += QString().setNum( p );
newsite.SetInfo(tmp + ":" + QString::number(p));
//newsite.SetPort( p );
//newsite.SetHostname(tmp);
// set protocol
//tmp = config.readEntry( "protocol", "ftp" ).lower();
//kdDebug() << "protocol: " << tmp << endl;
// set remote directory
tmp = config.readEntry( "remote directory", "/" );
// kdDebug() << "remote directory: " << tmp << endl;
newsite.SetDefaultDirectory( tmp );
// set local directory
//tmp = config.readEntry( "local directory", QDir::homeDirPath() );
//kdDebug() << "local directory: " << tmp << endl;
// set username
tmp = config.readEntry( "username", "anonymous" );
newsite.SetUser( tmp );
// set password
tmp = config.readEntry( "password" );
if ( tmp == "@EMAIL@" || tmp.isNull() || tmp.isEmpty() )
tmp = email;
// kdDebug() << "password: " << tmp << endl;
newsite.SetPass( tmp );
// kdDebug() << "-- end -- " << endl;
newsite.SetPasv( 1 );
newsite.SetTls( 0 );
newsite.SetAlternativeFxp( 0 );
newsite.SetCorrectPasv( 0 );
m_bookmarks.push_back( newsite );
}
// emit progress( int( float( counter ) / size * 100 ) );
counter++;
progress.setProgress( counter );
} // for
KMessageBox::information( 0, i18n( "%1 bookmarks from gftp successful imported." ).arg(QString().setNum(counter-1)), i18n( "Successful import" ) );
/*
int cnt = 0;
list<KbSiteInfo>::iterator end_session = bookmarks.end();
for (list<KbSiteInfo>::iterator i = bookmarks.begin(); i != end_session; i++){
cnt++;
kdDebug() << "bookmark count(list): " << cnt << endl;
}*/
}

@ -0,0 +1,40 @@
//
// C++ Interface: importdialog
//
// Description:
//
//
// Author: Christoph Thielecke <u15119@hs-harz.de>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef IMPORTDIALOG_H
#define IMPORTDIALOG_H
#include <kdialogbase.h>
#include <list>
#include "kbsiteinfo.h"
#include "Q_importdialog.h"
/**
@author Christoph Thielecke
*/
class ImportDialog : public KDialogBase
{
public:
ImportDialog(QWidget *parent=0, const char *name=0);
~ImportDialog();
list<KbSiteInfo>* Bookmarks() { return &m_bookmarks; };
private:
list<KbSiteInfo> m_bookmarks;
int m_lines;
KasablancaImportDialog *mp_dialog;
void slotOk();
void importGftpBookmarks(QString fileName);
};
#endif

@ -0,0 +1,632 @@
/***************************************************************************
kasablanca.cpp - description
-------------------
begin : Die Aug 19 20:54:14 CEST 2003
copyright : (C) 2003 by mkulke
email : sikor_sxe@radicalapproach.de
***************************************************************************/
/***************************************************************************
* *
* 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. *
* *
***************************************************************************/
#include <kaction.h>
#include <kapp.h>
#include <kapplication.h>
#include <kdeversion.h>
#include <kedittoolbar.h>
#include <kglobal.h>
#include <kiconloader.h>
#include <kicontheme.h>
#include <kkeydialog.h>
#include <klocale.h>
#include <kmainwindow.h>
#include <kmenubar.h>
#include <kmessagebox.h>
#include <kstandarddirs.h>
#include <kstatusbar.h>
#include <kstdaction.h>
#include <ksystemtray.h>
#include <kconfigdialog.h>
#include <kpassivepopup.h>
#include <klineedit.h>
#include <qtextedit.h>
#include <qcolor.h>
#include <qlistview.h>
#include <qpushbutton.h>
#include <qheader.h>
#include <qtoolbutton.h>
#include <qaction.h>
#include "Q_colorspreferencesdialog.h"
#include "Q_generalpreferencesdialog.h"
#include "Q_userinterfacepreferencesdialog.h"
#include "importdialog.h"
#include "customconnectdialog.h"
#include "fileexistsdialog.h"
#include "bookmarkdialog.h"
#include "kbtransferdir.h"
#include "kbtransferfile.h"
#include "kbdirinfo.h"
#include "ftpsession.h"
#include "kbconfig.h"
#include "kbtaskview.h"
#include "kasablanca.h"
#include "kbstatustip.h"
using namespace std;
Kasablanca::Kasablanca() : KMainWindow( 0, "Kasablanca" ), mp_view(new KasablancaMainWindow(this))
{
//first, load the system tray icon
mp_systemtray = new KSystemTray(this);
mp_systemtray->setPixmap( KSystemTray::loadIcon( "kasablanca" ) );
if ( KbConfig::systrayIsEnabled() ) mp_systemtray->show();
mp_statustip = new KbStatusTip(mp_systemtray);
mp_session_a = new FtpSession(this, "session a");
mp_session_b = new FtpSession(this, "session b");
mp_sessionlist = new list<FtpSession*>;
mp_sessionlist->push_back(mp_session_a);
mp_sessionlist->push_back(mp_session_b);
setAcceptDrops(true);
setCentralWidget(mp_view);
setupGUI();
setupActions();
setupStatusBar();
setupMenu();
statusBar()->show();
setAutoSaveSettings();
/* when the qmainwindow is closed the object gets deleted,
so the destructers of kbprocesses are called. */
setWFlags(WDestructiveClose);
/* if initbookmarks returns false, an error box appears */
InitBookmarks();
//if (!InitBookmarks() != 1) KMessageBox::error(0, i18n("Could not open Kasablanca bookmark xml."));
connect(mp_view->BrowserB, SIGNAL(selectionChanged()), SLOT(SLOT_SelectionChanged()));
connect(mp_view->BrowserA, SIGNAL(selectionChanged()), SLOT(SLOT_SelectionChanged()));
connect(mp_view->TaskView, SIGNAL(selectionChanged()), SLOT(SLOT_SelectionChanged()));
mp_session_a->SetLogWindow(mp_view->LogWindowA);
mp_session_a->SetBrowser(mp_view->BrowserA);
mp_session_a->SetConnectButton(mp_view->ConnectButtonA);
mp_session_a->SetRefreshButton(mp_view->RefreshButtonA);
mp_session_a->SetTransferButton(mp_view->TransferButtonA);
mp_session_a->SetCmdLine(mp_view->CommandLineA);
mp_session_a->SetCwdLine(mp_view->CwdLineA);
mp_session_a->SetBookmarksMenu(&m_bookmarksmenu_a);
mp_session_a->SetStatusLine(mp_statusline_a);
mp_session_a->SetEncryptionIcon(mp_encryptionicon_a);
mp_session_a->SetRclickMenu(&m_rclickmenu_a);
mp_session_a->SetSessionList(mp_sessionlist);
connect(mp_view->RefreshButtonA, SIGNAL(clicked()), mp_session_a, SLOT(SLOT_RefreshButton()));
connect(mp_view->ConnectButtonA, SIGNAL(clicked()), mp_session_a, SLOT(SLOT_ConnectButton()));
connect(mp_view->TransferButtonA, SIGNAL(clicked()), mp_session_a, SLOT(SLOT_TransferButton()));
connect(mp_view->CwdLineA, SIGNAL(returnPressed()), mp_session_a, SLOT(SLOT_CwdLine()));
connect(mp_view->CommandLineA, SIGNAL(returnPressed()), mp_session_a, SLOT(SLOT_CmdLine()));
mp_session_b->SetLogWindow(mp_view->LogWindowB);
mp_session_b->SetBrowser(mp_view->BrowserB);
mp_session_b->SetConnectButton(mp_view->ConnectButtonB);
mp_session_b->SetRefreshButton(mp_view->RefreshButtonB);
mp_session_b->SetTransferButton(mp_view->TransferButtonB);
mp_session_b->SetCmdLine(mp_view->CommandLineB);
mp_session_b->SetCwdLine(mp_view->CwdLineB);
mp_session_b->SetBookmarksMenu(&m_bookmarksmenu_b);
mp_session_b->SetStatusLine(mp_statusline_b);
mp_session_b->SetEncryptionIcon(mp_encryptionicon_b);
mp_session_b->SetRclickMenu(&m_rclickmenu_b);
mp_session_b->SetSessionList(mp_sessionlist);
connect(mp_view->RefreshButtonB, SIGNAL(clicked()), mp_session_b, SLOT(SLOT_RefreshButton()));
connect(mp_view->ConnectButtonB, SIGNAL(clicked()), mp_session_b, SLOT(SLOT_ConnectButton()));
connect(mp_view->TransferButtonB, SIGNAL(clicked()), mp_session_b, SLOT(SLOT_TransferButton()));
connect(mp_view->CwdLineB, SIGNAL(returnPressed()), mp_session_b, SLOT(SLOT_CwdLine()));
connect(mp_view->CommandLineB, SIGNAL(returnPressed()), mp_session_b, SLOT(SLOT_CmdLine()));
connect(mp_session_a, SIGNAL(gui_update()), SLOT(SLOT_SelectionChanged()));
connect(mp_session_b, SIGNAL(gui_update()), SLOT(SLOT_SelectionChanged()));
connect(mp_session_a, SIGNAL(gui_queueitems(KbDirInfo*, FtpSession*, FtpSession*, bool)),
SLOT(SLOT_QueueItems(KbDirInfo*, FtpSession*, FtpSession*, bool)));
connect(mp_session_b, SIGNAL(gui_queueitems(KbDirInfo*, FtpSession*, FtpSession*, bool)),
SLOT(SLOT_QueueItems(KbDirInfo*, FtpSession*, FtpSession*, bool)));
connect(mp_session_a, SIGNAL(gui_succeedtransfer(QListViewItem*)), SLOT(SLOT_NextTransfer(QListViewItem*)));
connect(mp_session_b, SIGNAL(gui_succeedtransfer(QListViewItem*)), SLOT(SLOT_NextTransfer(QListViewItem*)));
connect(mp_session_a, SIGNAL(gui_clearqueue(FtpSession*)), SLOT(SLOT_ClearQueue(FtpSession*)));
connect(mp_session_b, SIGNAL(gui_clearqueue(FtpSession*)), SLOT(SLOT_ClearQueue(FtpSession*)));
QAction *deleteShortcut = new QAction( QPixmap(), "&Delete",
Key_Delete, this, "delete" );
connect(deleteShortcut, SIGNAL(activated()), this, SLOT(SLOT_SkipTasks()));
mp_session_a->Disconnect();
mp_session_b->Disconnect();
applyConfig();
}
void Kasablanca::setupGUI()
{
mp_view->TaskView->setSorting(-1);
mp_view->BrowserA->setSorting(-1);
mp_view->BrowserB->setSorting(-1);
mp_view->TransferButtonA->setIconSet(KGlobal::iconLoader()->loadIconSet("forward",KIcon::Toolbar));
mp_view->TransferButtonB->setIconSet(KGlobal::iconLoader()->loadIconSet("back",KIcon::Toolbar));
mp_view->RefreshButtonA->setIconSet(KGlobal::iconLoader()->loadIconSet("reload",KIcon::Toolbar));
mp_view->RefreshButtonB->setIconSet(KGlobal::iconLoader()->loadIconSet("reload",KIcon::Toolbar));
mp_view->ConnectButtonA->setIconSet(KGlobal::iconLoader()->loadIconSet("connect_no",KIcon::Toolbar));
mp_view->ConnectButtonB->setIconSet(KGlobal::iconLoader()->loadIconSet("connect_no",KIcon::Toolbar));
}
void Kasablanca::applyConfig()
{
FtpSession::filecheck def = FtpSession::off;
if (!KbConfig::onFileExistsIsEnabled()) def = FtpSession::off;
else if(KbConfig::onFileExistsOverwrite()) def = FtpSession::clear;
else if(KbConfig::onFileExistsResume()) def = FtpSession::resume;
else if(KbConfig::onFileExistsSkip()) def = FtpSession::skip;
m_skiplist.setPattern(KbConfig::skiplist());
m_skiplistenabled = KbConfig::skiplistIsEnabled();
m_onqueuefinishedenabled = KbConfig::onQueueFinishedIsEnabled();
m_onqueuefinished = KbConfig::onQueueFinished();
list<FtpSession*>::iterator end_session = mp_sessionlist->end();
for (list<FtpSession*>::iterator i = mp_sessionlist->begin(); i != end_session; i++)
{
(*i)->SetColors(KbConfig::localColor(), KbConfig::successColor(), KbConfig::failureColor(), KbConfig::backgroundColor());
(*i)->SetOnFileExistsDefault(def);
(*i)->EnableCmdLine(KbConfig::commandLineIsEnabled());
(*i)->SetFont(KbConfig::logwindowFont());
(*i)->FilterHiddenFiles(KbConfig::hideHiddenFilesIsEnabled());
}
// make the system tray switch on/off when settings are changed
if (KbConfig::systrayIsEnabled()) mp_systemtray->show();
else mp_systemtray->hide();
}
void Kasablanca::saveSettings()
{
KbConfig::writeConfig();
}
void Kasablanca::setupActions()
{
KStdAction::quit(kapp, SLOT(quit()), actionCollection());
//m_toolbarAction = KStdAction::showToolbar(this, SLOT(optionsShowToolbar()), actionCollection());
m_statusbarAction = KStdAction::showStatusbar(this, SLOT(optionsShowStatusbar()), actionCollection());
KStdAction::keyBindings(this, SLOT(optionsConfigureKeys()), actionCollection());
//KStdAction::configureToolbars(this, SLOT(optionsConfigureToolbars()), actionCollection());
KStdAction::preferences(this, SLOT(optionsPreferences()), actionCollection());
/*
// this doesn't do anything useful. it's just here to illustrate
// how to insert a custom menu and menu item
KAction *custom = new KAction(i18n("Cus&tom Menuitem"), 0,
this, SLOT(optionsPreferences()),
actionCollection(), "custom_action");
*/
new KAction(i18n("Edit"), CTRL+Key_E, this, SLOT(SLOT_EditBookmarks()), actionCollection(), "edit bookmarks action");
new KAction(i18n("Import"), CTRL+Key_I, this, SLOT(SLOT_ImportBookmarks()), actionCollection(), "import bookmarks action");
createGUI();
}
void Kasablanca::optionsShowToolbar()
{
if (m_toolbarAction->isChecked())
toolBar()->show();
else
toolBar()->hide();
}
void Kasablanca::optionsShowStatusbar()
{
if (m_statusbarAction->isChecked())
statusBar()->show();
else
statusBar()->hide();
}
void Kasablanca::optionsConfigureKeys()
{
KKeyDialog::configure(actionCollection(), mp_view);
}
void Kasablanca::optionsConfigureToolbars()
{
// use the standard toolbar editor
#if defined(KDE_MAKE_VERSION)
# if KDE_VERSION >= KDE_MAKE_VERSION(3,1,0)
saveMainWindowSettings(KGlobal::config(), autoSaveGroup());
# else
saveMainWindowSettings(KGlobal::config());
# endif
#else
saveMainWindowSettings(KGlobal::config());
#endif
}
void Kasablanca::optionsPreferences()
{
if (KConfigDialog::showDialog("settings")) return;
KConfigDialog* dialog = new KConfigDialog(0, "settings", KbConfig::self(), KDialogBase::IconList,
KDialogBase::Ok | KDialogBase::Apply | KDialogBase::Cancel | KDialogBase::Help);
dialog->setHelp("globalhelp");
KasablancaGeneralPreferencesDialog *general = new KasablancaGeneralPreferencesDialog(0, i18n("General"));
KasablancaColorsPreferencesDialog *colors = new KasablancaColorsPreferencesDialog(0, i18n("Colors"));
KasablancaUserInterfacePreferencesDialog *ui = new KasablancaUserInterfacePreferencesDialog(0, i18n("User Interface"));
dialog->addPage(general, i18n("General"), "kasablanca");
dialog->addPage(colors, i18n("Colors"), "colors");
dialog->addPage(ui, i18n("User Interface"), "winprops");
connect(dialog, SIGNAL(settingsChanged()), this, SLOT(applyConfig()));
dialog->show();
}
void Kasablanca::newToolbarConfig()
{
// this slot is called when user clicks "Ok" or "Apply" in the toolbar editor.
// recreate our GUI, and re-apply the settings (e.g. "text under icons", etc.)
createGUI();
#if defined(KDE_MAKE_VERSION)
# if KDE_VERSION >= KDE_MAKE_VERSION(3,1,0)
applyMainWindowSettings(KGlobal::config(), autoSaveGroup());
# else
applyMainWindowSettings(KGlobal::config());
# endif
#else
applyMainWindowSettings(KGlobal::config());
#endif
}
void Kasablanca::setupMenu()
{
QWidget *w;
w = factory()->container("connect menu", this);
if (w == NULL) qWarning("ERROR: 'connect menu' not found in .ui file");
else
{
QPopupMenu *menu = static_cast<QPopupMenu *>(w);
menu->insertItem(i18n("Session A"), &m_bookmarksmenu_a);
menu->insertItem(i18n("Session B"), &m_bookmarksmenu_b);
}
w = factory()->container("action menu", this);
if (w == NULL) qWarning("ERROR: 'action menu' not found in .ui file");
else
{
QPopupMenu *menu = static_cast<QPopupMenu *>(w);
menu->insertItem(i18n("Session A"), &m_rclickmenu_a);
menu->insertItem(i18n("Session B"), &m_rclickmenu_b);
menu->insertItem(i18n("Queue"), &m_rclickmenu_t);
}
m_rclickmenu_a.insertItem(i18n("Transfer"), Transfer);
m_rclickmenu_a.insertItem(i18n("Put in queue"), Queue);
m_rclickmenu_a.insertSeparator();
m_rclickmenu_a.insertItem(i18n("Delete"), Delete);
m_rclickmenu_a.insertItem(i18n("Rename"), Rename);
m_rclickmenu_a.insertItem(i18n("Mkdir"), Mkdir);
m_rclickmenu_a.insertSeparator();
m_rclickmenu_a.insertItem(i18n("Bookmark site"), Bookmark);
m_rclickmenu_b.insertItem(i18n("Transfer"), Transfer);
m_rclickmenu_b.insertItem(i18n("Put in queue"), Queue);
m_rclickmenu_b.insertSeparator();
m_rclickmenu_b.insertItem(i18n("Delete"), Delete);
m_rclickmenu_b.insertItem(i18n("Rename"), Rename);
m_rclickmenu_b.insertItem(i18n("Mkdir"), Mkdir);
m_rclickmenu_b.insertSeparator();
m_rclickmenu_b.insertItem(i18n("Bookmark site"), Bookmark);
m_rclickmenu_t.insertItem(i18n("Start Queue"), Start);
m_rclickmenu_t.insertSeparator();
m_rclickmenu_t.insertItem(i18n("Skip Item(s)"), Skip);
connect(&m_rclickmenu_a, SIGNAL(activated(int)), mp_session_a, SLOT(SLOT_ActionMenu(int)));
connect(&m_bookmarksmenu_a, SIGNAL(activated(int)), mp_session_a, SLOT(SLOT_ConnectMenu(int)));
connect(mp_view->BrowserA, SIGNAL(doubleClicked(QListViewItem*)), mp_session_a, SLOT(SLOT_ItemClicked(QListViewItem*)));
connect(mp_view->BrowserA, SIGNAL(rightButtonPressed(QListViewItem *, const QPoint &, int)),
mp_session_a, SLOT(SLOT_ItemRClicked(QListViewItem *, const QPoint &, int)));
connect(mp_view->BrowserA->header(), SIGNAL (clicked(int)), mp_session_a, SLOT (SLOT_HeaderClicked(int)));
connect(&m_rclickmenu_b, SIGNAL(activated(int)), mp_session_b, SLOT(SLOT_ActionMenu(int)));
connect(&m_bookmarksmenu_b, SIGNAL(activated(int)), mp_session_b, SLOT(SLOT_ConnectMenu(int)));
connect(mp_view->BrowserB, SIGNAL(doubleClicked(QListViewItem*)), mp_session_b, SLOT(SLOT_ItemClicked(QListViewItem*)));
connect(mp_view->BrowserB, SIGNAL(rightButtonPressed(QListViewItem *, const QPoint &, int)),
mp_session_b, SLOT(SLOT_ItemRClicked(QListViewItem *, const QPoint &, int)));
connect(mp_view->BrowserB->header(), SIGNAL(clicked(int)), mp_session_b, SLOT(SLOT_HeaderClicked(int)));
connect( mp_view->TaskView, SIGNAL (rightButtonPressed( QListViewItem *, const QPoint &, int )), this,
SLOT (SLOT_ItemRightClickedT(QListViewItem *, const QPoint &, int )));
m_rclickmenu_t.connectItem(Start, this, SLOT(SLOT_ProcessQueue()));
m_rclickmenu_t.connectItem(Skip, this, SLOT(SLOT_SkipTasks()));
}
void Kasablanca::setupStatusBar()
{
m_iconencrypted = KGlobal::iconLoader()->loadIconSet("encrypted",KIcon::Small).pixmap(QIconSet::Small,QIconSet::Normal);
m_iconunencrypted = KGlobal::iconLoader()->loadIconSet("encrypted",KIcon::Small).pixmap(QIconSet::Small,QIconSet::Disabled);
mp_statusline_a = new QLabel("", statusBar());
mp_encryptionicon_a = new QLabel(statusBar());
mp_encryptionicon_a->setPixmap(m_iconunencrypted);
mp_statusline_b = new QLabel("", statusBar());
mp_encryptionicon_b = new QLabel(statusBar());
mp_encryptionicon_b->setPixmap(m_iconunencrypted);
statusBar()->addWidget(mp_statusline_a, 1);
statusBar()->addWidget(mp_encryptionicon_a, 0);
statusBar()->addWidget(mp_statusline_b, 1, true);
statusBar()->addWidget(mp_encryptionicon_b, 0, true);
}
Kasablanca::~Kasablanca()
{
}
void Kasablanca::InitBookmarks()
{
int count;
m_bookmarks.clear();
m_bookmarks = KbSiteInfo::ParseBookmarks();
m_bookmarksmenu_a.clear();
m_bookmarksmenu_b.clear();
m_bookmarksmenu_a.insertItem(i18n("Custom"),0);
m_bookmarksmenu_b.insertItem(i18n("Custom"),0);
count = 1;
m_bookmarksmenu_a.insertSeparator();
m_bookmarksmenu_b.insertSeparator();
list<KbSiteInfo>::iterator end_bookmarks = m_bookmarks.end();
for (list<KbSiteInfo>::iterator i = m_bookmarks.begin(); i != end_bookmarks; i++)
{
m_bookmarksmenu_a.insertItem((*i).GetName(),count);
m_bookmarksmenu_b.insertItem((*i).GetName(),count);
count++;
}
}
void Kasablanca::SLOT_QueueItems(KbDirInfo *dir, FtpSession* src, FtpSession* dst, bool startqueue)
{
QueueItemsRecurse(dir, src, dst);
if ((mp_view->TaskView->firstChild()) && (startqueue))
{
if (!src->Connected()) ProcessQueue(static_cast<KbTransferItem*>(mp_view->TaskView->firstChild()));
else static_cast<KbTransferItem*>(mp_view->TaskView->firstChild())->Init();
}
}
void Kasablanca::QueueItemsRecurse(KbDirInfo *dir, FtpSession* src, FtpSession* dst, QListViewItem* parent)
{
list<KbFileInfo*>* filelist;
list<KbDirInfo*>* dirlist;
QListViewItem *after, *lastchild;
filelist = dir->Filelist();
dirlist = dir->Dirlist();
if (KbConfig::prioritylistIsEnabled())
{
dirlist->sort(KbDirInfo::PrioritySort);
filelist->sort(KbFileInfo::PrioritySort);
}
lastchild = mp_view->TaskView->LastChild();
after = NULL;
list<KbFileInfo*>::iterator end_file = filelist->end();
for(list<KbFileInfo*>::iterator fileIterator = filelist->begin(); fileIterator != end_file; fileIterator++)
{
if ((m_skiplist.search((*fileIterator)->fileName()) < 0) || (!m_skiplistenabled))
{
KbFileInfo *srcfi = new KbFileInfo(**fileIterator);
KbFileInfo *dstfi = new KbFileInfo(**fileIterator);
srcfi->SetDirPath(src->WorkingDir() + srcfi->dirPath());
dstfi->SetDirPath(dst->WorkingDir() + dstfi->dirPath());
if (parent) after = new KbTransferFile(parent, after, src, dst, srcfi, dstfi);
else new KbTransferFile(mp_view->TaskView, lastchild /*mp_view->TaskView->lastItem()*/, src, dst, srcfi, dstfi);
}
else qWarning("INFO: entry ignored due to matched skiplist regexp");
}
after = NULL;
list<KbDirInfo*>::iterator end_dir = dirlist->end();
for(list<KbDirInfo*>::iterator dirIterator = dirlist->begin(); dirIterator != end_dir; dirIterator++)
{
if ((m_skiplist.search((*dirIterator)->fileName()) < 0) || (!m_skiplistenabled))
{
KbFileInfo *srcfi = new KbFileInfo(*(*dirIterator));
KbFileInfo *dstfi = new KbFileInfo(*(*dirIterator));
srcfi->SetDirPath(src->WorkingDir() + srcfi->dirPath());
dstfi->SetDirPath(dst->WorkingDir() + dstfi->dirPath());
if (parent) after = new KbTransferDir(parent, after, src, dst, srcfi, dstfi);
else after = new KbTransferDir(mp_view->TaskView, lastchild /*mp_view->TaskView->lastItem()*/, src, dst, srcfi, dstfi);
QueueItemsRecurse(*dirIterator, src, dst, after);
}
else qWarning("INFO: entry ignored due to matched skiplist regexp");
}
delete dir;
}
void Kasablanca::SLOT_EditBookmarks()
{
BookmarkDialog dlg;
if (dlg.exec() == QDialog::Accepted)
{
InitBookmarks();
}
}
void Kasablanca::SLOT_ImportBookmarks()
{
ImportDialog dlg;
dlg.exec();
int cnt=0;
list<KbSiteInfo> newbookmarklist;
list<KbSiteInfo>::iterator end_session = dlg.Bookmarks()->end();
for (list<KbSiteInfo>::iterator i = dlg.Bookmarks()->begin(); i != end_session; i++)
{
m_bookmarks.push_back( *i );
cnt++;
}
KbSiteInfo::WriteBookmarks(m_bookmarks);
}
void Kasablanca::SLOT_ClearQueue(FtpSession*)
{
mp_view->TaskView->clear();
}
void Kasablanca::SLOT_ItemRightClickedT(QListViewItem *, const QPoint & point, int)
{
m_rclickmenu_t.exec(point);
}
void Kasablanca::SLOT_SkipTasks()
{
QListViewItemIterator it(mp_view->TaskView);
while ( it.current() )
{
if (it.current()->isSelected()) delete it.current();
else ++it;
}
}
void Kasablanca::SLOT_SelectionChanged()
{
int counter_a = 0;
int counter_b = 0;
bool flag;
QListViewItemIterator ita(mp_view->BrowserA);
while ( ita.current() )
{
if (ita.current()->isSelected()) counter_a++;
++ita;
}
flag = ((counter_a) && (!mp_session_a->Occupied()) && (!mp_session_b->Occupied()));
m_rclickmenu_a.setItemEnabled(Transfer, flag);
m_rclickmenu_a.setItemEnabled(Queue, flag);
mp_view->TransferButtonA->setEnabled(flag);
/* when at least one item is selected, Delete and Rename are
enabled. */
m_rclickmenu_a.setItemEnabled(Rename, (counter_a >= 1));
m_rclickmenu_a.setItemEnabled(Delete, (counter_a >= 1));
QListViewItemIterator itb(mp_view->BrowserB);
while ( itb.current() )
{
if (itb.current()->isSelected()) counter_b++;
++itb;
}
flag = ((counter_b) && (!mp_session_a->Occupied()) && (!mp_session_b->Occupied()));
m_rclickmenu_b.setItemEnabled(Transfer, flag);
m_rclickmenu_b.setItemEnabled(Queue, flag);
mp_view->TransferButtonB->setEnabled(flag);
/* when at least one item is selected, Delete and Rename are
enabled. */
m_rclickmenu_b.setItemEnabled(Rename, (counter_b >= 1));
m_rclickmenu_b.setItemEnabled(Delete, (counter_b >= 1));
}
void Kasablanca::SLOT_NextTransfer(QListViewItem* item)
{
QListViewItem *next;
next = NextTransfer(item);
if (next) ProcessQueue(static_cast<KbTransferItem*>(next));
else QueueFinished();
}
void Kasablanca::QueueFinished()
{
if (m_onqueuefinishedenabled)
{
KProcess* p = new KProcess();
*p << QStringList::split(" ", m_onqueuefinished);
connect(p, SIGNAL(processExited(KProcess*)), SLOT(SLOT_LocalProcessExited(KProcess*)));
p->start();
}
if (KbConfig::systrayIsEnabled()) KPassivePopup::message("Transfer is finished.", mp_systemtray);
//QToolTip::remove(mp_systemtray);
}
QListViewItem* Kasablanca::NextTransfer(QListViewItem* item)
{
FtpSession *src, *dst;
QListViewItem *parent, *next, *retval;
src = static_cast<KbTransferItem*>(item)->SrcSession();
dst = static_cast<KbTransferItem*>(item)->DstSession();
next = item->nextSibling();
parent = item->parent();
retval = NULL;
if (item->childCount() == 0) // if the item contains no subelements - delete it, if it doesn't - start with the next
{
static_cast<KbTransferItem*>(item)->Finish();
if (mp_view->TaskView->childCount() > 0) delete item;
if (next) retval = next;
else if (parent) retval = NextTransfer(parent);
else
{
src->SLOT_RefreshButton();
dst->SLOT_RefreshButton();
}
}
else retval = item->firstChild();
return retval;
}
void Kasablanca::SLOT_ProcessQueue()
{
KbTransferItem *ti = static_cast<KbTransferItem*>(mp_view->TaskView->firstChild());
if (ti) ProcessQueue(ti);
}
void Kasablanca::ProcessQueue(KbTransferItem* item)
{
FtpSession *srcsession = item->SrcSession();
srcsession->Transfer(item);
}

@ -0,0 +1,26 @@
[Desktop Entry]
Encoding=UTF-8
Name=kasablanca
Name[xx]=xxkasablancaxx
Exec=kasablanca
Icon=kasablanca
Type=Application
Comment=A simple KDE Application
Comment[ca]=Una simple aplicació KDE
Comment[da]=Et simpelt KDE program
Comment[de]=Eine einfache KDE-Anwendung
Comment[el]=Μια απλή εφαρμογή του KDE
Comment[es]=Una aplicación de KDE sencilla
Comment[et]=Lihtne KDE rakendus
Comment[fr]=Une application simple pour KDE.
Comment[hu]=Egyszerű KDE-alkalmazás
Comment[it]=Una semplice applicazione KDE
Comment[nl]=Een eenvoudige KDE-toepassing
Comment[pt]=Uma aplicação KDE simples
Comment[pt_BR]=Um simples Aplicativo do KDE
Comment[ru]=Простое приложение KDE
Comment[sl]=Preprost program za KDE
Comment[sr]=Једноставан KDE програм
Comment[sv]=Ett enkelt KDE-program
Comment[xx]=xxA simple KDE Applicationxx
Comment[zh_CN]=一个简单的KDE应用程序

@ -0,0 +1,130 @@
/***************************************************************************
kasablanca.h - description
-------------------
begin : Die Aug 19 20:54:14 CEST 2003
copyright : (C) 2003 by mkulke
email : sikor_sxe@radicalapproach.de
***************************************************************************/
/***************************************************************************
* *
* 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. *
* *
***************************************************************************/
#ifndef KASABLANCA_H
#define KASABLANCA_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
class KbDir;
class KbFile;
class KToggleAction;
class KSystemTray;
class QWidget;
class QCloseEvent;
class QLabel;
class QPixmap;
class FtpSession;
class KbStatusTip;
#include <kapplication.h>
#include <klistview.h>
#include <kmainwindow.h>
#include <kprocess.h>
#include <qdir.h>
#include <qlistview.h>
#include <qmenubar.h>
#include <qregexp.h>
#include <list>
#include "kbsiteinfo.h"
#include "kbtransferitem.h"
#include "Q_mainwindow.h"
using namespace std;
/** Kasablanca is the base class of the project */
class Kasablanca : public KMainWindow
{
Q_OBJECT
public:
enum RightClickMenu
{
Transfer = 1001,
Queue,
Delete,
Rename,
Mkdir,
Start,
Skip,
Bookmark
};
Kasablanca();
~Kasablanca();
QString m_tempdirname;
QString m_version;
list<KbSiteInfo> m_bookmarks;
KSystemTray* systemTray() const { return mp_systemtray; }
KbStatusTip* statusTip() const { return mp_statustip; }
void InitBookmarks();
public slots:
void SLOT_EditBookmarks();
void SLOT_ImportBookmarks();
void SLOT_ItemRightClickedT(QListViewItem * item, const QPoint & point, int col );
void SLOT_SelectionChanged();
void SLOT_SkipTasks();
void SLOT_ProcessQueue();
void SLOT_QueueItems(KbDirInfo *dir, FtpSession* src, FtpSession* dst, bool startqueue);
void SLOT_NextTransfer(QListViewItem* item);
void SLOT_ClearQueue(FtpSession* session);
void SLOT_LocalProcessExited(KProcess* proc) { delete proc; };
private slots:
void optionsShowToolbar();
void optionsShowStatusbar();
void optionsConfigureKeys();
void optionsConfigureToolbars();
void optionsPreferences();
void newToolbarConfig();
void applyConfig();
private:
void QueueItemsRecurse(KbDirInfo *dir, FtpSession* src, FtpSession* dst, QListViewItem* parent = NULL);
void setupStatusBar();
void setupMenu();
void setupGUI();
void setupActions();
void saveSettings();
void ProcessQueue(KbTransferItem* item);
QListViewItem* NextTransfer(QListViewItem* item);
void QueueFinished();
KasablancaMainWindow *mp_view;
QPopupMenu m_bookmarksmenu_a, m_bookmarksmenu_b;
QRegExp m_skiplist;
QPopupMenu m_rclickmenu_a, m_rclickmenu_b, m_rclickmenu_t;
QLabel *mp_statusline_a, *mp_statusline_b, *mp_encryptionicon_a, *mp_encryptionicon_b;
QPixmap m_iconencrypted, m_iconunencrypted;
KToggleAction *m_toolbarAction;
KToggleAction *m_statusbarAction;
FtpSession *mp_session_a, *mp_session_b;
list<FtpSession*> *mp_sessionlist;
bool m_skiplistenabled, m_onqueuefinishedenabled;
QString m_onqueuefinished;
KSystemTray* mp_systemtray;
KbStatusTip *mp_statustip;
};
#endif

@ -0,0 +1,16 @@
Begin3
Title: kasablanca -- Some description
Version: 0.3
Entered-date:
Description:
Keywords: KDE Qt
Author: Magnus Kulke <mkulke@magnusmachine>
Maintained-by: Magnus Kulke <mkulke@magnusmachine>
Home-page:
Alternate-site:
Primary-site: ftp://ftp.kde.org/pub/kde/unstable/apps/utils
xxxxxx kasablanca-0.3.tar.gz
xxx kasablanca-0.3.lsm
Platform: Linux. Needs KDE
Copying-policy: GPL
End

@ -0,0 +1,13 @@
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
<kpartgui name="kasablanca" version="1">
<MenuBar>
<Menu name="bookmarks menu"><text>Bookmarks</text>
<Action name="edit bookmarks action" />
<Action name="import bookmarks action" />
</Menu>
<Menu name="connect menu"><text>Connect</text>
</Menu>
<Menu name="action menu"><text>Action</text>
</Menu>
</MenuBar>
</kpartgui>

@ -0,0 +1,26 @@
//
// C++ Implementation: kbbookmarkitem
//
// Description:
//
//
// Author: Magnus Kulke <mkulke@magnusmachine>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "kbbookmarkitem.h"
#include "kbsiteinfo.h"
KbBookmarkItem::KbBookmarkItem(QListView *view, QListViewItem *after, KbSiteInfo *site) : QListViewItem(view, after)
{
mp_siteinfo = site;
setText(0, mp_siteinfo->GetName());
}
KbBookmarkItem::~KbBookmarkItem()
{
}

@ -0,0 +1,33 @@
//
// C++ Interface: kbbookmarkitem
//
// Description:
//
//
// Author: Magnus Kulke <mkulke@magnusmachine>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef KBBOOKMARKITEM_H
#define KBBOOKMARKITEM_H
#include <qlistview.h>
class KbSiteInfo;
/**
@author Magnus Kulke
*/
class KbBookmarkItem : public QListViewItem
{
public:
KbBookmarkItem(QListView *view, QListViewItem *after, KbSiteInfo *site);
~KbBookmarkItem();
KbSiteInfo* GetSiteInfo() { return mp_siteinfo; };
private:
KbSiteInfo* mp_siteinfo;
};
#endif

@ -0,0 +1,100 @@
// This file is generated by kconfig_compiler from kbconfig.kcfg.
// All changes you do to this file will be lost.
#include "kbconfig.h"
#include <kstaticdeleter.h>
KbConfig *KbConfig::mSelf = 0;
static KStaticDeleter<KbConfig> staticKbConfigDeleter;
KbConfig *KbConfig::self()
{
if ( !mSelf ) {
staticKbConfigDeleter.setObject( mSelf, new KbConfig() );
mSelf->readConfig();
}
return mSelf;
}
KbConfig::KbConfig( )
: KConfigSkeleton( QString::fromLatin1( "kasablancarc" ) )
{
mSelf = this;
setCurrentGroup( QString::fromLatin1( "general" ) );
KConfigSkeleton::ItemString *itemSkiplist;
itemSkiplist = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "Skiplist" ), mSkiplist );
addItem( itemSkiplist, QString::fromLatin1( "Skiplist" ) );
KConfigSkeleton::ItemString *itemPrioritylist;
itemPrioritylist = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "Prioritylist" ), mPrioritylist );
addItem( itemPrioritylist, QString::fromLatin1( "Prioritylist" ) );
KConfigSkeleton::ItemBool *itemDirCachingIsEnabled;
itemDirCachingIsEnabled = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "DirCachingIsEnabled" ), mDirCachingIsEnabled, false );
addItem( itemDirCachingIsEnabled, QString::fromLatin1( "DirCachingIsEnabled" ) );
KConfigSkeleton::ItemBool *itemDeleteMovesIntoTrashIsEnabled;
itemDeleteMovesIntoTrashIsEnabled = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "DeleteMovesIntoTrashIsEnabled" ), mDeleteMovesIntoTrashIsEnabled, false );
addItem( itemDeleteMovesIntoTrashIsEnabled, QString::fromLatin1( "DeleteMovesIntoTrashIsEnabled" ) );
KConfigSkeleton::ItemBool *itemSkiplistIsEnabled;
itemSkiplistIsEnabled = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "SkiplistIsEnabled" ), mSkiplistIsEnabled, false );
addItem( itemSkiplistIsEnabled, QString::fromLatin1( "SkiplistIsEnabled" ) );
KConfigSkeleton::ItemBool *itemPrioritylistIsEnabled;
itemPrioritylistIsEnabled = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "PrioritylistIsEnabled" ), mPrioritylistIsEnabled, false );
addItem( itemPrioritylistIsEnabled, QString::fromLatin1( "PrioritylistIsEnabled" ) );
KConfigSkeleton::ItemString *itemOnQueueFinished;
itemOnQueueFinished = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "OnQueueFinished" ), mOnQueueFinished );
addItem( itemOnQueueFinished, QString::fromLatin1( "OnQueueFinished" ) );
KConfigSkeleton::ItemBool *itemOnQueueFinishedIsEnabled;
itemOnQueueFinishedIsEnabled = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "OnQueueFinishedIsEnabled" ), mOnQueueFinishedIsEnabled, false );
addItem( itemOnQueueFinishedIsEnabled, QString::fromLatin1( "OnQueueFinishedIsEnabled" ) );
KConfigSkeleton::ItemBool *itemOnFileExistsOverwrite;
itemOnFileExistsOverwrite = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "OnFileExistsOverwrite" ), mOnFileExistsOverwrite, false );
addItem( itemOnFileExistsOverwrite, QString::fromLatin1( "OnFileExistsOverwrite" ) );
KConfigSkeleton::ItemBool *itemOnFileExistsResume;
itemOnFileExistsResume = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "OnFileExistsResume" ), mOnFileExistsResume, true );
addItem( itemOnFileExistsResume, QString::fromLatin1( "OnFileExistsResume" ) );
KConfigSkeleton::ItemBool *itemOnFileExistsSkip;
itemOnFileExistsSkip = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "OnFileExistsSkip" ), mOnFileExistsSkip, false );
addItem( itemOnFileExistsSkip, QString::fromLatin1( "OnFileExistsSkip" ) );
KConfigSkeleton::ItemBool *itemOnFileExistsIsEnabled;
itemOnFileExistsIsEnabled = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "OnFileExistsIsEnabled" ), mOnFileExistsIsEnabled, false );
addItem( itemOnFileExistsIsEnabled, QString::fromLatin1( "OnFileExistsIsEnabled" ) );
setCurrentGroup( QString::fromLatin1( "ui" ) );
KConfigSkeleton::ItemBool *itemSystrayIsEnabled;
itemSystrayIsEnabled = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "SystrayIsEnabled" ), mSystrayIsEnabled, false );
addItem( itemSystrayIsEnabled, QString::fromLatin1( "SystrayIsEnabled" ) );
KConfigSkeleton::ItemBool *itemCommandLineIsEnabled;
itemCommandLineIsEnabled = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "CommandLineIsEnabled" ), mCommandLineIsEnabled, true );
addItem( itemCommandLineIsEnabled, QString::fromLatin1( "CommandLineIsEnabled" ) );
KConfigSkeleton::ItemBool *itemHideHiddenFilesIsEnabled;
itemHideHiddenFilesIsEnabled = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "HideHiddenFilesIsEnabled" ), mHideHiddenFilesIsEnabled, false );
addItem( itemHideHiddenFilesIsEnabled, QString::fromLatin1( "HideHiddenFilesIsEnabled" ) );
KConfigSkeleton::ItemFont *itemLogwindowFont;
itemLogwindowFont = new KConfigSkeleton::ItemFont( currentGroup(), QString::fromLatin1( "LogwindowFont" ), mLogwindowFont, QFont( "DEC Terminal" ) );
addItem( itemLogwindowFont, QString::fromLatin1( "LogwindowFont" ) );
setCurrentGroup( QString::fromLatin1( "colors" ) );
KConfigSkeleton::ItemColor *itemLocalColor;
itemLocalColor = new KConfigSkeleton::ItemColor( currentGroup(), QString::fromLatin1( "LocalColor" ), mLocalColor, QColor( 244,247,66 ) );
addItem( itemLocalColor, QString::fromLatin1( "LocalColor" ) );
KConfigSkeleton::ItemColor *itemSuccessColor;
itemSuccessColor = new KConfigSkeleton::ItemColor( currentGroup(), QString::fromLatin1( "SuccessColor" ), mSuccessColor, QColor( 0,188,53 ) );
addItem( itemSuccessColor, QString::fromLatin1( "SuccessColor" ) );
KConfigSkeleton::ItemColor *itemBackgroundColor;
itemBackgroundColor = new KConfigSkeleton::ItemColor( currentGroup(), QString::fromLatin1( "BackgroundColor" ), mBackgroundColor, QColor( 0,90,128 ) );
addItem( itemBackgroundColor, QString::fromLatin1( "BackgroundColor" ) );
KConfigSkeleton::ItemColor *itemFailureColor;
itemFailureColor = new KConfigSkeleton::ItemColor( currentGroup(), QString::fromLatin1( "FailureColor" ), mFailureColor, QColor( 222,9,48 ) );
addItem( itemFailureColor, QString::fromLatin1( "FailureColor" ) );
}
KbConfig::~KbConfig()
{
if ( mSelf == this )
staticKbConfigDeleter.setObject( mSelf, 0, false );
}

@ -0,0 +1,73 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE kcfg SYSTEM "http://www.kde.org/standards/kcfg/1.0/kcfg.dtd">
<kcfg> <kcfgfile name="kasablancarc"/>
<group name="general">
<entry name="Skiplist" type="String">
<label>A RegExp which describes the items to skip at transfer.</label>
</entry>
<entry name="Prioritylist" type="String">
<label>A RegExp which describes the items to transfer first.</label>
</entry>
<entry name="DirCachingIsEnabled" type="Bool">
<default>false</default>
</entry>
<entry name="DeleteMovesIntoTrashIsEnabled" type="Bool">
<default>false</default>
</entry>
<entry name="SkiplistIsEnabled" type="Bool">
<default>false</default>
</entry>
<entry name="PrioritylistIsEnabled" type="Bool">
<default>false</default>
</entry>
<entry name="OnQueueFinished" type="String"/>
<entry name="OnQueueFinishedIsEnabled" type="Bool">
<default>false</default>
</entry>
<entry name="OnFileExistsOverwrite" type="Bool">
<default>false</default>
</entry>
<entry name="OnFileExistsResume" type="Bool">
<default>true</default>
</entry>
<entry name="OnFileExistsSkip" type="Bool">
<default>false</default>
</entry>
<entry name="OnFileExistsIsEnabled" type="Bool">
<default>false</default>
</entry>
</group>
<group name="ui">
<entry name="SystrayIsEnabled" type="Bool">
<default>false</default>
</entry>
<entry name="CommandLineIsEnabled" type="Bool">
<default>true</default>
</entry>
<entry name="HideHiddenFilesIsEnabled" type="Bool">
<default>false</default>
</entry>
<entry name="LogwindowFont" type="Font">
<label>The font for the logwindow.</label>
<default>QFont( "DEC Terminal" )</default>
</entry>
</group>
<group name="colors">
<entry name="LocalColor" type="Color">
<label>The color value for local messages on the logging window.</label>
<default>244,247,66</default>
</entry>
<entry name="SuccessColor" type="Color">
<label>The color value for successful remote messages on the logging window.</label>
<default>0,188,53</default>
</entry>
<entry name="BackgroundColor" type="Color">
<label>The color value for the background on the logging window.</label>
<default>0,90,128</default>
</entry>
<entry name="FailureColor" type="Color">
<label>The color value for failed remote messages on the logging window.</label>
<default>222,9,48</default>
</entry>
</group>
</kcfg>

@ -0,0 +1,4 @@
File=kbconfig.kcfg
ClassName=KbConfig
Singleton=true
Mutators=true

@ -0,0 +1,60 @@
/***************************************************************************
kbdir.cpp - description
-------------------
begin : Sam Sep 20 2003
copyright : (C) 2003 by mkulke
email : sikor_sxe@radicalapproach.de
***************************************************************************/
/***************************************************************************
* *
* 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. *
* *
***************************************************************************/
// enable > 2gb support (LFS)
#define _LARGEFILE_SOURCE
#define _LARGEFILE64_SOURCE
#include <kglobal.h>
#include <kiconloader.h>
#include "kbfileinfo.h"
#include "kbdir.h"
KbDir::KbDir(KbFileInfo kfi, QListView * parent, QListViewItem * after) : KbItem(kfi, parent, after)
{
setPixmap(0, KGlobal::iconLoader()->loadIcon("folder",KIcon::Small));
if ((kfi.fileName() == ".") || (kfi.fileName() == "..")) delete this;
}
KbDir::KbDir(QListView * parent, QListViewItem * after, QString file, QString path, QString date, off64_t size, unsigned int date_int) : KbItem(parent, after)
{
setText(0,file);
QString s;
s.setNum(size);
setText(1, s);
setText(2, date);
m_path = path;
m_file = file;
m_date = date;
m_size = size;
m_date_int = date_int;
}
KbDir::~KbDir()
{
}
int KbDir::rtti() const
{
return KbItem::dir;
}

@ -0,0 +1,36 @@
/***************************************************************************
kbdir.h - description
-------------------
begin : Sam Sep 20 2003
copyright : (C) 2003 by mkulke
email : sikor_sxe@radicalapproach.de
***************************************************************************/
/***************************************************************************
* *
* 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. *
* *
***************************************************************************/
#ifndef DIRITEM_H
#define DIRITEM_H
#include "kbitem.h"
#include <qlistview.h>
/**
*@author mkulke
*/
class KbDir : public KbItem {
public:
KbDir(KbFileInfo kfi, QListView * parent, QListViewItem * after);
KbDir(QListView * parent, QListViewItem * after, QString file, QString path, QString date, off64_t size, unsigned int date_int);
~KbDir();
int rtti() const;
};
#endif

@ -0,0 +1,53 @@
//
// C++ Implementation: kbdirinfo
//
// Description:
//
//
// Author: Magnus Kulke <mkulke@magnusmachine>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include <qregexp.h>
#include <list>
#include "kbconfig.h"
#include "kbdirinfo.h"
using namespace std;
KbDirInfo::KbDirInfo(KbFileInfo info) : KbFileInfo(info)
{
}
KbDirInfo::KbDirInfo(QString path) : KbFileInfo(path)
{
}
KbDirInfo::~KbDirInfo()
{
}
bool KbDirInfo::PrioritySort(const KbDirInfo *f1, const KbDirInfo *f2)
{
QRegExp m_prioritylist(KbConfig::prioritylist());
if ((m_prioritylist.search(f1->fileName()) >= 0) > (m_prioritylist.search(f2->fileName()) >= 0)) return true;
else return false;
}
KbDirInfo* KbDirInfo::AddDirectory(KbFileInfo info)
{
if ((info.fileName() == ".") || (info.fileName() == "..")) return NULL;
KbDirInfo* dir = new KbDirInfo(info);
m_dirlist.push_back(dir);
return dir;
}
void KbDirInfo::AddFile(KbFileInfo* file)
{
m_filelist.push_back(file);
}

@ -0,0 +1,41 @@
//
// C++ Interface: kbdirinfo
//
// Description:
//
//
// Author: Magnus Kulke <mkulke@magnusmachine>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef KBDIRINFO_H
#define KBDIRINFO_H
#include <list>
#include "kbfileinfo.h"
using namespace std;
/**
@author Magnus Kulke
*/
class KbDirInfo : public KbFileInfo
{
public:
KbDirInfo(QString path);
KbDirInfo(KbFileInfo info);
~KbDirInfo();
KbDirInfo* AddDirectory(KbFileInfo info);
void AddFile(KbFileInfo* info);
static bool PrioritySort(const KbDirInfo *f1, const KbDirInfo *f2);
private:
list<KbFileInfo*> m_filelist;
list<KbDirInfo*> m_dirlist;
public:
list<KbDirInfo*>* Dirlist() { return &m_dirlist; }
list<KbFileInfo*>* Filelist() { return &m_filelist; }
};
#endif

@ -0,0 +1,59 @@
/***************************************************************************
kbfile.cpp - description
-------------------
begin : Die Sep 23 2003
copyright : (C) 2003 by mkulke
email : sikor_sxe@radicalapproach.de
***************************************************************************/
/***************************************************************************
* *
* 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. *
* *
***************************************************************************/
// enable > 2gb support (LFS)
#define _LARGEFILE_SOURCE
#define _LARGEFILE64_SOURCE
#include <kglobal.h>
#include <kiconloader.h>
#include "kbfileinfo.h"
#include "kbfile.h"
KbFile::KbFile(KbFileInfo kfi, QListView * parent, QListViewItem * after) : KbItem(kfi, parent, after)
{
setPixmap(0, KGlobal::iconLoader()->loadIcon("files",KIcon::Small));
}
KbFile::KbFile(QListView * parent, QListViewItem * after, QString file, QString path, QString date, off64_t size, unsigned int date_int) : KbItem(parent, after)
{
setText(0,file);
QString s;
s.setNum(size);
setText(1, s);
setText(2, date);
m_path = path;
m_file = file;
m_date = date;
m_size = size;
m_date_int = date_int;
}
KbFile::~KbFile()
{
}
int KbFile::rtti() const
{
return KbItem::file;
}

@ -0,0 +1,38 @@
/***************************************************************************
kbfile.h - description
-------------------
begin : Die Sep 23 2003
copyright : (C) 2003 by mkulke
email : sikor_sxe@radicalapproach.de
***************************************************************************/
/***************************************************************************
* *
* 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. *
* *
***************************************************************************/
#ifndef FILEITEM_H
#define FILEITEM_H
#include <qlistview.h>
#include "kbitem.h"
class KbFileInfo;
/**
*@author mkulke
*/
class KbFile : public KbItem {
public:
KbFile(KbFileInfo kfi, QListView * parent, QListViewItem * after);
KbFile(QListView * parent, QListViewItem * after, QString file, QString path, QString date, off64_t size, unsigned int date_int);
~KbFile();
int rtti() const;
};
#endif

@ -0,0 +1,85 @@
//
// C++ Implementation: kbfileinfo
//
// Description:
//
//
// Author: Magnus Kulke <mkulke@magnusmachine>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
// enable > 2gb support (LFS)
#define _LARGEFILE_SOURCE
#define _LARGEFILE64_SOURCE
#include <qregexp.h>
#include <qdir.h>
#include "kbconfig.h"
#include "kbitem.h"
#include "kbfileinfo.h"
/*KbFileInfo::KbFileInfo() : QFileInfo()
{
}*/
KbFileInfo::KbFileInfo(QString workingdir) : QFileInfo(QDir(workingdir), ".")
{
}
bool KbFileInfo::PrioritySort(KbFileInfo *f1, KbFileInfo *f2)
//bool KbFileInfo::PrioritySort(const KbFileInfo &f1, const KbFileInfo &f2)
{
QRegExp m_prioritylist(KbConfig::prioritylist());
if ((m_prioritylist.search(f1->fileName()) >= 0) > (m_prioritylist.search(f2->fileName()) >= 0)) return true;
else return false;
};
KbFileInfo::KbFileInfo(QFileInfo qfi) : QFileInfo(qfi)
{
m_date_int =
qfi.lastModified().date().year() * 10000 +
qfi.lastModified().date().month() * 100 +
qfi.lastModified().date().day();
m_date = qfi.lastModified().toString("MMM dd yyyy");
m_size = qfi.size();
}
KbFileInfo::KbFileInfo(const KbFileInfo& kfi) : QFileInfo(kfi)
{
m_date_int = kfi.m_date_int;
m_date = kfi.m_date;
m_size = kfi.m_size;
}
KbFileInfo::KbFileInfo(KbItem* item, QString workingdir) : QFileInfo(QDir(workingdir), item->File())
{
m_date_int = item->DateInt();
m_date = item->Date();
m_size = item->Size();
}
KbFileInfo::KbFileInfo(const QString & d, const QString & fileName, off64_t size, QString date, unsigned int date_int)
: QFileInfo(QDir(d), fileName)
{
m_date_int = date_int;
m_date = date;
m_size = size;
}
KbFileInfo::~KbFileInfo()
{
}
void KbFileInfo::SetDirPath(QString path)
{
setFile(QDir(path), fileName());
}

@ -0,0 +1,46 @@
//
// C++ Interface: kbfileinfo
//
// Description:
//
//
// Author: Magnus Kulke <mkulke@magnusmachine>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef KBFILEINFO_H
#define KBFILEINFO_H
#include <qfileinfo.h>
class KbItem;
/**
@author Magnus Kulke
*/
class KbFileInfo : public QFileInfo
{
public:
//KbFileInfo();
KbFileInfo(QFileInfo qfi);
KbFileInfo(const KbFileInfo& kfi);
KbFileInfo(QString workingdir);
KbFileInfo(KbItem* item, QString workingdir);
KbFileInfo(const QString & d, const QString & fileName, off64_t size, QString date, unsigned int date_int);
~KbFileInfo();
off64_t Size() { return m_size; };
QString Date() { return m_date; };
unsigned int DateInt() { return m_date_int; };
void SetDirPath(QString path);
void SetSize(off64_t size) { m_size = size; };
static bool PrioritySort(KbFileInfo *f1, KbFileInfo *f2);
//static bool PrioritySort(const KbFileInfo &f1, const KbFileInfo &f2);
private:
off64_t m_size;
unsigned int m_date_int;
QString m_date;
};
#endif

@ -0,0 +1,76 @@
//
// C++ Implementation: KbItem
//
// Description:
//
//
// Author: mkulke <sikor_sxe@radicalapproach.de>, (C) 2003
//
// Copyright: See COPYING file that comes with this distribution
//
//
// enable > 2gb support (LFS)
#define _LARGEFILE_SOURCE
#define _LARGEFILE64_SOURCE
#include <qdatetime.h>
#include "kbfileinfo.h"
#include "kbitem.h"
KbItem::KbItem(KbFileInfo kfi, QListView* parent, QListViewItem* after) : QListViewItem(parent, after)
{
m_file = kfi.fileName();
m_path = kfi.dirPath(),
m_date = kfi.Date(),
m_size = kfi.Size(),
m_date_int = kfi.DateInt();
setText(0, m_file);
setText(1, QString::number(m_size));
setText(2, m_date);
}
KbItem::KbItem(QListView* parent, QListViewItem* after) : QListViewItem(parent, after)
{
}
KbItem::~KbItem()
{
}
int KbItem::compare(QListViewItem * i, int col, bool ascending) const
{
if ((this->rtti() == 1001) && (i->rtti() == 1002))
{
if (ascending) return -1;
else return 1;
}
else if ((this->rtti() == 1002) && (i->rtti() == 1001))
{
if (ascending) return 1;
else return -1;
}
if (col == 1)
{
unsigned int x = this->text(1).toInt();
unsigned int y = i->text(1).toInt();
if (x == y) return 0;
if (x < y) return -1;
if (x > y) return 1;
}
if (col == 2)
{
unsigned int x = this->m_date_int;
unsigned int y = static_cast<KbItem*>(i)->m_date_int;
if (x == y) return 0;
if (x < y) return -1;
if (x > y) return 1;
}
return QListViewItem::compare(i, col, ascending);
}

@ -0,0 +1,50 @@
//
// C++ Interface: KbItem
//
// Description:
//
//
// Author: mkulke <sikor_sxe@radicalapproach.de>, (C) 2003
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef KBITEM_H
#define KBITEM_H
#include <qlistview.h>
class KbFileInfo;
/**
@author mkulke
*/
class KbItem : public QListViewItem
{
public:
enum entrytype
{
dir = 1001,
file
};
KbItem(KbFileInfo kfi, QListView* parent, QListViewItem* after);
KbItem(QListView* parent, QListViewItem* after);
int compare (QListViewItem * i, int col, bool ascending) const;
~KbItem();
QString File() { return m_file; };
QString Path() { return m_path; };
QString Date() { return m_date; };
unsigned int DateInt() { return m_date_int; };
off64_t Size() { return m_size; };
protected:
QString m_path;
QString m_date;
off64_t m_size;
unsigned int m_date_int;
QString m_file;
};
#endif

@ -0,0 +1,194 @@
//
// C++ Implementation: kbsiteinfo
//
// Description:
//
//
// Author: Magnus Kulke <mkulke@magnusmachine>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include <kstandarddirs.h>
#include <qdom.h>
#include <qfile.h>
#include <qdir.h>
#include <qtextstream.h>
#include "kbsiteinfo.h"
KbSiteInfo::KbSiteInfo()
{
Clear();
}
KbSiteInfo::~KbSiteInfo()
{
}
void KbSiteInfo::Clear()
{
m_name = "";
m_info = "";
m_user = "";
m_pass = "";
m_defaultdir = "";
m_altfxp = 0;
m_correctpasv = 0;
m_pasv = 1;
m_tls = 0;
}
bool KbSiteInfo::IsLegit()
{
if ((m_name != "") && (m_info != "") && (m_user != "")) return true;
else return false;
}
list<KbSiteInfo> KbSiteInfo::ParseBookmarks()
{
list<KbSiteInfo> bookmarks;
bookmarks.clear();
QDomDocument doc( "KasablancaBookmarks" );
QFile filein(locateLocal("appdata", "bookmarks.xml"));
if( !filein.open( IO_ReadOnly ) ) return bookmarks;
if( !doc.setContent( &filein ) )
{
filein.close();
return bookmarks;
}
filein.close();
QDomElement root = doc.documentElement();
if( root.tagName() != "kasablanca" ) return bookmarks;
QDomNode curNode = root.firstChild();
while( !curNode.isNull() )
{
QDomElement siteElement = curNode.toElement();
if( !siteElement.isNull() )
{
if( siteElement.tagName() == "site" )
{
KbSiteInfo entry;
entry.SetPasv(1);
entry.SetTls(0);
entry.SetAlternativeFxp(0);
entry.SetCorrectPasv(0);
entry.SetDefaultDirectory("");
entry.SetName(siteElement.attribute( "name", "" ));
QDomNode siteNode = siteElement.firstChild();
while( !siteNode.isNull() )
{
QDomElement curElement = siteNode.toElement();
if( !curElement.isNull() )
{
if(curElement.tagName() == "user") entry.SetUser(curElement.text());
if(curElement.tagName() == "pass") entry.SetPass(curElement.text());
if(curElement.tagName() == "info") entry.SetInfo(curElement.text());
if(curElement.tagName() == "defaultdirectory") entry.SetDefaultDirectory(curElement.text());
if(curElement.tagName() == "pasv") entry.SetPasv(curElement.text().toInt());
if(curElement.tagName() == "tls") entry.SetTls(curElement.text().toInt());
if(curElement.tagName() == "alternativefxp") entry.SetAlternativeFxp(curElement.text().toInt());
if(curElement.tagName() == "correctpasv") entry.SetCorrectPasv(curElement.text().toInt());
}
siteNode = siteNode.nextSibling();
}
if (entry.IsLegit()) bookmarks.push_back(entry);
}
}
curNode = curNode.nextSibling();
}
return bookmarks;
}
bool KbSiteInfo::WriteBookmarks(list<KbSiteInfo> bookmarks)
{
QDomDocument doc( "KasablancaBookmarks" );
QDomElement root = doc.createElement( "kasablanca" );
doc.appendChild( root );
list<KbSiteInfo>::iterator end_bookmarks = bookmarks.end();
for (list<KbSiteInfo>::iterator i = bookmarks.begin(); i != end_bookmarks; i++)
{
if ((*i).IsLegit())
{
QDomElement siteElement = doc.createElement("site");
siteElement.setAttribute("name", (*i).GetName());
root.appendChild( siteElement );
QDomText text;
QDomElement curElement;
curElement = doc.createElement( "user" );
siteElement.appendChild( curElement );
text = doc.createTextNode((*i).GetUser());
curElement.appendChild(text);
curElement = doc.createElement( "pass" );
siteElement.appendChild( curElement );
text = doc.createTextNode((*i).GetPass());
curElement.appendChild(text);
curElement = doc.createElement( "info" );
siteElement.appendChild( curElement );
text = doc.createTextNode((*i).GetInfo());
curElement.appendChild(text);
curElement = doc.createElement( "pasv" );
siteElement.appendChild( curElement );
text = doc.createTextNode(QString::number((*i).GetPasv()));
curElement.appendChild(text);
curElement = doc.createElement( "tls" );
siteElement.appendChild( curElement );
text = doc.createTextNode(QString::number((*i).GetTls()));
curElement.appendChild(text);
curElement = doc.createElement( "alternativefxp" );
siteElement.appendChild( curElement );
text = doc.createTextNode(QString::number((*i).GetAlternativeFxp()));
curElement.appendChild(text);
curElement = doc.createElement( "correctpasv" );
siteElement.appendChild( curElement );
text = doc.createTextNode(QString::number((*i).GetCorrectPasv()));
curElement.appendChild(text);
curElement = doc.createElement( "defaultdirectory" );
siteElement.appendChild( curElement );
text = doc.createTextNode((*i).GetDefaultDirectory());
curElement.appendChild(text);
}
}
QFile fileout(locateLocal("appdata", "bookmarks.xml"));
if( !fileout.open( IO_WriteOnly ) ) return false;
QTextStream ts( &fileout );
ts << doc.toString();
fileout.close();
return true;
}

@ -0,0 +1,65 @@
//
// C++ Interface: kbsiteinfo
//
// Description:
//
//
// Author: Magnus Kulke <mkulke@magnusmachine>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef KBSITEINFO_H
#define KBSITEINFO_H
#include <qstring.h>
#include <list>
/**
@author Magnus Kulke
*/
using namespace std;
class KbSiteInfo
{
public:
KbSiteInfo();
~KbSiteInfo();
QString GetInfo() { return m_info; };
QString GetUser() { return m_user; };
QString GetPass() { return m_pass; };
QString GetName() { return m_name; };
QString GetDefaultDirectory() { return m_defaultdir; };
int GetAlternativeFxp() { return m_altfxp; };
int GetCorrectPasv() { return m_correctpasv; };
int GetPasv() { return m_pasv; };
int GetTls() { return m_tls; };
void SetPasv(int pasv) { m_pasv = pasv; };
void SetTls(int tls) { m_tls = tls; };
void SetDefaultDirectory(QString path) { m_defaultdir = path; };
void SetAlternativeFxp(int i) { m_altfxp = i; };
void SetCorrectPasv(int i) { m_correctpasv = i; };
void SetUser(QString user) { m_user = user; };
void SetInfo(QString info) { m_info = info; };
void SetPass(QString pass) { m_pass = pass; };
void SetName(QString name) { m_name = name; };
bool IsLegit();
static list<KbSiteInfo> ParseBookmarks();
static bool WriteBookmarks(const list<KbSiteInfo> bookmarks);
void Clear();
private:
list<KbSiteInfo> goo;
QString m_user;
QString m_info;
QString m_name;
QString m_pass;
QString m_defaultdir;
int m_altfxp;
int m_correctpasv;
int m_pasv;
int m_tls;
};
#endif

@ -0,0 +1,35 @@
//
// C++ Implementation: kbstatustip
//
// Description:
//
//
// Author: Magnus Kulke <mkulke@magnusmachine>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include <qcursor.h>
#include "kbstatustip.h"
KbStatusTip::KbStatusTip(QWidget * widget) : QToolTip(widget)
{
}
void KbStatusTip::maybeTip(const QPoint &)
{
tip(parentWidget()->rect(), "kasablanca");
}
void KbStatusTip::ShowStatus(QString msg)
{
if ((QCursor::pos().x() > parentWidget()->mapToGlobal(parentWidget()->pos()).x())
&& (QCursor::pos().y() > parentWidget()->mapToGlobal(parentWidget()->pos()).y())
&& (QCursor::pos().x() < (parentWidget()->mapToGlobal(parentWidget()->pos()).x() + parentWidget()->width()))
&& (QCursor::pos().y() < (parentWidget()->mapToGlobal(parentWidget()->pos()).y() + parentWidget()->height())))
{
tip(parentWidget()->rect(), msg);
}
}

@ -0,0 +1,28 @@
//
// C++ Interface: kbstatustip
//
// Description:
//
//
// Author: Magnus Kulke <mkulke@magnusmachine>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef KBSTATUSTIP_H
#define KBSTATUSTIP_H
#include <qtooltip.h>
/**
@author Magnus Kulke
*/
class KbStatusTip : public QToolTip
{
public:
KbStatusTip(QWidget * widget);
void maybeTip(const QPoint &pos);
void ShowStatus(QString msg);
};
#endif

@ -0,0 +1,64 @@
//
// C++ Implementation: kbtaskview
//
// Description:
//
//
// Author: Magnus Kulke <mkulke@magnusmachine>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include <klocale.h>
#include <qptrlist.h>
#include <qevent.h>
#include "kbtaskview.h"
#include "kbfileinfo.h"
#include "kbtransferitem.h"
KbTaskView::KbTaskView(QWidget *parent, const char *name)
: KListView(parent, name)
{
addColumn(i18n("Task"));
addColumn(i18n("Progress"));
addColumn(i18n("Speed"));
addColumn(i18n("Percentage"));
addColumn(i18n("Remaining"));
setRootIsDecorated(true);
setSelectionMode(QListView::Extended);
setDragEnabled(true);
setAcceptDrops(true);
//connect(this, SIGNAL(doubleClicked(QListViewItem*, const QPoint&, int)),
// this, SLOT(SLOT_DoubleClicked(QListViewItem*, const QPoint&, int)));
}
KbTaskView::~KbTaskView()
{
}
QListViewItem* KbTaskView::LastChild()
{
QListViewItem* last = NULL;
QListViewItem* it = lastItem();
while (it)
{
last = it;
it = it->parent();
}
return last;
}
void KbTaskView::SLOT_DoubleClicked(QListViewItem* item, const QPoint&, int)
{
KbTransferItem *kti = static_cast<KbTransferItem*>(item);
qWarning("src: %s|%s", kti->SrcFileInfo()->filePath().latin1(), kti->SrcFileInfo()->fileName().latin1());
qWarning("dst: %s|%s", kti->DstFileInfo()->filePath().latin1(), kti->DstFileInfo()->fileName().latin1());
}
#include "kbtaskview.moc"

@ -0,0 +1,33 @@
//
// C++ Interface: kbtaskview
//
// Description:
//
//
// Author: Magnus Kulke <mkulke@magnusmachine>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef KBTASKVIEW_H
#define KBTASKVIEW_H
#include <klistview.h>
/**
@author Magnus Kulke
*/
class KbTaskView : public KListView
{
Q_OBJECT
public:
KbTaskView(QWidget *parent = 0, const char *name = 0);
~KbTaskView();
QListViewItem* LastChild();
public slots:
void SLOT_DoubleClicked(QListViewItem* item, const QPoint& p, int c);
//virtual bool acceptDrag(QDropEvent* event) const;
//virtual QDragObject* dragObject();
};
#endif

@ -0,0 +1,51 @@
/***************************************************************************
* Copyright (C) 2004 by Magnus Kulke *
* mkulke@magnusmachine *
* *
* 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., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include "kbtransferdir.h"
KbTransferDir::KbTransferDir(QListView *taskview, QListViewItem *after, FtpSession *srcsession, FtpSession *dstsession, KbFileInfo *src, KbFileInfo *dst) : KbTransferItem(taskview, after, srcsession, dstsession, src, dst)
{
setPixmap(0, KGlobal::iconLoader()->loadIcon("folder",KIcon::Small));
}
KbTransferDir::KbTransferDir(QListViewItem *root, QListViewItem *after, FtpSession *srcsession, FtpSession *dstsession, KbFileInfo *src, KbFileInfo *dst) : KbTransferItem(root, after, srcsession, dstsession, src, dst)
{
setPixmap(0, KGlobal::iconLoader()->loadIcon("folder",KIcon::Small));
}
KbTransferDir::~KbTransferDir()
{
}
int KbTransferDir::rtti() const
{
return KbTransferItem::dir;
}
void KbTransferDir::Info()
{
qWarning("INFO: transfer dir from %s to %s", mp_srcsession->name(), mp_dstsession->name());
qWarning("INFO: mp_src->fileName() = %s", mp_src->fileName().latin1());
qWarning("INFO: mp_dst->fileName() = %s", mp_dst->fileName().latin1());
qWarning("INFO: mp_src->dirPath() = %s", mp_src->dirPath(true).latin1());
qWarning("INFO: mp_dst->dirPath() = %s", mp_dst->dirPath(true).latin1());
}

@ -0,0 +1,39 @@
/***************************************************************************
* Copyright (C) 2004 by Magnus Kulke *
* mkulke@magnusmachine *
* *
* 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., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef TRANSFERDIR_H
#define TRANSFERDIR_H
#include <kbtransferitem.h>
/**
@author Magnus Kulke
*/
class KbTransferDir : public KbTransferItem
{
public:
KbTransferDir(QListView *taskview, QListViewItem *after, FtpSession *srcsession, FtpSession *dstsession, KbFileInfo *src, KbFileInfo *dst);
KbTransferDir(QListViewItem *root, QListViewItem *after, FtpSession *srcsession, FtpSession *dstsession, KbFileInfo *src, KbFileInfo *dst);
~KbTransferDir();
int rtti() const;
void Info();
};
#endif

@ -0,0 +1,120 @@
/***************************************************************************
* Copyright (C) 2004 by Magnus Kulke *
* mkulke@magnusmachine *
* *
* 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., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
// enable > 2gb support (LFS)
#define _LARGEFILE_SOURCE
#define _LARGEFILE64_SOURCE
#include <qpainter.h>
#include <qcolor.h>
#include "kbstatustip.h"
#include "kbsiteinfo.h"
#include "kbtransferfile.h"
KbTransferFile::KbTransferFile(QListView *taskview, QListViewItem *after, FtpSession *srcsession, FtpSession *dstsession, KbFileInfo *src, KbFileInfo *dst) : KbTransferItem(taskview, after, srcsession, dstsession, src, dst)
{
setPixmap(0, KGlobal::iconLoader()->loadIcon("files",KIcon::Small));
m_time_old = -1;
m_xfered_old = 0;
m_percentage = 0;
}
KbTransferFile::KbTransferFile(QListViewItem *root, QListViewItem *after, FtpSession *srcsession, FtpSession *dstsession, KbFileInfo *src, KbFileInfo *dst) : KbTransferItem(root, after, srcsession, dstsession, src, dst)
{
setPixmap(0, KGlobal::iconLoader()->loadIcon("files",KIcon::Small));
m_time_old = -1;
m_xfered_old = 0;
}
KbTransferFile::~KbTransferFile()
{
}
int KbTransferFile::rtti() const
{
return KbTransferItem::file;
}
void KbTransferFile::Info()
{
qWarning("INFO: transfer file from %s to %s", mp_srcsession->name(), mp_dstsession->name());
qWarning("INFO: mp_src->fileName() = %s", mp_src->fileName().latin1());
qWarning("INFO: mp_dst->fileName() = %s", mp_dst->fileName().latin1());
qWarning("INFO: mp_src->dirPath() = %s", mp_src->dirPath(true).latin1());
qWarning("INFO: mp_dst->dirPath() = %s", mp_dst->dirPath(true).latin1());
}
void KbTransferFile::ShowProgress(KbStatusTip *statustip)
{
int time = m_time.elapsed();
int time_dif = time - m_time_old;
if (time_dif == 0) time_dif = 1;
off64_t xfer_dif = m_xfered - m_xfered_old;
off64_t currentsize = (m_xfered + mp_dst->Size()) >> 10;
off64_t wholesize = mp_src->Size() >> 10;
off64_t rest = wholesize - currentsize;
m_percentage = ((currentsize * 100 ) / (wholesize + 1));
int speed = xfer_dif / time_dif;
off64_t remaining = rest / (speed + 1);
if ((mp_srcsession->Connected()) && (mp_dstsession->Connected()))
{
setText(1, "unknown kb of " + QString::number(wholesize) + "kb");
setText(2, "unknown kb/s");
setText(4, "unknown");
}
else
{
setText(1, QString::number(currentsize) + "kb of " + QString::number(wholesize) + "kb");
setText(2, QString::number(speed) + "kb/s");
setText(4, QString::number(remaining / 3600) + "h" + QString::number(remaining / 60) + "m" + QString::number(remaining % 60) + "s");
}
m_time_old = time;
m_xfered_old = m_xfered;
statustip->ShowStatus(mp_src->fileName()
+ "," + QString::number(m_percentage) + "%," + QString::number(speed) + "kb/s");
//QToolTip::add(systemtray, mp_src->fileName()
//+ "," + QString::number(percentage) + "%," + QString::number(speed) + "kb/s");
}
void KbTransferFile::paintCell( QPainter *painter, const QColorGroup &colorGroup, int column,
int width, int alignment )
{
if ((column == 3)
&& (m_xfered_old != 0)
&& ((!mp_srcsession->Connected()) || (!mp_dstsession->Connected())))
PaintPercentageBar (painter, width);
else QListViewItem::paintCell(painter, colorGroup, column, width, alignment);
}
void KbTransferFile::PaintPercentageBar(QPainter * painter, int width)
{
int len = width * m_percentage / 100;
painter->fillRect(0, 0, width, height(), Qt::lightGray);
painter->fillRect(0, 0, len, height(), Qt::gray);
painter->drawText((width / 2) - 10, height() - 5, QString::number(m_percentage) + "%");
}

@ -0,0 +1,48 @@
/***************************************************************************
* Copyright (C) 2004 by Magnus Kulke *
* mkulke@magnusmachine *
* *
* 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., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef TRANSFERFILE_H
#define TRANSFERFILE_H
#include <kbtransferitem.h>
class KbStatusTip;
/**
@author Magnus Kulke
*/
class KbTransferFile : public KbTransferItem
{
public:
KbTransferFile(QListView *taskview, QListViewItem *after, FtpSession *srcsession, FtpSession *dstsession, KbFileInfo *src, KbFileInfo *dst);
KbTransferFile(QListViewItem *root, QListViewItem *after, FtpSession *srcsession, FtpSession *dstsession, KbFileInfo *src, KbFileInfo *dst);
~KbTransferFile();
int rtti() const;
void Info();
void ShowProgress(KbStatusTip *statustip);
private:
int m_time_old;
off64_t m_xfered_old;
int m_percentage;
virtual void paintCell( QPainter *painter, const QColorGroup &colorGroup, int column,
int width, int alignment );
void PaintPercentageBar(QPainter *painter, int width);
};
#endif

@ -0,0 +1,83 @@
/***************************************************************************
* Copyright (C) 2004 by Magnus Kulke *
* mkulke@magnusmachine *
* *
* 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., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include "kbfileinfo.h"
#include "kbtransferitem.h"
KbTransferItem::KbTransferItem(QListView *taskview, QListViewItem *after, FtpSession *srcsession, FtpSession *dstsession, KbFileInfo *src, KbFileInfo *dst) : QListViewItem(taskview, after)
{
mp_srcsession = srcsession;
mp_dstsession = dstsession;
mp_src = src;
mp_dst = dst;
m_status = clear;
m_transfererror = false;
m_xfered = 0;
setText(0, src->fileName());
}
KbTransferItem::KbTransferItem(QListViewItem *root, QListViewItem *after, FtpSession *srcsession, FtpSession *dstsession, KbFileInfo *src, KbFileInfo *dst) : QListViewItem(root, after)
{
mp_srcsession = srcsession;
mp_dstsession = dstsession;
mp_src = src;
mp_dst = dst;
m_status = clear;
m_transfererror = false;
m_xfered = 0;
setText(0, src->fileName());
}
KbTransferItem::~KbTransferItem()
{
delete mp_src;
delete mp_dst;
}
void KbTransferItem::Info()
{
}
void KbTransferItem::ShowProgress(KbStatusTip *)
{
}
void KbTransferItem::Init()
{
setSelectable(false);
listView()->setOpen(this, true);
setSelected(false);
repaint();
mp_srcsession->Occupy();
mp_dstsession->Occupy();
mp_srcsession->SetCurrentTransfer(this);
mp_dstsession->SetCurrentTransfer(this);
}
void KbTransferItem::Finish()
{
mp_srcsession->SetCurrentTransfer(NULL);
mp_dstsession->SetCurrentTransfer(NULL);
mp_srcsession->Free();
mp_dstsession->Free();
}

@ -0,0 +1,79 @@
/***************************************************************************
* Copyright (C) 2004 by Magnus Kulke *
* mkulke@magnusmachine *
* *
* 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., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef TRANSFERITEM_H
#define TRANSFERITEM_H
#include <kiconloader.h>
#include <kglobal.h>
#include <qlistview.h>
#include <qfileinfo.h>
#include "ftpsession.h"
#include "kbfileinfo.h"
class FtpSession;
class KbStatusTip;
/**
@author Magnus Kulke
*/
class KbTransferItem : public QListViewItem
{
public:
enum type
{
file = 1001,
dir
};
KbTransferItem(QListViewItem *root, QListViewItem *after, FtpSession *srcsession, FtpSession *dstsession, KbFileInfo* src, KbFileInfo* dst);
KbTransferItem(QListView *taskview, QListViewItem *after, FtpSession *srcsession, FtpSession *dstsession, KbFileInfo* src, KbFileInfo* dst);
~KbTransferItem();
virtual void Info();
virtual void ShowProgress(KbStatusTip *statustip);
void Finish();
void IncrementStatus() { m_status = m_status + 1; };
void Init();
void Xfered(off64_t xfered) { m_xfered = xfered; };
void StartTimer() { m_time.start(); };
FtpSession* SrcSession() { return mp_srcsession; };
KbFileInfo* SrcFileInfo() { return mp_src; };
FtpSession* DstSession() { return mp_dstsession; };
KbFileInfo* DstFileInfo() { return mp_dst; };
int Status() { return m_status; };
void Abort() { m_status = done; };
enum status
{
clear = 0,
src_ready,
dst_ready,
done
};
protected:
FtpSession *mp_srcsession, *mp_dstsession;
KbFileInfo *mp_src, *mp_dst;
int m_status;
bool m_transfererror;
off64_t m_xfered;
QTime m_time;
};
#endif

@ -0,0 +1,72 @@
/*
* Copyright (C) 2004 Magnus Kulke <mkulke@magnusmachine>
*/
#include "kasablanca.h"
#include <kapplication.h>
#include <dcopclient.h>
#include <kaboutdata.h>
#include <kcmdlineargs.h>
#include <klocale.h>
static const char description[] =
I18N_NOOP("A KDE Ftp Client");
static const char version[] = "0.4.0.2";
static KCmdLineOptions options[] =
{
// { "+[URL]", I18N_NOOP( "Document to open." ), 0 },
KCmdLineLastOption
};
int main(int argc, char **argv)
{
KLocale::setMainCatalogue("kasablanca");
KAboutData about("kasablanca", I18N_NOOP("kasablanca"), version, description,
KAboutData::License_GPL, "(C) 2004 Magnus Kulke", 0, 0,
"sikor_sxe@radicalapproach.de");
about.addAuthor( "Magnus Kulke", 0, "sikor_sxe@radicalapproach.de" );
about.addAuthor( "Big Biff", 0, "bigbiff@chunkyfilms.org" );
about.addCredit( "Stefan Bogner", 0, "bochi@online.ms" );
about.addCredit( "Christoph Thielecke", 0, "u15119@hs-harz.de" );
about.addCredit( "Richard Stellingwerf", 0, "justremenic@hotmail.com" );
KCmdLineArgs::init(argc, argv, &about);
KCmdLineArgs::addCmdLineOptions(options);
KApplication app;
// register ourselves as a dcop client
app.dcopClient()->registerAs(app.name(), false);
// see if we are starting with session management
if (app.isRestored())
{
RESTORE(Kasablanca);
}
else
{
// no session.. just start up normally
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
if (args->count() == 0)
{
Kasablanca *widget = new Kasablanca;
widget->show();
}
else
{
int i = 0;
for (; i < args->count(); i++)
{
Kasablanca *widget = new Kasablanca;
widget->show();
// TODO: Load the ftp url passed on the command line.
// widget->load(args->url(i));
}
}
args->clear();
}
return app.exec();
}

@ -0,0 +1,3 @@
doc
po
src
Loading…
Cancel
Save