Add dead-ended knetworkmanager 0.8 source

Add copy of same for knetworkmanager 0.9 starting point


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/knetworkmanager8@1259314 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
commit 1e0dd58661

@ -0,0 +1,71 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
cmake_minimum_required( VERSION 2.6 )
##### general package setup #####################
project( knetworkmanager )
set( KNETWORKMANAGER_VERSION "0.8" )
##### include essential cmake modules ###########
include( CheckCXXSourceCompiles )
include( FindPkgConfig )
##### include our cmake modules #################
set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
include( TDEMacros )
##### setup install paths #######################
include( TDESetupPaths )
tde_setup_paths( )
if( NOT DBUS_SYS_DIR )
set( DBUS_SYS_DIR ${SYSCONF_INSTALL_DIR}/dbus-1/system.d )
endif( )
##### optional stuff ############################
# option( WITH_LDAP "Enable LDAP support" OFF )
##### configure checks ##########################
include( ConfigureChecks.cmake )
###### global compiler settings #################
add_definitions(
-DHAVE_CONFIG_H
)
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )
set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
##### source directories ########################
add_subdirectory( knetworkmanager-0.8 )
##### write configure files #####################
configure_file( config.h.cmake config.h @ONLY )

@ -0,0 +1,44 @@
#################################################
#
# (C) 2010 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
# hal
pkg_search_module( HAL hal )
if( NOT HAL_FOUND )
tde_message_fatal( "hal are required, but not found on your system" )
endif( )
# dbus-1
pkg_search_module( DBUS dbus-1 )
if( NOT DBUS_FOUND )
tde_message_fatal( "dbus-1 are required, but not found on your system" )
endif( )
# dbus-1-tqt
pkg_search_module( DBUS_TQT dbus-1-tqt )
if( DBUS_TQT_FOUND )
find_program( DBUSXML2QT3_EXECUTABLE NAMES dbusxml2qt3 )
else()
tde_message_fatal( "dbus-1-tqt are required, but not found on your system" )
endif( )
# libnm-util
pkg_search_module( NM_UTIL libnm-util )
if( NOT NM_UTIL_FOUND )
tde_message_fatal( "libnm-util are required, but not found on your system" )
endif( )
# required stuff
find_package( TQt )
find_package( TDE )

@ -0,0 +1,4 @@
AUTOMAKE_OPTIONS = foreign 1.6.1
include admin/deps.am
include admin/Doxyfile.am

@ -0,0 +1,14 @@
all:
@echo "This Makefile is only for the CVS repository"
@echo "This will be deleted before making the distribution"
@echo ""
@if test ! -d admin; then \
echo "Please recheckout this module!" ;\
echo "for cvs: use checkout once and after that update again" ;\
echo "for cvsup: checkout kde-common from cvsup and" ;\
echo " link kde-common/admin to ./admin" ;\
exit 1 ;\
fi
$(MAKE) -f admin/Makefile.common cvs
.SILENT:

@ -0,0 +1 @@
#define KNETWORKMANAGER_VERSION_STRING "@KNETWORKMANAGER_VERSION@"

@ -0,0 +1,4 @@
dnl Put here things to be done at the very end - telling users
dnl about additional packages to install. Better yet is giving
dnl each project / subdr its own configure.in.bot.

@ -0,0 +1,13 @@
#MIN_CONFIG(3.2)
CXXFLAGS="$CXXFLAGS $KDE_DEFAULT_CXXFLAGS"
AM_INIT_AUTOMAKE(knetworkmanager, 0.8, kb9vqf@pearsoncomputing.net)
if test "$build_arts" = "yes"; then
AC_DEFINE(USE_ARTS, 1, [If we use arts volume])
LIB_ARTS="-lartskde"
AC_SUBST(LIB_ARTS)
fi
KDE_INIT_DOXYGEN([KEG Network API Reference], [Version $VERSION])

@ -0,0 +1,5 @@
Timo Hoenig <thoenig@suse.de>
Will Stephenson <wstephenson@kde.org>
Valentine Sinitsyn <e_val@inbox.ru>
Stefan Bogner <sbogner@suse.de>
Helmut Schaa <hschaa@suse.de>

@ -0,0 +1,17 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
add_subdirectory( pics )
add_subdirectory( src )
# add_subdirectory( vpn-plugins )
# add_subdirectory( po )
install( FILES knetworkmanager.conf DESTINATION ${DBUS_SYS_DIR} )

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

File diff suppressed because it is too large Load Diff

@ -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,7 @@
SUBDIRS = pics src vpn-plugins po
dbusservicedir = $(DBUS_SYS_DIR)
dbusservice_DATA = knetworkmanager.conf
EXTRA_DIST = COPYING configure.in.in $(dbusservice_DATA)

@ -0,0 +1,10 @@
AUTOMAKE_OPTIONS = foreign 1.6.1
include admin/deps.am
include admin/Doxyfile.am
dbusservicedir = $(DBUS_SYS_DIR)
dbusservice_DATA = knetworkmanager.conf
EXTRA_DIST = COPYING configure.in.in admin $(dbusservice_DATA)

@ -0,0 +1,3 @@
22 June 2007 - KNetworkManager 0.2
23 September 2006 - KNetworkManager 0.1
28 March 2006 - KNetworkManager moves to KDE SVN

@ -0,0 +1,25 @@
KNetworkManager is a system tray application for controlling network connections on systems that use the NetworkManager daemon.
Currently the following things work:
* Show all network interfaces known to HAL and therefore to NetworkManager
* Connect to wired and wireless networks
* User interaction for encrypted (WEP, WPA Personal and WPA Enterprise) wireless networks
* User interaction to join hidden wireless networks
* Show signal strength for wireless networks in context menu
* Show tool tip with connection status on tray icon
* Show verbose tool tip with interface and network information on context
menu entries
* Store passwords of encrypted networks
* Store hidden wireless networks (per-user)
* Show connection status in system tray
* VPN support
* Notifications (new networks, new devices, NM status changes)
NetworkManager 0.6.2 is required to build this version of KNetworkManager.
If you encounter bugs, please report them using
* http://bugs.kde.org
Last update: 20-Sep-2006 - Timoe Hoenig <thoenig@suse.de>, <thoenig@nouse.net>

@ -0,0 +1,10 @@
if test -n "$MISSING_DEPS"; then
echo "**************************************************"
echo "*"
echo "* KNetworkManager will not be built due to missing dependencies!"
echo "* Missing: $MISSING_DEPS"
echo "*"
echo "**************************************************"
fi

@ -0,0 +1,147 @@
#MIN_CONFIG(3.2)
CXXFLAGS="$CXXFLAGS $KDE_DEFAULT_CXXFLAGS"
AM_INIT_AUTOMAKE(knetworkmanager, 0.8, kb9vqf@pearsoncomputing.net)
AC_C_BIGENDIAN
AC_CHECK_KDEMAXPATHLEN
KNETWORKMANAGER_VERSION="0.8"
AC_DEFINE_UNQUOTED(KNETWORKMANAGER_VERSION, $KNETWORKMANAGER_VERSION, [KNetworkManager Version])
AC_DEFINE_UNQUOTED(KNETWORKMANAGER_VERSION_STRING, "$KNETWORKMANAGER_VERSION", [KNetworkManager Version String])
# check for dbus, hal, libnm-util and libnl
PKG_CHECK_MODULES(HAL, [hal], [], [
AC_MSG_RESULT([no])
AC_MSG_WARN([You need Hal, knetworkmanager will not be compiled])
DO_NOT_COMPILE="$DO_NOT_COMPILE knetworkmanager"
MISSING_DEPS="$MISSING_DEPS hal"
])
PKG_CHECK_MODULES(LIBNMUTIL, [libnm-util >= 0.7], [], [
AC_MSG_RESULT([no])
AC_MSG_WARN([You need libnm-util >= 0.7, knetworkmanager will not be compiled])
DO_NOT_COMPILE="$DO_NOT_COMPILE knetworkmanager"
MISSING_DEPS="$MISSING_DEPS libnm-util"
])
PKG_CHECK_MODULES(LIBNMGLIB, [libnm_glib >= 0.7], [], [
AC_MSG_RESULT([no])
AC_MSG_WARN([You need libnm-util, knetworkmanager will not be compiled])
DO_NOT_COMPILE="$DO_NOT_COMPILE knetworkmanager"
MISSING_DEPS="$MISSING_DEPS libnm-glib"
])
PKG_CHECK_MODULES(LIBNL, [libnl-1], [], [
AC_MSG_RESULT([no])
AC_MSG_WARN([You need libnl, knetworkmanager will not be compiled])
DO_NOT_COMPILE="$DO_NOT_COMPILE knetworkmanager"
MISSING_DEPS="$MISSING_DEPS libnl-1"
])
PKG_CHECK_MODULES(DBUS_TQT, [dbus-1-tqt >= 0.8.1], [], [
AC_MSG_RESULT([no])
AC_MSG_ERROR([TQT dbus bindings missing])
])
AC_CHECK_PROG(DBUSXML2QT3, [dbusxml2qt3], [dbusxml2qt3], [no])
if test "$DBUSXML2QT3" = no ; then
AC_MSG_WARN([You need dbusxml2qt3, knetworkmanager will not be compiled])
DO_NOT_COMPILE="$DO_NOT_COMPILE knetworkmanager"
MISSING_DEPS="$MISSING_DEPS dbusxml2qt3"
fi
PACKAGE_CFLAGS="$HAL_CFLAGS $LIBNL_CFLAGS $DBUS_TQT_CFLAGS $LIBNMGLIB_CFLAGS"
PACKAGE_LIBS="$HAL_LIBS $LIBNL_LIBS $DBUS_TQT_LIBS"
AC_ARG_WITH(dbus-sys, AC_HELP_STRING([--with-dbus-sys=DIR], [D-BUS system.d directory]))
if ! test -z "$with_dbus_sys" ; then
DBUS_SYS_DIR="$with_dbus_sys"
else
DBUS_SYS_DIR="${sysconfdir}/dbus-1/system.d"
fi
AC_SUBST(DBUS_SYS_DIR)
AC_DEFINE_UNQUOTED(DBUS_SYSTEMD_DIR, "$DBUS_SYS_DIR", [D-BUS system.d directory])
AC_SUBST(PACKAGE_CFLAGS)
AC_SUBST(PACKAGE_LIBS)
AC_SUBST(LIB_DL)
AC_ARG_WITH(distro, AC_HELP_STRING([--with-distro=DISTRO], [Specify the Linux distribution to target: suse, gentoo, fedora]))
if test "x$with_distro" = "x"; then
AC_CHECK_FILE(/etc/SuSE-release,with_distro="suse")
AC_CHECK_FILE(/etc/gentoo-release,with_distro="gentoo")
AC_CHECK_FILE(/etc/redhat-release,with_distro="fedora")
if test "x$with_distro" = "x"; then
with_distro=`lsb_release -is`
fi
fi
with_distro=`echo ${with_distro} | tr '[[:upper:]]' '[[:lower:]]' `
# Compile dialup support
AC_ARG_WITH(dialup, AC_HELP_STRING([--with-dialup], [Build KNetworkManager with Dialup support (default)]))
if test "x$with_dialup" != "xno"; then
if test "x$with_distro" = "x"; then
echo "Linux distribution autodetection failed, you must specify the distribution to target using --with-distro=DISTRO"
else
case $with_distro in
suse)
AC_DEFINE_UNQUOTED(KNETWORKMANAGER_DIALUP_CONFIG,
"kdesu --nonewdcop /sbin/yast2 modem",
[Command to launch dial up configuration tool])
;;
gentoo)
AC_DEFINE_UNQUOTED(KNETWORKMANAGER_DIALUP_CONFIG,
"kdesu --nonewdcop ${KDEDIR}/bin/kppp",
[Command to launch dial up configuration tool])
;;
fedora)
AC_DEFINE_UNQUOTED(KNETWORKMANAGER_DIALUP_CONFIG,
"kdesu --nonewdcop /usr/bin/kppp",
[Command to launch dial up configuration tool])
;;
*)
echo "Your distribution (${with_distro}) is not yet supported (e.g. you will not be able to launch a tool to configure dial-up connections.)"
;;
esac
fi
fi
# openvpn support
AC_ARG_WITH(openvpn, AC_HELP_STRING([--with-openvpn], [Build KNetworkManager with openvpn plugin]))
if test "x$with_openvpn" = "x"; then
AC_CHECK_FILE(/etc/NetworkManager/VPN/nm-openvpn-service.name,with_openvpn="yes" )
fi
AM_CONDITIONAL(WITH_OPENVPN, test x"$with_openvpn" = "xyes")
# vpnc support
AC_ARG_WITH(vpnc, AC_HELP_STRING([--with-vpnc], [Build KNetworkManager with vpnc plugin]))
if test "x$with_vpnc" = "x"; then
AC_CHECK_FILE(/etc/NetworkManager/VPN/nm-vpnc-service.name,with_vpnc="yes" )
fi
AM_CONDITIONAL(WITH_VPNC, test x"$with_vpnc" = "xyes")
# pptp support
AC_ARG_WITH(pptp, AC_HELP_STRING([--with-pptp], [Build KNetworkManager with pptp plugin]))
if test "x$with_pptp" = "x"; then
AC_CHECK_FILE(/etc/NetworkManager/VPN/nm-pptp-service.name,with_pptp="yes" )
fi
AM_CONDITIONAL(WITH_PPTP, test x"$with_pptp" = "xyes")
# strongswan support
AC_ARG_WITH(strongswan, AC_HELP_STRING([--with-strongswan], [Build KNetworkManager with strongswan plugin]))
if test "x$with_strongswan" = "x"; then
AC_CHECK_FILE(/etc/NetworkManager/VPN/nm-strongswan-service.name,with_strongswan="yes" )
fi
AM_CONDITIONAL(WITH_STRONGSWAN, test x"$with_strongswan" = "xyes")
# set include path for knetworkmanager-plugin.h and knetworkmanager-vpnplugin.h when vpn plugins are built together with knetworkmanager
KNETWORKMANAGER_CFLAGS="-I\$(top_srcdir)/knetworkmanager-0.8/src"
AC_SUBST(KNETWORKMANAGER_CFLAGS)

@ -0,0 +1,18 @@
EXTRA_DIST = \
nm-access-point.xml \
nm-active-connection.xml \
nm-device-802-11-wireless.xml \
nm-device-802-3-ethernet.xml \
nm-device-cdma.xml \
nm-device-gsm.xml \
nm-device.xml \
nm-exported-connection.xml \
nm-ip4-config.xml \
nm-manager.xml \
nm-manager-client.xml \
nm-ppp-manager.xml \
nm-settings.xml \
nm-vpn-manager.xml \
nm-vpn-plugin.xml \
nm-vpn-connection.xml

@ -0,0 +1,92 @@
<?xml version="1.0" encoding="UTF-8" ?>
<node name="/" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
<interface name="org.freedesktop.NetworkManager.AccessPoint">
<property name="Flags" type="u" access="read" tp:type="NM_802_11_AP_FLAGS">
<tp:docstring>Flags describing the capabilities of the access point.</tp:docstring>
</property>
<property name="WpaFlags" type="u" access="read" tp:type="NM_802_11_AP_SEC">
<tp:docstring>Flags describing the access point's capabilities according to WPA (Wifi Protected Access).</tp:docstring>
</property>
<property name="RsnFlags" type="u" access="read" tp:type="NM_802_11_AP_SEC">
<tp:docstring>Flags describing the access point's capabilities according to the RSN (Robust Secure Network) protocol.</tp:docstring>
</property>
<property name="Ssid" type="ay" access="read">
<tp:docstring>The Service Set Identifier identifying the access point.</tp:docstring>
</property>
<property name="Frequency" type="u" access="read">
<tp:docstring>The radio channel frequency in use by the access point, in MHz.</tp:docstring>
</property>
<property name="HwAddress" type="s" access="read">
<tp:docstring>The hardware address of the access point.</tp:docstring>
</property>
<property name="Mode" type="u" access="read" tp:type="NM_802_11_MODE">
<tp:docstring>Describes the operating mode of the access point.</tp:docstring>
</property>
<property name="MaxBitrate" type="u" access="read">
<tp:docstring>The maximum bitrate this access point is capable of, in kilobits/second (Kb/s).</tp:docstring>
</property>
<property name="Strength" type="y" access="read">
<tp:docstring>The current signal strength received from this access point.</tp:docstring>
</property>
<signal name="PropertiesChanged">
<arg name="properties" type="a{sv}" tp:type="String_Variant_Map">
<tp:docstring>
A dictionary mapping property names to variant boxed values
</tp:docstring>
</arg>
</signal>
<tp:flags name="NM_802_11_AP_FLAGS" value-prefix="NM_802_11_AP_FLAGS" type="u">
<tp:docstring>
Flags describing the general capabilities of the access point.
</tp:docstring>
<tp:flag suffix="NONE" value="0x0">
<tp:docstring>Null capability - says nothing about the access point.</tp:docstring>
</tp:flag>
<tp:flag suffix="PRIVACY" value="0x1">
<tp:docstring>Access point supports privacy measures.</tp:docstring>
</tp:flag>
</tp:flags>
<tp:flags name="NM_802_11_AP_SEC" value-prefix="NM_802_11_AP_SEC" type="u">
<tp:docstring>
Flags describing the security capabilities of the access point.
</tp:docstring>
<tp:flag suffix="NONE" value="0x0">
<tp:docstring>Null flag.</tp:docstring>
</tp:flag>
<tp:flag suffix="PAIR_WEP40" value="0x1">
<tp:docstring>Access point supports pairwise 40-bit WEP encryption.</tp:docstring>
</tp:flag>
<tp:flag suffix="PAIR_WEP104" value="0x2">
<tp:docstring>Access point supports pairwise 104-bit WEP encryption.</tp:docstring>
</tp:flag>
<tp:flag suffix="PAIR_TKIP" value="0x4">
<tp:docstring>Access point supports pairwise TKIP encryption.</tp:docstring>
</tp:flag>
<tp:flag suffix="PAIR_CCMP" value="0x8">
<tp:docstring>Access point supports pairwise CCMP encryption.</tp:docstring>
</tp:flag>
<tp:flag suffix="GROUP_WEP40" value="0x10">
<tp:docstring>Access point supports a group 40-bit WEP cypher.</tp:docstring>
</tp:flag>
<tp:flag suffix="GROUP_WEP104" value="0x20">
<tp:docstring>Access point supports a group 104-bit WEP cypher.</tp:docstring>
</tp:flag>
<tp:flag suffix="GROUP_TKIP" value="0x40">
<tp:docstring>Access point supports a group TKIP cypher.</tp:docstring>
</tp:flag>
<tp:flag suffix="GROUP_CCMP" value="0x80">
<tp:docstring>Access point supports a group CCMP cypher.</tp:docstring>
</tp:flag>
<tp:flag suffix="KEY_MGMT_PSK" value="0x100">
<tp:docstring>Access point supports PSK key management.</tp:docstring>
</tp:flag>
<tp:flag suffix="KEY_MGMT_802_1X" value="0x200">
<tp:docstring>Access point supports 802.1x key management.</tp:docstring>
</tp:flag>
</tp:flags>
</interface>
</node>

@ -0,0 +1,57 @@
<?xml version="1.0" encoding="UTF-8" ?>
<node name="/" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
<interface name="org.freedesktop.NetworkManager.Connection.Active">
<property name="ServiceName" type="s" access="read">
<tp:docstring>The D-Bus service name providing this connection.</tp:docstring>
</property>
<property name="Connection" type="o" access="read">
<tp:docstring>The path of the connection.</tp:docstring>
</property>
<property name="SpecificObject" type="o" access="read">
<tp:docstring>A specific object associated with the active connection.</tp:docstring>
</property>
<property name="SharedServiceName" type="s" access="read">
<tp:docstring>The D-Bus service name that provides a connection with which this active connection is shared.</tp:docstring>
</property>
<property name="SharedConnection" type="o" access="read">
<tp:docstring>The path of a connection provided by the D-Bus service SharedServiceName which which this connection is shared.</tp:docstring>
</property>
<property name="Devices" type="ao" access="read">
<tp:docstring>Array of object paths representing devices which are part of this active connection.</tp:docstring>
</property>
<property name="State" type="u" access="read" tp:type="NM_ACTIVE_DEVICE_STATE">
<tp:docstring>The state of this active connection.</tp:docstring>
</property>
<property name="Default" type="b" access="read">
<tp:docstring>Whether this active connection is the default connection, i.e. whether it currently owns the default route.</tp:docstring>
</property>
<signal name="PropertiesChanged">
<arg name="properties" type="a{sv}" tp:type="String_Variant_Map">
<tp:docstring>
A dictionary mapping property names to variant boxed values
</tp:docstring>
</arg>
</signal>
<tp:enum name="NM_ACTIVE_CONNECTION_STATE" type="u">
<tp:enumvalue suffix="UNKNOWN" value="0">
<tp:docstring>
The active connection is in an unknown state.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="ACTIVATING" value="1">
<tp:docstring>
The connection is activating.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="ACTIVATED" value="2">
<tp:docstring>
The connection is activated.
</tp:docstring>
</tp:enumvalue>
</tp:enum>
</interface>
</node>

@ -0,0 +1,104 @@
<?xml version="1.0" encoding="UTF-8" ?>
<node name="/" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
<interface name="org.freedesktop.NetworkManager.Device.Wireless">
<method name="GetAccessPoints">
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_device_get_access_points"/>
<arg name="access_points" type="ao" direction="out">
<tp:docstring>
List of access point object paths
</tp:docstring>
</arg>
<tp:docstring>
Get the list of access points visible to this device.
</tp:docstring>
</method>
<property name="HwAddress" type="s" access="read">
<tp:docstring>
The hardware address of the device.
</tp:docstring>
</property>
<property name="Mode" type="u" access="read" tp:type="NM_802_11_MODE">
<tp:docstring>
The operating mode of the wireless device.
</tp:docstring>
</property>
<property name="Bitrate" type="u" access="read">
<tp:docstring>
The bit rate currently used by the wireless device, in kilobits/second (Kb/s).
</tp:docstring>
</property>
<property name="ActiveAccessPoint" type="o" access="read">
<tp:docstring>
Object path of the access point currently used by the wireless device.
</tp:docstring>
</property>
<property name="WirelessCapabilities" type="u" access="read" tp:type="NM_802_11_DEVICE_CAP">
<tp:docstring>
The capabilities of the wireless device.
</tp:docstring>
</property>
<signal name="PropertiesChanged">
<arg name="properties" type="a{sv}" tp:type="String_Variant_Map">
<tp:docstring>
A dictionary containing the FIXME: check changed parameters.
</tp:docstring>
</arg>
<tp:docstring>
Emitted when the wireless device's properties changed.
</tp:docstring>
</signal>
<signal name="AccessPointAdded">
<arg name="access_point" type="o">
<tp:docstring>
The object path of the newly found access point.
</tp:docstring>
</arg>
<tp:docstring>
Emitted when a new access point is found by the device.
</tp:docstring>
</signal>
<signal name="AccessPointRemoved">
<arg name="access_point" type="o">
<tp:docstring>
The object path of the access point that has disappeared.
</tp:docstring>
</arg>
<tp:docstring>
Emitted when an access point disappears from view of the device.
</tp:docstring>
</signal>
<tp:flags name="NM_802_11_DEVICE_CAP" type="u">
<tp:docstring>
Flags describing the capabilities of a wireless device.
</tp:docstring>
<tp:flag suffix="NONE" value="0x0">
<tp:docstring>Null capability - syntactic sugar for no capabilities supported. Do not AND this with other capabilities!</tp:docstring>
</tp:flag>
<tp:flag suffix="CIPHER_WEP40" value="0x1">
<tp:docstring>The device supports the 40-bit WEP cypher.</tp:docstring>
</tp:flag>
<tp:flag suffix="CIPHER_WEP104" value="0x2">
<tp:docstring>The device supports the 104-bit WEP cypher.</tp:docstring>
</tp:flag>
<tp:flag suffix="CIPHER_TKIP" value="0x4">
<tp:docstring>The device supports the TKIP cypher.</tp:docstring>
</tp:flag>
<tp:flag suffix="CIPHER_CCMP" value="0x8">
<tp:docstring>The device supports the CCMP cypher.</tp:docstring>
</tp:flag>
<tp:flag suffix="WPA" value="0x10">
<tp:docstring>The device supports the WPA encryption/authentication protocol.</tp:docstring>
</tp:flag>
<tp:flag suffix="RSN" value="0x20">
<tp:docstring>The device supports the RSN encryption/authentication protocol.</tp:docstring>
</tp:flag>
</tp:flags>
</interface>
</node>

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8" ?>
<node name="/" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
<interface name="org.freedesktop.NetworkManager.Device.Wired">
<property name="HwAddress" type="s" access="read">
<tp:docstring>
Hardware address of the device.
</tp:docstring>
</property>
<property name="Speed" type="u" access="read">
<tp:docstring>
Design speed of the device.
</tp:docstring>
</property>
<property name="Carrier" type="b" access="read">
<tp:docstring>
Indicates whether the physical carrier is found (e.g. whether a cable is plugged in or not).
</tp:docstring>
</property>
<signal name="PropertiesChanged">
<arg name="properties" type="a{sv}" tp:type="String_Variant_Map">
<tp:docstring>
A dictionary mapping property names to variant boxed values
</tp:docstring>
</arg>
</signal>
</interface>
</node>

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8" ?>
<node name="/" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
<interface name="org.freedesktop.NetworkManager.Device.Cdma">
<signal name="PropertiesChanged">
<arg name="properties" type="a{sv}" tp:type="String_Variant_Map">
<tp:docstring>
A dictionary mapping property names to variant boxed values
</tp:docstring>
</arg>
</signal>
</interface>
</node>

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8" ?>
<node name="/" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
<interface name="org.freedesktop.NetworkManager.Device.Gsm">
<signal name="PropertiesChanged">
<arg name="properties" type="a{sv}" tp:type="String_Variant_Map">
<tp:docstring>
A dictionary mapping property names to variant boxed values
</tp:docstring>
</arg>
</signal>
</interface>
</node>

@ -0,0 +1,126 @@
<?xml version="1.0" encoding="UTF-8" ?>
<node name="/" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
<interface name="org.freedesktop.NetworkManager.Device">
<property name="Udi" type="s" access="read">
<tp:docstring>
HAL UDI for the device.
</tp:docstring>
</property>
<property name="Interface" type="s" access="read">
<tp:docstring>
The network interface offered by the device.
</tp:docstring>
</property>
<property name="Driver" type="s" access="read">
<tp:docstring>
The driver handling the device.
</tp:docstring>
</property>
<property name="Capabilities" type="u" access="read" tp:type="NM_DEVICE_CAP">
<tp:docstring>
Flags describing the capabilities of the device.
</tp:docstring>
</property>
<property name="Ip4Address" type="i" access="read">
<tp:docstring>
The IPv4 address bound to the device. FIXME: what about devices with >1 IP address?
</tp:docstring>
</property>
<property name="State" type="u" access="read" tp:type="NM_DEVICE_STATE">
<tp:docstring>
The current state of the device.
</tp:docstring>
</property>
<property name="Ip4Config" type="o" access="read">
<tp:docstring>
Object path of the Ip4Config object describing the configuration of the device. Only valid when the device is in the NM_DEVICE_STATE_ACTIVATED state.
</tp:docstring>
</property>
<property name="Managed" type="b" access="read">
<tp:docstring>
Whether or not this device is managed by NetworkManager.
</tp:docstring>
</property>
<!-- Ugh, but I see no other way of getting the type on the caller
based on dbus object path only -->
<property name="DeviceType" type="u" access="read">
<tp:docstring>
</tp:docstring>
</property>
<signal name="StateChanged">
<arg name="state" type="u" tp:type="NM_DEVICE_STATE">
<tp:docstring>
The new state of the device.
</tp:docstring>
</arg>
</signal>
<tp:enum name="NM_DEVICE_STATE" type="u">
<tp:enumvalue suffix="UNKNOWN" value="0">
<tp:docstring>
The device is in an unknown state.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="DOWN" value="1">
<tp:docstring>
The device is down.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="DISCONNECTED" value="2">
<tp:docstring>
The device is not connected.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="PREPARE" value="3">
<tp:docstring>
The device is preparing to connect.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="CONFIG" value="4">
<tp:docstring>
The device is being configured.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="NEED_AUTH" value="5">
<tp:docstring>
The device is awaiting authorization credentials.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="IP_CONFIG" value="6">
<tp:docstring>
The IP address of the device is being configured.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="ACTIVATED" value="7">
<tp:docstring>
The device is active.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="FAILED" value="8">
<tp:docstring>
The device is in a failure state following an attempt to activate it.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="CANCELLED" value="9">
<tp:docstring>
The previous activation attempt on this device was cancelled.
</tp:docstring>
</tp:enumvalue>
</tp:enum>
<tp:flags name="NM_DEVICE_CAP" value-prefix="NM_DEVICE_CAP" type="u">
<tp:flag suffix="NONE" value="0x0">
<tp:docstring>Null capability.</tp:docstring>
</tp:flag>
<tp:flag suffix="NM_SUPPORTED" value="0x1">
<tp:docstring>The device is supported by NetworkManager.</tp:docstring>
</tp:flag>
<tp:flag suffix="CARRIER_DETECT" value="0x2">
<tp:docstring>The device supports carrier detection.</tp:docstring>
</tp:flag>
</tp:flags>
</interface>
</node>

@ -0,0 +1,108 @@
<?xml version="1.0" encoding="UTF-8" ?>
<node name="/" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
<interface name="org.freedesktop.NetworkManagerSettings.Connection">
<tp:docstring>
Represents a single network connection configuration.
</tp:docstring>
<method name="GetID">
<tp:docstring>
Obtain the ID of this connection.
</tp:docstring>
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_exported_connection_get_id"/>
<arg name="id" type="s" direction="out">
<tp:docstring>
The ID of this connection.
</tp:docstring>
</arg>
</method>
<method name="Update">
<tp:docstring>
Update the connection.
</tp:docstring>
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_exported_connection_update"/>
<arg name="properties" type="a{sa{sv}}" direction="in">
<tp:docstring>
New connection properties.
</tp:docstring>
</arg>
</method>
<method name="Delete">
<tp:docstring>
Delete the connection.
</tp:docstring>
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_exported_connection_delete"/>
</method>
<method name="GetSettings">
<tp:docstring>
Get the settings maps describing this object.
</tp:docstring>
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_exported_connection_get_settings"/>
<arg name="settings" type="a{sa{sv}}" direction="out" tp:type="String_String_Variant_Map_Map">
<tp:docstring>
The nested settings maps describing this object.
</tp:docstring>
</arg>
</method>
<signal name="Updated">
<tp:docstring>
Emitted when some settings changed.
</tp:docstring>
<arg name="settings" type="a{sa{sv}}" tp:type="String_String_Variant_Map_Map">
<tp:docstring>
Contains the changed settings.
</tp:docstring>
</arg>
</signal>
<signal name="Removed">
<tp:docstring>
Emitted when this settings object was removed. FIXME: Is this emitted after it was removed or when it is about to be removed? If after removed, then different semantics to Device removed. if prior to removal, should be called AboutToBeRemoved.
</tp:docstring>
</signal>
</interface>
<interface name="org.freedesktop.NetworkManagerSettings.Connection.Secrets">
<tp:docstring>
Secrets have a separate interface so that they can be locked down.
</tp:docstring>
<method name="GetSecrets">
<tp:docstring>
Get the secrets encapsulated in this object.
</tp:docstring>
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_exported_connection_get_secrets"/>
<annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
<arg name="setting_name" type="s" direction="in">
<tp:docstring>
Name of the setting to return.
</tp:docstring>
</arg>
<arg name="hints" type="as" direction="in">
<tp:docstring>
Array of strings of key names in the Setting for which NM thinks
a secrets may be required.
</tp:docstring>
</arg>
<arg name="request_new" type="b" direction="in">
<tp:docstring>
Indicates whether new secrets should be requested or if the request can be fulfilled from storage.
</tp:docstring>
</arg>
<arg name="secrets" type="a{sa{sv}}" direction="out" tp:type="String_String_Variant_Map_Map">
<tp:docstring>
Nested settings maps containing secrets. Each setting MUST contain at least the 'name' field, containing the name of the setting, and one or more secrets.
</tp:docstring>
</arg>
</method>
</interface>
</node>

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8" ?>
<node name="/" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
<interface name="org.freedesktop.NetworkManager.IP4Config">
<property name="Addresses" type="aau" access="read">
<tp:docstring>Tuples of IPv4 address/netmask/gateway. The gateway is optional, if not given should be 0.</tp:docstring>
</property>
<property name="Hostname" type="s" access="read">
<tp:docstring>The hostname associated with this IPv4 address. FIXME: what about multiple hostnames?</tp:docstring>
</property>
<property name="Nameservers" type="au" access="read">
<tp:docstring>The nameservers in use.</tp:docstring>
</property>
<property name="Domains" type="as" access="read">
<tp:docstring>A list of domains this address belongs to.</tp:docstring>
</property>
<property name="NisDomain" type="s" access="read">
<tp:docstring>The NIS domain this address belongs to.</tp:docstring>
</property>
<property name="NisServers" type="au" access="read">
<tp:docstring>The NIS servers associated with this address.</tp:docstring>
</property>
</interface>
</node>

@ -0,0 +1,63 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
READ ME! READ ME! READ ME! READ ME! READ ME!
This file needs to be kept in sync with nm-manager.xml with the exception of
the legacy methods at the end of nm-manager.xml.
This file is only used to ensure that a few legacy 0.6 D-DBus methods that
NM supports don't leak into libnm-glib, but are only exposed by the NMManager
object. dbus-glib generates the same bound function names for D-Bus the methods
"sleep" and "Sleep", unfortunately.
-->
<node name="/">
<interface name="org.freedesktop.NetworkManager">
<method name="GetDevices">
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_manager_get_devices"/>
<arg name="devices" type="ao" direction="out"/>
</method>
<method name="ActivateConnection">
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_manager_activate_connection"/>
<annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
<arg name="service_name" type="s" direction="in"/>
<arg name="connection" type="o" direction="in"/>
<arg name="device" type="o" direction="in"/>
<arg name="specific_object" type="o" direction="in"/>
<arg name="active_connection" type="o" direction="out"/>
</method>
<method name="DeactivateConnection">
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_manager_deactivate_connection"/>
<arg name="active_connection" type="o" direction="in"/>
</method>
<method name="Sleep">
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_manager_sleep"/>
<arg name="sleep" type="b" direction="in"/>
</method>
<property name="WirelessEnabled" type="b" access="readwrite"/>
<property name="WirelessHardwareEnabled" type="b" access="read"/>
<property name="ActiveConnections" type="ao" access="read"/>
<property name="State" type="u" access="read"/>
<signal name="StateChanged">
<arg name="state" type="u"/>
</signal>
<signal name="PropertiesChanged">
<arg name="properties" type="a{sv}"/>
</signal>
<signal name="DeviceAdded">
<arg name="state" type="o"/>
</signal>
<signal name="DeviceRemoved">
<arg name="state" type="o"/>
</signal>
</interface>
</node>

@ -0,0 +1,227 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
READ ME! READ ME! READ ME! READ ME! READ ME!
This file needs to be kept in sync with nm-manager-client.xml with the exception of
the legacy methods at the end of this file.
-->
<node name="/" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
<interface name="org.freedesktop.NetworkManager">
<method name="GetDevices">
<tp:docstring>
Get the list of network devices.
</tp:docstring>
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_manager_get_devices"/>
<arg name="devices" type="ao" direction="out">
<tp:docstring>
List of object paths of network devices known to the system.
</tp:docstring>
</arg>
</method>
<method name="ActivateConnection">
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_manager_activate_connection"/>
<annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
<tp:docstring>
Activate a connection using the supplied device.
</tp:docstring>
<arg name="service_name" type="s" direction="in">
<tp:docstring>
The D-Bus service name of the settings service that provides this connection.
</tp:docstring>
</arg>
<arg name="connection" type="o" direction="in">
<tp:docstring>
The connection to activate the devices with.
</tp:docstring>
</arg>
<arg name="device" type="o" direction="in">
<tp:docstring>
The device to be activated.
</tp:docstring>
</arg>
<arg name="specific_object" type="o" direction="in">
<tp:docstring>
The path of a device-type-specific object this activation should use, for example a WiFi access point.
</tp:docstring>
</arg>
<arg name="active_connection" type="o" direction="out">
<tp:docstring>
The path of the active connection object representing this active connection.
</tp:docstring>
</arg>
<tp:possible-errors>
<tp:error name="org.freedesktop.NetworkManager.Error.UnknownConnection"/>
<tp:error name="org.freedesktop.NetworkManager.Error.UnknownDevice"/>
<tp:error name="org.freedesktop.NetworkManager.Error.InvalidService"/>
<tp:error name="org.freedesktop.NetworkManager.Error.ConnectionActivating">
<tp:docstring>Another connection is already activating or the same connection is already active. FIXME: check if the error name is correct. FIXME: split into 2 errors?</tp:docstring>
</tp:error>
<tp:error name="org.freedesktop.NetworkManager.Error.ConnectionInvalid">
<tp:docstring>The connection is invalid for this device.</tp:docstring>
</tp:error>
</tp:possible-errors>
</method>
<method name="DeactivateConnection">
<tp:docstring>
Deactivate an active connection.
</tp:docstring>
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_manager_deactivate_connection"/>
<arg name="active_connection" type="o" direction="in">
<tp:docstring>
The currently active connection to deactivate.
</tp:docstring>
</arg>
</method>
<method name="Sleep">
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_manager_sleep"/>
<tp:docstring>
Control the NetworkManager daemon's sleep state. When asleep, all interfaces that it manages are deactivated. When awake, devices are available to be activated.
</tp:docstring>
<arg name="sleep" type="b" direction="in">
<tp:docstring>
Indicates whether the NetworkManager daemon should sleep or wake.
</tp:docstring>
</arg>
</method>
<property name="WirelessEnabled" type="b" access="readwrite">
<tp:docstring>
Indicates if wireless is currently enabled or not.
</tp:docstring>
</property>
<property name="WirelessHardwareEnabled" type="b" access="read">
<tp:docstring>
Indicates if the wireless hardware is currently enabled, i.e. the state of the RF kill switch.
</tp:docstring>
</property>
<property name="ActiveConnections" type="ao" access="read">
<tp:docstring>
List of active connection object paths.
</tp:docstring>
</property>
<property name="State" type="u" access="read" tp:type="NM_STATE">
<tp:docstring>
The overall state of the NetworkManager daemon.
</tp:docstring>
</property>
<signal name="StateChanged">
<tp:docstring>
NetworkManager's state changed.
</tp:docstring>
<arg name="state" type="u" tp:type="NM_STATE">
<tp:docstring>
The new state of NetworkManager.
</tp:docstring>
</arg>
</signal>
<signal name="PropertiesChanged">
<tp:docstring>
NetworkManager's properties changed.
</tp:docstring>
<arg name="properties" type="a{sv}" tp:type="String_Variant_Map">
<tp:docstring>
The changed properties.
</tp:docstring>
</arg>
</signal>
<signal name="DeviceAdded">
<tp:docstring>
A device was added to the system
</tp:docstring>
<arg name="device_path" type="o">
<tp:docstring>
The object path of the newly added device.
</tp:docstring>
</arg>
</signal>
<signal name="DeviceRemoved">
<tp:docstring>
A device was removed from the system, and is no longer available.
</tp:docstring>
<arg name="device_path" type="o">
<tp:docstring>
The object path of the device that was just removed.
</tp:docstring>
</arg>
</signal>
<tp:enum name="NM_STATE" type="u">
<tp:docstring>
Describes the overall state of the daemon.
</tp:docstring>
<tp:enumvalue suffix="UNKNOWN" value="0">
<tp:docstring>
The NetworkManager daemon is in an unknown state.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="ASLEEP" value="1">
<tp:docstring>
The NetworkManager daemon is asleep and all interfaces managed by it are inactive.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="CONNECTING" value="2">
<tp:docstring>
The NetworkManager daemon is connecting a device. FIXME: What does this mean when one device is active and another is connecting?
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="CONNECTED" value="3">
<tp:docstring>
The NetworkManager daemon is connected.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="DISCONNECTED" value="4">
<tp:docstring>
The NetworkManager daemon is disconnected.
</tp:docstring>
</tp:enumvalue>
</tp:enum>
<!-- Legacy methods to maintain backwards compatibility for 0.6 branch. -->
<signal name="StateChange">
<tp:docstring>
DEPRECATED. NetworkManager's state changed. Use the 'StateChanged' signal instead.
</tp:docstring>
<arg name="state" type="u" tp:type="NM_STATE">
<tp:docstring>
The new state of NetworkManager.
</tp:docstring>
</arg>
</signal>
<method name="sleep">
<tp:docstring>
DEPRECATED. Control the NetworkManager daemon's sleep state. When asleep, all interfaces that it manages are deactivated.
</tp:docstring>
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_manager_legacy_sleep"/>
</method>
<method name="wake">
<tp:docstring>
DEPRECATED. Control the NetworkManager daemon's sleep state. When awake, all known interfaces are available to be activated.
</tp:docstring>
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_manager_legacy_wake"/>
</method>
<method name="state">
<tp:docstring>
DEPRECATED. The overall state of the NetworkManager daemon.
</tp:docstring>
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_manager_legacy_state"/>
<arg name="state" type="u" direction="out" tp:type="NM_STATE"/>
</method>
</interface>
</node>

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8" ?>
<node name="/">
<interface name="org.freedesktop.NetworkManager.PPP">
<method name="NeedSecrets">
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_ppp_manager_need_secrets"/>
<annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
<arg name="username" type="s" direction="out"/>
<arg name="password" type="s" direction="out"/>
</method>
<method name="SetIp4Config">
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_ppp_manager_set_ip4_config"/>
<arg name="config" type="a{sv}" direction="in"/>
</method>
<method name="SetState">
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_ppp_manager_set_state"/>
<arg name="state" type="u" direction="in"/>
</method>
</interface>
</node>

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8" ?>
<node name="/" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
<interface name="org.freedesktop.NetworkManagerSettings">
<tp:docstring>
The NetworkManagerSettings interface is provided by the service which provides connections to NetworkManager.
</tp:docstring>
<method name="ListConnections">
<tp:docstring>
List the connections stored by this Settings object.
</tp:docstring>
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_settings_list_connections"/>
<arg name="connections" type="ao" direction="out">
<tp:docstring>
List of connections.
</tp:docstring>
</arg>
</method>
<signal name="NewConnection">
<tp:docstring>
Emitted when a new connection has been configured.
</tp:docstring>
<arg name="connection" type="o">
<tp:docstring>
Object path of the new connection.
</tp:docstring>
</arg>
</signal>
</interface>
</node>

@ -0,0 +1,136 @@
<?xml version="1.0" encoding="UTF-8" ?>
<node name="/" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
<interface name="org.freedesktop.NetworkManager.VPN.Connection">
<tp:docstring>
Represents an active connection to a Virtual Private Network.
</tp:docstring>
<signal name="PropertiesChanged">
<arg name="properties" type="a{sv}" tp:type="String_Variant_Map">
<tp:docstring>
A dictionary mapping property names to variant boxed values
</tp:docstring>
</arg>
</signal>
<property name="VpnState" type="u" access="read" tp:type="NM_VPN_CONNECTION_STATE">
<tp:docstring>The VPN-specific state of the connection.</tp:docstring>
</property>
<property name="Banner" type="s" access="read">
<tp:docstring>The banner string of the VPN connection.</tp:docstring>
</property>
<signal name="VpnStateChanged">
<tp:docstring>
Emitted when the state of the VPN connection has changed.
</tp:docstring>
<arg name="state" type="u" tp:type="NM_VPN_CONNECTION_STATE">
<tp:docstring>
The new state of the VPN connection.
</tp:docstring>
</arg>
<arg name="reason" type="u" tp:type="NM_VPN_CONNECTION_STATE_REASON">
<tp:docstring>
Reason code describing the change to the new state.
</tp:docstring>
</arg>
</signal>
<tp:enum name="NM_VPN_CONNECTION_STATE" type="u">
<tp:enumvalue suffix="UNKNOWN" value="0">
<tp:docstring>
The state of the VPN connection is unknown.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="PREPARE" value="1">
<tp:docstring>
The VPN connection is preparing to connect.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="NEED_AUTH" value="2">
<tp:docstring>
The VPN connection needs authorization credentials.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="CONNECT" value="3">
<tp:docstring>
The VPN connection is being established. FIXME: Should be CONNECTING or CONNECTED.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="IP_CONFIG_GET" value="4">
<tp:docstring>
The VPN connection is getting an IP address. FIXME: Should be an -ING
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="ACTIVATED" value="5">
<tp:docstring>
The VPN connection is active.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="FAILED" value="6">
<tp:docstring>
The VPN connection failed.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="DISCONNECTED" value="7">
<tp:docstring>
The VPN connection is disconnected.
</tp:docstring>
</tp:enumvalue>
</tp:enum>
<tp:enum name="NM_VPN_CONNECTION_STATE_REASON" type="u">
<tp:enumvalue suffix="UNKNOWN" value="0">
<tp:docstring>
The reason for the VPN connection state change is unknown.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="NONE" value="1">
<tp:docstring>
No reason was given for the VPN connection state change.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="USER_DISCONNECTED" value="2">
<tp:docstring>
The VPN connection changed state because the user disconnected it.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="DEVICE_DISCONNECTED" value="3">
<tp:docstring>
The VPN connection changed state because the device it was using was disconnected.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="SERVICE_STOPPED" value="4">
<tp:docstring>
The service providing the VPN connection was stopped.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="IP_CONFIG_INVALID" value="5">
<tp:docstring>
The IP config of the VPN connection was invalid.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="CONNECT_TIMEOUT" value="6">
<tp:docstring>
The connection attempt to the VPN service timed out.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="SERVICE_START_TIMEOUT" value="7">
<tp:docstring>
A timeout occurred while starting the service providing the VPN connection.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="SERVICE_START_FAILED" value="8">
<tp:docstring>
Starting the service starting the service providing the VPN connection failed.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="NO_SECRETS" value="9">
<tp:docstring>
Necessary secrets for the VPN connection were not provided.
</tp:docstring>
</tp:enumvalue>
</tp:enum>
</interface>
</node>

@ -0,0 +1,163 @@
<?xml version="1.0" encoding="UTF-8" ?>
<node name="/" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
<interface name="org.freedesktop.NetworkManager.Connection.Active">
<property name="ServiceName" type="s" access="read">
<tp:docstring>The D-Bus service name providing this connection.</tp:docstring>
</property>
<property name="Connection" type="o" access="read">
<tp:docstring>The path of the connection.</tp:docstring>
</property>
<property name="SpecificObject" type="o" access="read">
<tp:docstring>A specific object associated with the active connection.</tp:docstring>
</property>
<property name="SharedServiceName" type="s" access="read">
<tp:docstring>The D-Bus service name that provides a connection with which this active connection is shared.</tp:docstring>
</property>
<property name="SharedConnection" type="o" access="read">
<tp:docstring>The path of a connection provided by the D-Bus service SharedServiceName which which this connection is shared.</tp:docstring>
</property>
<property name="Devices" type="ao" access="read">
<tp:docstring>Array of object paths representing devices which are part of this active connection.</tp:docstring>
</property>
<property name="State" type="u" access="read" tp:type="NM_ACTIVE_DEVICE_STATE">
<tp:docstring>The state of this active connection.</tp:docstring>
</property>
<property name="Default" type="b" access="read">
<tp:docstring>Whether this active connection is the default connection, i.e. whether it currently owns the default route.</tp:docstring>
</property>
</interface>
<interface name="org.freedesktop.NetworkManager.VPN.Connection">
<tp:docstring>
Represents an active connection to a Virtual Private Network.
</tp:docstring>
<signal name="PropertiesChanged">
<arg name="properties" type="a{sv}" tp:type="String_Variant_Map">
<tp:docstring>
A dictionary mapping property names to variant boxed values
</tp:docstring>
</arg>
</signal>
<property name="VpnState" type="u" access="read" tp:type="NM_VPN_CONNECTION_STATE">
<tp:docstring>The VPN-specific state of the connection.</tp:docstring>
</property>
<property name="Banner" type="s" access="read">
<tp:docstring>The banner string of the VPN connection.</tp:docstring>
</property>
<signal name="VpnStateChanged">
<tp:docstring>
Emitted when the state of the VPN connection has changed.
</tp:docstring>
<arg name="state" type="u" tp:type="NM_VPN_CONNECTION_STATE">
<tp:docstring>
The new state of the VPN connection.
</tp:docstring>
</arg>
<arg name="reason" type="u" tp:type="NM_VPN_CONNECTION_STATE_REASON">
<tp:docstring>
Reason code describing the change to the new state.
</tp:docstring>
</arg>
</signal>
<tp:enum name="NM_VPN_CONNECTION_STATE" type="u">
<tp:enumvalue suffix="UNKNOWN" value="0">
<tp:docstring>
The state of the VPN connection is unknown.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="PREPARE" value="1">
<tp:docstring>
The VPN connection is preparing to connect.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="NEED_AUTH" value="2">
<tp:docstring>
The VPN connection needs authorization credentials.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="CONNECT" value="3">
<tp:docstring>
The VPN connection is being established. FIXME: Should be CONNECTING or CONNECTED.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="IP_CONFIG_GET" value="4">
<tp:docstring>
The VPN connection is getting an IP address. FIXME: Should be an -ING
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="ACTIVATED" value="5">
<tp:docstring>
The VPN connection is active.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="FAILED" value="6">
<tp:docstring>
The VPN connection failed.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="DISCONNECTED" value="7">
<tp:docstring>
The VPN connection is disconnected.
</tp:docstring>
</tp:enumvalue>
</tp:enum>
<tp:enum name="NM_VPN_CONNECTION_STATE_REASON" type="u">
<tp:enumvalue suffix="UNKNOWN" value="0">
<tp:docstring>
The reason for the VPN connection state change is unknown.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="NONE" value="1">
<tp:docstring>
No reason was given for the VPN connection state change.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="USER_DISCONNECTED" value="2">
<tp:docstring>
The VPN connection changed state because the user disconnected it.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="DEVICE_DISCONNECTED" value="3">
<tp:docstring>
The VPN connection changed state because the device it was using was disconnected.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="SERVICE_STOPPED" value="4">
<tp:docstring>
The service providing the VPN connection was stopped.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="IP_CONFIG_INVALID" value="5">
<tp:docstring>
The IP config of the VPN connection was invalid.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="CONNECT_TIMEOUT" value="6">
<tp:docstring>
The connection attempt to the VPN service timed out.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="SERVICE_START_TIMEOUT" value="7">
<tp:docstring>
A timeout occurred while starting the service providing the VPN connection.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="SERVICE_START_FAILED" value="8">
<tp:docstring>
Starting the service starting the service providing the VPN connection failed.
</tp:docstring>
</tp:enumvalue>
<tp:enumvalue suffix="NO_SECRETS" value="9">
<tp:docstring>
Necessary secrets for the VPN connection were not provided.
</tp:docstring>
</tp:enumvalue>
</tp:enum>
</interface>
</node>

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8" ?>
<node name="/" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
<interface name="org.freedesktop.NetworkManager.VPN.Manager">
<method name="Connect">
<tp:docstring>
Establish a VPN connection.
</tp:docstring>
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_vpn_manager_connect"/>
<arg name="connection_type" type="s" direction="in">
<tp:docstring>
String describing the connection type.
</tp:docstring>
</arg>
<arg name="connection" type="o" direction="in">
<tp:docstring>
Object path of the network connection to establish the VPN connection on.
</tp:docstring>
</arg>
<arg name="device" type="o" direction="in">
<tp:docstring>
Object path of the device to establish the VPN connection on.
</tp:docstring>
</arg>
<arg name="vpn_connection" type="o" direction="out">
<tp:docstring>
Object path of the newly created VPN connection.
</tp:docstring>
</arg>
</method>
<method name="ListConnections">
<tp:docstring>
Get the list of active VPN connections.
</tp:docstring>
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_vpn_manager_get_connections"/>
<arg name="connections" type="ao" direction="out">
<tp:docstring>
List of object paths of active VPN connections.
</tp:docstring>
</arg>
</method>
</interface>
</node>

@ -0,0 +1,132 @@
<?xml version="1.0" encoding="UTF-8" ?>
<node name="/" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
<interface name="org.freedesktop.NetworkManager.VPN.Plugin">
<tp:docstring>
This interface is provided by plugins providing VPN services to the NetworkManager daemon.
</tp:docstring>
<method name="Connect">
<tp:docstring>
Tells the plugin to connect.
</tp:docstring>
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_vpn_plugin_connect"/>
<arg name="connection" type="a{sa{sv}}" direction="in" tp:type="String_String_Variant_Map_Map">
<tp:docstring>
Describes the connection to be established.
</tp:docstring>
</arg>
<tp:possible-errors>
<tp:error name="org.freedesktop.NetworkManager.VPN.Error.StartingInProgress"/>
<tp:error name="org.freedesktop.NetworkManager.VPN.Error.AlreadyStarted"/>
<tp:error name="org.freedesktop.NetworkManager.VPN.Error.StoppingInProgress"/>
<tp:error name="org.freedesktop.NetworkManager.VPN.Error.BadArguments"/>
<tp:error name="org.freedesktop.NetworkManager.VPN.Error.LaunchFailed"/>
</tp:possible-errors>
</method>
<method name="NeedSecrets">
<tp:docstring>
Asks the plugin whether the provided connection will require secrets to connect successfully.
</tp:docstring>
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_vpn_plugin_need_secrets"/>
<arg name="settings" type="a{sa{sv}}" direction="in" tp:type="String_String_Variant_Map_Map">
<tp:docstring>
Describes the connection that may need secrets.
</tp:docstring>
</arg>
<arg name="setting_name" type="s" direction="out">
<tp:docstring>
The setting name within the provided connection that requires secrets, if any.
</tp:docstring>
</arg>
<tp:possible-errors>
<tp:error name="org.freedesktop.NetworkManager.VPN.Error.ConnectionInvalid"/>
</tp:possible-errors>
</method>
<method name="Disconnect">
<tp:docstring>
Disconnect the plugin.
</tp:docstring>
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_vpn_plugin_disconnect"/>
<tp:possible-errors>
<tp:error name="org.freedesktop.NetworkManager.VPN.Error.StoppingInProgress"/>
<tp:error name="org.freedesktop.NetworkManager.VPN.Error.AlreadyStopped"/>
</tp:possible-errors>
</method>
<method name="SetIp4Config">
<tp:docstring>
Set IPv4 details on the connection.
</tp:docstring>
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_vpn_plugin_set_ip4_config"/>
<arg name="config" type="a{sv}" direction="in" tp:type="String_Variant_Map">
<tp:docstring>
Ip4Config details for the conneciton.
</tp:docstring>
</arg>
</method>
<method name="SetFailure">
<tp:docstring>
Indicate a failure to the plugin.
</tp:docstring>
<annotation name="org.freedesktop.DBus.GLib.CSymbol" value="impl_vpn_plugin_set_failure"/>
<arg name="reason" type="s" direction="in">
<tp:docstring>
The reason for the failure.
</tp:docstring>
</arg>
</method>
<property name="State" type="u" access="read" tp:type="NM_VPN_CONNECTION_STATE">
<tp:docstring>
The state of the plugin.
</tp:docstring>
</property>
<signal name="StateChanged">
<tp:docstring>
Emitted when the plugin state changes.
</tp:docstring>
<arg name="state" type="u" tp:type="NM_VPN_CONNECTION_STATE">
<tp:docstring>
The new state of the plugin.
</tp:docstring>
</arg>
</signal>
<signal name="Ip4Config">
<tp:docstring>
The plugin obtained an IPv4 configuration.
</tp:docstring>
<arg name="ip4config" type="a{sv}" tp:type="String_Variant_Map">
<tp:docstring>
The IPv4 configuration.
</tp:docstring>
</arg>
</signal>
<signal name="LoginBanner">
<tp:docstring>
Emitted when the plugin receives a login banner from the VPN service.
</tp:docstring>
<arg name="banner" type="s">
<tp:docstring>
The login banner string.
</tp:docstring>
</arg>
</signal>
<signal name="Failure">
<tp:docstring>
Emitted when a failure in the VPN plugin occurs.
</tp:docstring>
<arg name="reason" type="u" tp:type="NM_VPN_CONNECTION_STATE_REASON">
<tp:docstring>
Reason code for the failure.
</tp:docstring>
</arg>
</signal>
</interface>
</node>

@ -0,0 +1,63 @@
<!DOCTYPE busconfig PUBLIC
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<policy user="root">
<allow own="org.freedesktop.NetworkManagerUserSettings"/>
<allow send_destination="org.freedesktop.NetworkManagerUserSettings"
send_interface="org.freedesktop.NetworkManagerSettings"/>
<allow send_destination="org.freedesktop.NetworkManagerUserSettings"
send_interface="org.freedesktop.NetworkManagerSettings.Connection"/>
<!-- Only root can get secrets -->
<allow send_destination="org.freedesktop.NetworkManagerUserSettings"
send_interface="org.freedesktop.NetworkManagerSettings.Connection.Secrets"/>
</policy>
<policy at_console="true">
<allow own="org.freedesktop.NetworkManagerUserSettings"/>
<allow send_destination="org.freedesktop.NetworkManagerUserSettings"
send_interface="org.freedesktop.NetworkManagerSettings"/>
<allow send_destination="org.freedesktop.NetworkManagerUserSettings"
send_interface="org.freedesktop.NetworkManagerSettings.Connection"/>
<!-- Only root can get secrets -->
<deny send_destination="org.freedesktop.NetworkManagerUserSettings"
send_interface="org.freedesktop.NetworkManagerSettings.Connection.Secrets"/>
</policy>
<policy group="netdev">
<allow own="org.freedesktop.NetworkManagerUserSettings"/>
<allow send_destination="org.freedesktop.NetworkManagerUserSettings"
send_interface="org.freedesktop.NetworkManagerSettings"/>
<allow send_destination="org.freedesktop.NetworkManagerUserSettings"
send_interface="org.freedesktop.NetworkManagerSettings.Connection"/>
<!-- Only root can get secrets -->
<deny send_destination="org.freedesktop.NetworkManagerUserSettings"
send_interface="org.freedesktop.NetworkManagerSettings.Connection.Secrets"/>
</policy>
<policy group="users">
<allow own="org.freedesktop.NetworkManagerInfo"/>
<allow send_destination="org.freedesktop.NetworkManagerInfo"/>
<allow send_interface="org.freedesktop.NetworkManagerInfo"/>
<allow own="org.freedesktop.NetworkManagerUserSettings"/>
<allow send_destination="org.freedesktop.NetworkManagerSettings"/>
<allow send_interface="org.freedesktop.NetworkManagerSettings"/>
</policy>
<policy context="default">
<deny own="org.freedesktop.NetworkManagerUserSettings"/>
<deny send_destination="org.freedesktop.NetworkManagerUserSettings"
send_interface="org.freedesktop.NetworkManagerSettings"/>
</policy>
</busconfig>

@ -0,0 +1,13 @@
#################################################
#
# (C) 2010 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
tde_install_icons( DESTINATION ${DATA_INSTALL_DIR}/knetworkmanager/icons )
tde_install_icons( knetworkmanager knetworkmanager_disabled )

@ -0,0 +1,5 @@
knmicondir = $(kde_datadir)/knetworkmanager/icons
knmicon_ICON = AUTO
KDE_ICON = knetworkmanager knetworkmanager_disabled

Binary file not shown.

After

Width:  |  Height:  |  Size: 954 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 650 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 629 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 817 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 927 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 764 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 779 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 799 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 821 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 823 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 688 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 664 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 692 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 672 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 679 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 699 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 657 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 696 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 666 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 644 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 726 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 717 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 734 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 719 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 721 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 698 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 759 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 712 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 739 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 693 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 684 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 692 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 674 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 701 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 688 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 686 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 661 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 727 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 681 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 708 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 650 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 648 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 692 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 893 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -0,0 +1,93 @@
#################################################
#
# (C) 2010 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
add_subdirectory( dbus )
add_definitions( -UQT_NO_ASCII_CAST )
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${DBUS_TQT_INCLUDE_DIRS}
${NM_UTIL_INCLUDE_DIRS}
)
link_directories(
${TQT_LIBRARY_DIRS}
)
##### headers ###################################
install( FILES
knetworkmanager-plugin.h knetworkmanager-vpnplugin.h
DESTINATION ${INCLUDE_INSTALL_DIR} )
##### other data ################################
install( FILES knetworkmanager.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( FILES eventsrc DESTINATION ${DATA_INSTALL_DIR}/knetworkmanager )
install( FILES knetworkmanager_plugin.desktop knetworkmanager_vpnplugin.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} )
##### knetworkmanager (kdeinit) #################
tde_add_kdeinit_executable( knetworkmanager AUTOMOC
SOURCES
connection_setting_info.ui connection_setting_wireless_security_wep.ui connection_setting_gsm.ui
connection_setting_cdma.ui connection_setting_ipv4.ui connection_setting_ppp.ui
connection_setting_serial.ui connection_setting_wireless_security_wpacipher.ui
connection_setting_wireless_security_eap.ui connection_setting_wireless_security_wpapsk.ui
connection_setting_wireless_security_phase2.ui connection_setting_wireless_security_wpaversion.ui
connection_setting_wireless_security.ui connection_setting_wireless.ui
connection_setting_wireless_security_wepencryption.ui connection_settings.ui
connection_setting_wireless_security_auth.ui connection_setting_vpn.ui connection_editor.ui
vpnauthentication.ui main.cpp knetworkmanager.cpp knetworkmanager-tray.cpp
knetworkmanager-hal_device_proxy.cpp knetworkmanager-nm_proxy.cpp knetworkmanager-device.cpp
knetworkmanager-cdma_device.cpp knetworkmanager-cellular_device.cpp knetworkmanager-gsm_device.cpp
knetworkmanager-wired_device.cpp knetworkmanager-vpn_device.cpp knetworkmanager-vpn_plugin.cpp
knetworkmanager-wireless_device.cpp knetworkmanager-devicestore.cpp
knetworkmanager-cellular_device_tray.cpp knetworkmanager-device_tray.cpp
knetworkmanager-wired_device_tray.cpp knetworkmanager-wireless_device_tray.cpp
knetworkmanager-accesspoint.cpp knetworkmanager-wireless_menuitem.cpp knetworkmanager-menuitem.cpp
knetworkmanager-menu_subhead.cpp knetworkmanager-connection_setting.cpp
knetworkmanager-connection_setting_info.cpp knetworkmanager-connection_setting_ipv4.cpp
knetworkmanager-connection_setting_wired.cpp knetworkmanager-connection_setting_wireless.cpp
knetworkmanager-connection_setting_wireless_security.cpp
knetworkmanager-connection_setting_8021x.cpp knetworkmanager-connection_setting_vpn.cpp
knetworkmanager-connection_setting_serial.cpp knetworkmanager-connection_setting_cdma.cpp
knetworkmanager-connection_setting_gsm.cpp knetworkmanager-connection_setting_ppp.cpp
knetworkmanager-connection_dbus.cpp knetworkmanager-connection_secrets_dbus.cpp
knetworkmanager-connection.cpp knetworkmanager-generic_connection.cpp
knetworkmanager-cdma_connection.cpp knetworkmanager-gsm_connection.cpp
knetworkmanager-ppp_connection.cpp knetworkmanager-wireless_connection.cpp
knetworkmanager-wired_connection.cpp knetworkmanager-vpn_connection.cpp
knetworkmanager-connection_store.cpp knetworkmanager-connection_setting_cdma_widget.cpp
knetworkmanager-connection_setting_gsm_widget.cpp
knetworkmanager-connection_setting_info_widget.cpp
knetworkmanager-connection_setting_ipv4_widget.cpp
knetworkmanager-connection_setting_ppp_widget.cpp
knetworkmanager-connection_setting_serial_widget.cpp
knetworkmanager-connection_setting_wireless_security_widget.cpp
knetworkmanager-connection_setting_wireless_widget.cpp
knetworkmanager-connection_setting_vpn_widget.cpp knetworkmanager-connection_settings_dialog.cpp
knetworkmanager-connection_setting_widget_interface.cpp knetworkmanager-nmsettings.cpp
sha1.cpp md5.cpp xmlmarshaller.cpp knetworkmanager-storage.cpp
knetworkmanager-wireless_network.cpp knetworkmanager-wireless_manager.cpp
knetworkmanager-connection_editor.cpp knetworkmanager-plugin.cpp knetworkmanager-vpnplugin.cpp
knetworkmanager-pluginmanager.cpp knetworkmanager-vpnservice.cpp knetworkmanager-vpnmanager.cpp
knetworkmanager-vpnauthenticationdialog.cpp devicetraycomponent.cpp traycomponent.cpp
vpn_tray_component.cpp secret_storage_plugin.cpp
LINK knm_dbus-static kdeui-shared kutils-shared ${DBUS_TQT_LIBRARIES}
)

@ -0,0 +1,220 @@
SUBDIRS = dbus
# set the include path for X, qt and KDE
INCLUDES = $(PACKAGE_CFLAGS) $(all_includes)
# headers to install
include_HEADERS = knetworkmanager-plugin.h \
knetworkmanager-vpnplugin.h
# these are the headers for your project
noinst_HEADERS = knetworkmanager.h \
knetworkmanager-tray.h \
knetworkmanager-hal_device_proxy.h \
knetworkmanager-nm_proxy.h \
knetworkmanager-device.h \
knetworkmanager-wired_device.h \
knetworkmanager-vpn_device.h \
knetworkmanager-vpn_plugin.h \
knetworkmanager-gsm_device.h \
knetworkmanager-cdma_device.h \
knetworkmanager-cellular_device.h \
knetworkmanager-wireless_device.h \
knetworkmanager-devicestore.h \
knetworkmanager-cellular_device_tray.h \
knetworkmanager-device_tray.h \
knetworkmanager-wired_device_tray.h \
knetworkmanager-wireless_device_tray.h \
knetworkmanager-accesspoint.h \
knetworkmanager-wireless_menuitem.h \
knetworkmanager-menuitem.h \
knetworkmanager-menu_subhead.h \
knetworkmanager-connection_setting.h \
knetworkmanager-connection_setting_info.h \
knetworkmanager-connection_setting_ipv4.h \
knetworkmanager-connection_setting_wired.h \
knetworkmanager-connection_setting_wireless.h \
knetworkmanager-connection_setting_wireless_security.h \
knetworkmanager-connection_setting_8021x.h \
knetworkmanager-connection_setting_vpn.h \
knetworkmanager-connection_setting_serial.h \
knetworkmanager-connection_setting_cdma.h \
knetworkmanager-connection_setting_gsm.h \
knetworkmanager-connection_setting_ppp.h \
knetworkmanager-ppp_connection.h \
knetworkmanager-cdma_connection.h \
knetworkmanager-gsm_connection.h \
knetworkmanager-wired_connection.h \
knetworkmanager-vpn_connection.h \
knetworkmanager-wireless_connection.h \
knetworkmanager-generic_connection.h \
knetworkmanager-connection.h \
knetworkmanager-connection_dbus.h \
knetworkmanager-connection_secrets_dbus.h \
knetworkmanager-connection_store.h \
knetworkmanager-connection_setting_gsm_widget.h \
knetworkmanager-connection_setting_cdma_widget.h \
knetworkmanager-connection_setting_info_widget.h \
knetworkmanager-connection_setting_ipv4_widget.h \
knetworkmanager-connection_setting_ppp_widget.h \
knetworkmanager-connection_setting_serial_widget.h \
knetworkmanager-connection_setting_widget_interface.h \
knetworkmanager-connection_setting_wireless_security_widget.h \
knetworkmanager-connection_setting_wireless_widget.h \
knetworkmanager-connection_setting_vpn_widget.h \
knetworkmanager-connection_setting_widget_interface.h \
knetworkmanager-nmsettings.h \
sha1.h \
md5.h \
xmlmarshaller.h \
knetworkmanager-storage.h \
knetworkmanager-wireless_network.h \
knetworkmanager-wireless_manager.h \
knetworkmanager-connection_editor.h \
knetworkmanager-plugin.h \
knetworkmanager-vpnplugin.h \
knetworkmanager-pluginmanager.h \
knetworkmanager-vpnservice.h \
knetworkmanager-vpnmanager.h \
knetworkmanager-vpnauthenticationdialog.h \
devicetraycomponent.h \
traycomponent.h \
vpn_tray_component.h \
secret_storage_plugin.h
# let automoc handle all of the meta source files (moc)
METASOURCES = AUTO
messages: rc.cpp
$(XGETTEXT) *.cpp -o $(podir)/knetworkmanager.pot
#########################################################################
# APPLICATION SECTION
#########################################################################
# this is the program that gets installed. it's name is used for all
# of the other Makefile.am variables
bin_PROGRAMS =
lib_LTLIBRARIES =
kdeinit_LTLIBRARIES = knetworkmanager.la
KDE_CXXFLAGS = -UQT_NO_ASCII_CAST ${LIBNMUTIL_CFLAGS}
# the application source, library search path, and link libraries
knetworkmanager_la_SOURCES = connection_setting_info.ui \
connection_setting_wireless_security_wep.ui \
connection_setting_gsm.ui \
connection_setting_cdma.ui \
connection_setting_ipv4.ui \
connection_setting_ppp.ui \
connection_setting_serial.ui \
connection_setting_wireless_security_wpacipher.ui \
connection_setting_wireless_security_eap.ui \
connection_setting_wireless_security_wpapsk.ui \
connection_setting_wireless_security_phase2.ui \
connection_setting_wireless_security_wpaversion.ui \
connection_setting_wireless_security.ui \
connection_setting_wireless.ui \
connection_setting_wireless_security_wepencryption.ui \
connection_settings.ui \
connection_setting_wireless_security_auth.ui \
connection_setting_vpn.ui \
connection_editor.ui \
vpnauthentication.ui \
main.cpp \
knetworkmanager.cpp \
knetworkmanager-tray.cpp \
knetworkmanager-hal_device_proxy.cpp \
knetworkmanager-nm_proxy.cpp \
knetworkmanager-device.cpp \
knetworkmanager-cdma_device.cpp \
knetworkmanager-cellular_device.cpp \
knetworkmanager-gsm_device.cpp \
knetworkmanager-wired_device.cpp \
knetworkmanager-vpn_device.cpp \
knetworkmanager-vpn_plugin.cpp \
knetworkmanager-wireless_device.cpp \
knetworkmanager-devicestore.cpp \
knetworkmanager-cellular_device_tray.cpp \
knetworkmanager-device_tray.cpp \
knetworkmanager-wired_device_tray.cpp \
knetworkmanager-wireless_device_tray.cpp \
knetworkmanager-accesspoint.cpp \
knetworkmanager-wireless_menuitem.cpp \
knetworkmanager-menuitem.cpp \
knetworkmanager-menu_subhead.cpp \
knetworkmanager-connection_setting.cpp \
knetworkmanager-connection_setting_info.cpp \
knetworkmanager-connection_setting_ipv4.cpp \
knetworkmanager-connection_setting_wired.cpp \
knetworkmanager-connection_setting_wireless.cpp \
knetworkmanager-connection_setting_wireless_security.cpp \
knetworkmanager-connection_setting_8021x.cpp \
knetworkmanager-connection_setting_vpn.cpp \
knetworkmanager-connection_setting_serial.cpp \
knetworkmanager-connection_setting_cdma.cpp \
knetworkmanager-connection_setting_gsm.cpp \
knetworkmanager-connection_setting_ppp.cpp \
knetworkmanager-connection_dbus.cpp \
knetworkmanager-connection_secrets_dbus.cpp \
knetworkmanager-connection.cpp \
knetworkmanager-generic_connection.cpp \
knetworkmanager-cdma_connection.cpp \
knetworkmanager-gsm_connection.cpp \
knetworkmanager-ppp_connection.cpp \
knetworkmanager-wireless_connection.cpp \
knetworkmanager-wired_connection.cpp \
knetworkmanager-vpn_connection.cpp \
knetworkmanager-connection_store.cpp \
knetworkmanager-connection_setting_cdma_widget.cpp \
knetworkmanager-connection_setting_gsm_widget.cpp \
knetworkmanager-connection_setting_info_widget.cpp \
knetworkmanager-connection_setting_ipv4_widget.cpp \
knetworkmanager-connection_setting_ppp_widget.cpp \
knetworkmanager-connection_setting_serial_widget.cpp \
knetworkmanager-connection_setting_wireless_security_widget.cpp \
knetworkmanager-connection_setting_wireless_widget.cpp \
knetworkmanager-connection_setting_vpn_widget.cpp \
knetworkmanager-connection_settings_dialog.cpp \
knetworkmanager-connection_setting_widget_interface.cpp \
knetworkmanager-nmsettings.cpp \
sha1.cpp \
md5.cpp \
xmlmarshaller.cpp \
knetworkmanager-storage.cpp \
knetworkmanager-wireless_network.cpp \
knetworkmanager-wireless_manager.cpp \
knetworkmanager-connection_editor.cpp \
knetworkmanager-plugin.cpp \
knetworkmanager-vpnplugin.cpp \
knetworkmanager-pluginmanager.cpp \
knetworkmanager-vpnservice.cpp \
knetworkmanager-vpnmanager.cpp \
knetworkmanager-vpnauthenticationdialog.cpp \
devicetraycomponent.cpp \
traycomponent.cpp \
vpn_tray_component.cpp \
secret_storage_plugin.cpp
knetworkmanager_la_LDFLAGS = -module \
$(KDE_RPATH) \
$(all_libraries) \
$(KDE_PLUGIN)
knetworkmanager_la_LIBADD = dbus/libknm_dbus.la \
$(PACKAGE_LIBS) \
$(LIB_KDEUI) \
$(LIB_KUTILS) \
$(LIB_KWALLETCLIENT) \
$(LIB_KDEUI)
# this is where the desktop file will go
xdg_apps_DATA = knetworkmanager.desktop
mydatadir = $(kde_datadir)/knetworkmanager
mydata_DATA = eventsrc
servicetype_DATA = knetworkmanager_plugin.desktop knetworkmanager_vpnplugin.desktop
servicetypedir = $(kde_servicetypesdir)
EXTRA_DIST = $(xdg_apps_DATA) $(mydata_DATA) $(servicetype_DATA)

@ -0,0 +1,123 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>ConnectionEditor</class>
<widget class="TQDialog">
<property name="name">
<cstring>ConnectionEditor</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>600</width>
<height>480</height>
</rect>
</property>
<property name="caption">
<string>Edit Connections ...</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="KListView" row="1" column="0" rowspan="5" colspan="1">
<column>
<property name="text">
<string>Connection</string>
</property>
<property name="clickable">
<bool>true</bool>
</property>
<property name="resizable">
<bool>true</bool>
</property>
</column>
<column>
<property name="text">
<string>Type</string>
</property>
<property name="clickable">
<bool>true</bool>
</property>
<property name="resizable">
<bool>true</bool>
</property>
</column>
<property name="name">
<cstring>lvConnections</cstring>
</property>
<property name="allColumnsShowFocus">
<bool>true</bool>
</property>
<property name="showSortIndicator">
<bool>true</bool>
</property>
<property name="resizeMode">
<enum>AllColumns</enum>
</property>
</widget>
<widget class="KComboBox" row="0" column="0">
<property name="name">
<cstring>cboConnectionType</cstring>
</property>
</widget>
<widget class="KPushButton" row="5" column="1">
<property name="name">
<cstring>pbClose</cstring>
</property>
<property name="text">
<string>Close</string>
</property>
</widget>
<spacer row="4" column="1">
<property name="name">
<cstring>spacer1</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<size>
<width>20</width>
<height>240</height>
</size>
</property>
</spacer>
<widget class="KPushButton" row="1" column="1">
<property name="name">
<cstring>pbNew</cstring>
</property>
<property name="text">
<string>New Connection</string>
</property>
</widget>
<widget class="KPushButton" row="3" column="1">
<property name="name">
<cstring>pbDelete</cstring>
</property>
<property name="text">
<string>Delete Connection</string>
</property>
</widget>
<widget class="KPushButton" row="2" column="1">
<property name="name">
<cstring>pbEdit</cstring>
</property>
<property name="text">
<string>Edit Connection</string>
</property>
</widget>
</grid>
</widget>
<layoutdefaults spacing="6" margin="11"/>
<includehints>
</includehints>
</UI>

@ -0,0 +1,131 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>ConnectionSettingCdmaWidget</class>
<widget class="TQWidget">
<property name="name">
<cstring>ConnectionSettingCdmaWidget</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>381</width>
<height>102</height>
</rect>
</property>
<property name="caption">
<string>Form1</string>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>tqlayout10</cstring>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQLineEdit" row="2" column="1">
<property name="name">
<cstring>mPassword</cstring>
</property>
<property name="toolTip" stdset="0">
<string>Password needed to access the service</string>
</property>
</widget>
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
<property name="text">
<string>&amp;Number:</string>
</property>
<property name="buddy" stdset="0">
<cstring>mNumber</cstring>
</property>
</widget>
<widget class="TQLineEdit" row="1" column="1">
<property name="name">
<cstring>mUsername</cstring>
</property>
<property name="toolTip" stdset="0">
<string>Username needed to access the service</string>
</property>
</widget>
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel2</cstring>
</property>
<property name="text">
<string>&amp;Username:</string>
</property>
<property name="buddy" stdset="0">
<cstring>mUsername</cstring>
</property>
</widget>
<widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel2_2</cstring>
</property>
<property name="text">
<string>&amp;Password:</string>
</property>
<property name="buddy" stdset="0">
<cstring>mUsername</cstring>
</property>
</widget>
<widget class="TQLineEdit" row="0" column="1">
<property name="name">
<cstring>mNumber</cstring>
</property>
</widget>
<spacer row="0" column="2" rowspan="2" colspan="1">
<property name="name">
<cstring>spacer2</cstring>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<size>
<width>146</width>
<height>20</height>
</size>
</property>
</spacer>
</grid>
</widget>
<spacer>
<property name="name">
<cstring>spacer1</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<size>
<width>20</width>
<height>16</height>
</size>
</property>
</spacer>
</vbox>
</widget>
<tabstops>
<tabstop>mNumber</tabstop>
<tabstop>mUsername</tabstop>
<tabstop>mPassword</tabstop>
</tabstops>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -0,0 +1,294 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>ConnectionSettingGsmWidget</class>
<widget class="TQWidget">
<property name="name">
<cstring>ConnectionSettingGsmWidget</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>381</width>
<height>245</height>
</rect>
</property>
<property name="caption">
<string>Form1</string>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>tqlayout9</cstring>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQLabel" row="2" column="2">
<property name="name">
<cstring>textLabel4</cstring>
</property>
<property name="text">
<string>Network &amp;ID:</string>
</property>
<property name="buddy" stdset="0">
<cstring>mNetworkId</cstring>
</property>
</widget>
<widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>textLabel2_2_2</cstring>
</property>
<property name="text">
<string>PU&amp;K:</string>
</property>
<property name="buddy" stdset="0">
<cstring>mUsername</cstring>
</property>
</widget>
<widget class="TQLabel" row="0" column="2">
<property name="name">
<cstring>textLabel1</cstring>
</property>
<property name="text">
<string>&amp;Number:</string>
</property>
<property name="buddy" stdset="0">
<cstring>mNumber</cstring>
</property>
</widget>
<widget class="TQLineEdit" row="1" column="1">
<property name="name">
<cstring>mPassword</cstring>
</property>
<property name="toolTip" stdset="0">
<string>Password needed to access the service</string>
</property>
</widget>
<widget class="TQComboBox" row="3" column="3">
<item>
<property name="text">
<string>Any</string>
</property>
</item>
<item>
<property name="text">
<string>GPRS</string>
</property>
</item>
<item>
<property name="text">
<string>GSM</string>
</property>
</item>
<item>
<property name="text">
<string>Prefer GPRS</string>
</property>
</item>
<item>
<property name="text">
<string>Prefer GSM</string>
</property>
</item>
<property name="name">
<cstring>mNetworkType</cstring>
</property>
<property name="toolTip" stdset="0">
<string>Select the type of cellular data network the connection should use</string>
</property>
<property name="whatsThis" stdset="0">
<string>Any chooses the best available; GSM/GPRS locks the connection to the specified network type; Prefer options prefer one type but will use the other if necessary</string>
</property>
</widget>
<widget class="TQLabel" row="3" column="2">
<property name="name">
<cstring>textLabel6</cstring>
</property>
<property name="text">
<string>Network &amp;Type:</string>
</property>
<property name="buddy" stdset="0">
<cstring>mNetworkType</cstring>
</property>
</widget>
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel2</cstring>
</property>
<property name="text">
<string>&amp;Username:</string>
</property>
<property name="buddy" stdset="0">
<cstring>mUsername</cstring>
</property>
</widget>
<widget class="TQLineEdit" row="1" column="3">
<property name="name">
<cstring>mApn</cstring>
</property>
<property name="toolTip" stdset="0">
<string>Access Point Name</string>
</property>
<property name="whatsThis" stdset="0">
<string>The hostname of the machine providing network access</string>
</property>
</widget>
<widget class="TQLabel" row="4" column="2">
<property name="name">
<cstring>textLabel5</cstring>
</property>
<property name="text">
<string>&amp;Band:</string>
</property>
<property name="buddy" stdset="0">
<cstring>mBand</cstring>
</property>
</widget>
<widget class="TQLineEdit" row="3" column="1">
<property name="name">
<cstring>mPuk</cstring>
</property>
<property name="toolTip" stdset="0">
<string>Personal Unblocking Code</string>
</property>
<property name="whatsThis" stdset="0">
<string> A code used to unblock a blocked SIM card</string>
</property>
</widget>
<widget class="TQSpinBox" row="4" column="3">
<property name="name">
<cstring>mBand</cstring>
</property>
<property name="maxValue">
<number>5</number>
</property>
<property name="minValue">
<number>-1</number>
</property>
<property name="value">
<number>-1</number>
</property>
</widget>
<spacer row="4" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>spacer4</cstring>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<size>
<width>171</width>
<height>20</height>
</size>
</property>
</spacer>
<widget class="TQLineEdit" row="2" column="1">
<property name="name">
<cstring>mPin</cstring>
</property>
<property name="toolTip" stdset="0">
<string>Personal Identification Number</string>
</property>
<property name="whatsThis" stdset="0">
<string>A code used for all GSM-based phones to establish authorisation for access to certain functions or information</string>
</property>
</widget>
<widget class="TQLineEdit" row="0" column="1">
<property name="name">
<cstring>mUsername</cstring>
</property>
<property name="toolTip" stdset="0">
<string>Username needed to access the service</string>
</property>
</widget>
<widget class="TQLineEdit" row="0" column="3">
<property name="name">
<cstring>mNumber</cstring>
</property>
</widget>
<widget class="TQLineEdit" row="2" column="3">
<property name="name">
<cstring>mNetworkId</cstring>
</property>
<property name="toolTip" stdset="0">
<string>The GSM network to connect to</string>
</property>
</widget>
<widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel2_3</cstring>
</property>
<property name="text">
<string>&amp;PIN:</string>
</property>
<property name="buddy" stdset="0">
<cstring>mUsername</cstring>
</property>
</widget>
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel2_2</cstring>
</property>
<property name="text">
<string>Pass&amp;word:</string>
</property>
<property name="buddy" stdset="0">
<cstring>mUsername</cstring>
</property>
</widget>
<widget class="TQLabel" row="1" column="2">
<property name="name">
<cstring>textLabel3</cstring>
</property>
<property name="text">
<string>&amp;APN:</string>
</property>
<property name="buddy" stdset="0">
<cstring>mApn</cstring>
</property>
</widget>
</grid>
</widget>
<spacer>
<property name="name">
<cstring>spacer5</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<size>
<width>20</width>
<height>51</height>
</size>
</property>
</spacer>
</vbox>
</widget>
<tabstops>
<tabstop>mUsername</tabstop>
<tabstop>mPassword</tabstop>
<tabstop>mPin</tabstop>
<tabstop>mPuk</tabstop>
<tabstop>mNumber</tabstop>
<tabstop>mApn</tabstop>
<tabstop>mNetworkId</tabstop>
<tabstop>mNetworkType</tabstop>
<tabstop>mBand</tabstop>
</tabstops>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -0,0 +1,71 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>ConnectionSettingInfoWidget</class>
<widget class="TQWidget">
<property name="name">
<cstring>ConnectionSettingInfoWidget</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>591</width>
<height>151</height>
</rect>
</property>
<property name="caption">
<string>Form1</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
<property name="text">
<string>Connection Name:</string>
</property>
</widget>
<widget class="TQLineEdit" row="0" column="1">
<property name="name">
<cstring>txtConnectionName</cstring>
</property>
</widget>
<spacer row="2" column="0">
<property name="name">
<cstring>spacer1</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<size>
<width>20</width>
<height>30</height>
</size>
</property>
</spacer>
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel1_2</cstring>
</property>
<property name="text">
<string>Autoconnect:</string>
</property>
</widget>
<widget class="TQCheckBox" row="1" column="1">
<property name="name">
<cstring>chkAutoConnect</cstring>
</property>
<property name="text">
<string></string>
</property>
</widget>
</grid>
</widget>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -0,0 +1,116 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>ConnectionSettingIPv4Widget</class>
<widget class="TQWidget">
<property name="name">
<cstring>ConnectionSettingIPv4Widget</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>534</width>
<height>330</height>
</rect>
</property>
<property name="caption">
<string>Form3</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQGroupBox" row="0" column="0">
<property name="name">
<cstring>groupIPConfig</cstring>
</property>
<property name="title">
<string>Use manual IP configuration</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="checked">
<bool>false</bool>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
<property name="text">
<string>DNS Addresses:</string>
</property>
</widget>
<widget class="TQLabel" row="4" column="0">
<property name="name">
<cstring>textLabel2_2</cstring>
</property>
<property name="text">
<string>DNS Search:</string>
</property>
</widget>
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel2</cstring>
</property>
<property name="text">
<string>IP Address:</string>
</property>
</widget>
<widget class="TQLineEdit" row="0" column="1">
<property name="name">
<cstring>txtIP</cstring>
</property>
</widget>
<widget class="TQLineEdit" row="3" column="1">
<property name="name">
<cstring>txtDNSAddresses</cstring>
</property>
</widget>
<widget class="TQLineEdit" row="4" column="1">
<property name="name">
<cstring>txtDNSSearch</cstring>
</property>
</widget>
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel2_3</cstring>
</property>
<property name="text">
<string>Netmask:</string>
</property>
</widget>
<widget class="TQLineEdit" row="1" column="1">
<property name="name">
<cstring>txtNetmask</cstring>
</property>
</widget>
<widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel1_2</cstring>
</property>
<property name="text">
<string>Gateway:</string>
</property>
</widget>
<widget class="TQLineEdit" row="2" column="1">
<property name="name">
<cstring>txtGateway</cstring>
</property>
</widget>
</grid>
</widget>
</grid>
</widget>
<tabstops>
<tabstop>txtIP</tabstop>
<tabstop>txtNetmask</tabstop>
<tabstop>txtGateway</tabstop>
<tabstop>txtDNSAddresses</tabstop>
<tabstop>txtDNSSearch</tabstop>
</tabstops>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -0,0 +1,320 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>ConnectionSettingPppWidget</class>
<widget class="TQWidget">
<property name="name">
<cstring>ConnectionSettingPppWidget</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>472</width>
<height>284</height>
</rect>
</property>
<property name="caption">
<string>Form2</string>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>tqlayout9</cstring>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQCheckBox" row="3" column="1">
<property name="name">
<cstring>mRequireMppe128</cstring>
</property>
<property name="text">
<string>Require MPPE128</string>
</property>
</widget>
<spacer row="5" column="2" rowspan="2" colspan="1">
<property name="name">
<cstring>spacer6</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<size>
<width>20</width>
<height>50</height>
</size>
</property>
</spacer>
<widget class="TQLayoutWidget" row="4" column="2">
<property name="name">
<cstring>tqlayout11</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQSpinBox">
<property name="name">
<cstring>mLcpEchoInterval</cstring>
</property>
</widget>
<widget class="TQLabel">
<property name="name">
<cstring>textLabel11</cstring>
</property>
<property name="text">
<string>LCP Echo Interval</string>
</property>
</widget>
</hbox>
</widget>
<widget class="TQLayoutWidget" row="3" column="2">
<property name="name">
<cstring>tqlayout12</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQSpinBox">
<property name="name">
<cstring>mLcpEchoFailure</cstring>
</property>
</widget>
<widget class="TQLabel">
<property name="name">
<cstring>textLabel10</cstring>
</property>
<property name="text">
<string>LCP Echo Failure</string>
</property>
</widget>
</hbox>
</widget>
<widget class="TQLayoutWidget" row="0" column="2">
<property name="name">
<cstring>tqlayout15</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQSpinBox">
<property name="name">
<cstring>mBaudRate</cstring>
</property>
</widget>
<widget class="TQLabel">
<property name="name">
<cstring>textLabel7</cstring>
</property>
<property name="text">
<string>Baud rate</string>
</property>
</widget>
</hbox>
</widget>
<widget class="TQLayoutWidget" row="2" column="2">
<property name="name">
<cstring>tqlayout13</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQSpinBox">
<property name="name">
<cstring>mMtu</cstring>
</property>
</widget>
<widget class="TQLabel">
<property name="name">
<cstring>textLabel9</cstring>
</property>
<property name="text">
<string>MTU</string>
</property>
</widget>
</hbox>
</widget>
<widget class="TQCheckBox" row="2" column="0">
<property name="name">
<cstring>mRefusePap</cstring>
</property>
<property name="text">
<string>Refuse PAP</string>
</property>
</widget>
<widget class="TQCheckBox" row="0" column="0">
<property name="name">
<cstring>mNoAuth</cstring>
</property>
<property name="text">
<string>No Authorization</string>
</property>
</widget>
<widget class="TQCheckBox" row="1" column="1">
<property name="name">
<cstring>mNoVjComp</cstring>
</property>
<property name="text">
<string>No VJ Compression</string>
</property>
</widget>
<widget class="TQCheckBox" row="4" column="0">
<property name="name">
<cstring>mRefuseMschap</cstring>
</property>
<property name="text">
<string>Refuse MSCHAP</string>
</property>
</widget>
<widget class="TQLayoutWidget" row="1" column="2">
<property name="name">
<cstring>tqlayout14</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQSpinBox">
<property name="name">
<cstring>mMru</cstring>
</property>
</widget>
<widget class="TQLabel">
<property name="name">
<cstring>textLabel8</cstring>
</property>
<property name="text">
<string>MRU</string>
</property>
</widget>
</hbox>
</widget>
<widget class="TQCheckBox" row="2" column="1">
<property name="name">
<cstring>mRequireMppe</cstring>
</property>
<property name="text">
<string>Require MPPE</string>
</property>
</widget>
<widget class="TQCheckBox" row="5" column="1">
<property name="name">
<cstring>mRequireMppc</cstring>
</property>
<property name="text">
<string>Require MPPC</string>
</property>
</widget>
<widget class="TQCheckBox" row="5" column="0">
<property name="name">
<cstring>mRefuseMschapV2</cstring>
</property>
<property name="text">
<string>Refuse MSCHAPv2</string>
</property>
</widget>
<widget class="TQCheckBox" row="6" column="0">
<property name="name">
<cstring>mNoBsd</cstring>
</property>
<property name="text">
<string>No BSD</string>
</property>
</widget>
<widget class="TQCheckBox" row="4" column="1">
<property name="name">
<cstring>mStatefulMppe</cstring>
</property>
<property name="text">
<string>Stateful MPPE</string>
</property>
</widget>
<widget class="TQCheckBox" row="6" column="1">
<property name="name">
<cstring>mCrtscts</cstring>
</property>
<property name="text">
<string>CRTSCTS</string>
</property>
</widget>
<widget class="TQCheckBox" row="0" column="1">
<property name="name">
<cstring>mNoDeflate</cstring>
</property>
<property name="text">
<string>No Deflate</string>
</property>
</widget>
<widget class="TQCheckBox" row="3" column="0">
<property name="name">
<cstring>mRefuseChap</cstring>
</property>
<property name="text">
<string>Refuse CHAP</string>
</property>
</widget>
<widget class="TQCheckBox" row="1" column="0">
<property name="name">
<cstring>mRefuseEap</cstring>
</property>
<property name="text">
<string>Refuse EAP</string>
</property>
</widget>
</grid>
</widget>
<spacer>
<property name="name">
<cstring>spacer2</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<size>
<width>20</width>
<height>41</height>
</size>
</property>
</spacer>
</vbox>
</widget>
<tabstops>
<tabstop>mNoAuth</tabstop>
<tabstop>mRefuseEap</tabstop>
<tabstop>mRefusePap</tabstop>
<tabstop>mRefuseChap</tabstop>
<tabstop>mRefuseMschap</tabstop>
<tabstop>mRefuseMschapV2</tabstop>
<tabstop>mNoBsd</tabstop>
<tabstop>mNoDeflate</tabstop>
<tabstop>mNoVjComp</tabstop>
<tabstop>mRequireMppe</tabstop>
<tabstop>mRequireMppe128</tabstop>
<tabstop>mStatefulMppe</tabstop>
<tabstop>mRequireMppc</tabstop>
<tabstop>mCrtscts</tabstop>
<tabstop>mBaudRate</tabstop>
<tabstop>mMru</tabstop>
<tabstop>mMtu</tabstop>
<tabstop>mLcpEchoFailure</tabstop>
<tabstop>mLcpEchoInterval</tabstop>
</tabstops>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -0,0 +1,185 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>ConnectionSettingSerialWidget</class>
<widget class="TQWidget">
<property name="name">
<cstring>ConnectionSettingSerialWidget</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>170</width>
<height>187</height>
</rect>
</property>
<property name="caption">
<string>Form2</string>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<widget class="TQLayoutWidget">
<property name="name">
<cstring>tqlayout23</cstring>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQSpinBox" row="4" column="1">
<property name="name">
<cstring>mSendDelay</cstring>
</property>
</widget>
<widget class="TQLabel" row="4" column="0">
<property name="name">
<cstring>textLabel11</cstring>
</property>
<property name="text">
<string>&amp;Send delay</string>
</property>
<property name="buddy" stdset="0">
<cstring>mSendDelay</cstring>
</property>
</widget>
<widget class="TQComboBox" row="2" column="1">
<item>
<property name="text">
<string>None</string>
</property>
</item>
<item>
<property name="text">
<string>Even</string>
</property>
</item>
<item>
<property name="text">
<string>Odd</string>
</property>
</item>
<property name="name">
<cstring>mParity</cstring>
</property>
</widget>
<widget class="TQComboBox" row="3" column="1">
<item>
<property name="text">
<string>0</string>
</property>
</item>
<item>
<property name="text">
<string>1</string>
</property>
</item>
<property name="name">
<cstring>mStopBits</cstring>
</property>
<property name="currentItem">
<number>1</number>
</property>
</widget>
<widget class="TQComboBox" row="1" column="1">
<item>
<property name="text">
<string>7</string>
</property>
</item>
<item>
<property name="text">
<string>8</string>
</property>
</item>
<item>
<property name="text">
<string>9</string>
</property>
</item>
<property name="name">
<cstring>mDataBits</cstring>
</property>
<property name="currentItem">
<number>1</number>
</property>
</widget>
<widget class="TQSpinBox" row="0" column="1">
<property name="name">
<cstring>mBaudRate</cstring>
</property>
</widget>
<widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>textLabel12_3</cstring>
</property>
<property name="text">
<string>&amp;Stop bits:</string>
</property>
<property name="buddy" stdset="0">
<cstring>mStopBits</cstring>
</property>
</widget>
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel7</cstring>
</property>
<property name="text">
<string>Baud rate</string>
</property>
</widget>
<widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel12_2</cstring>
</property>
<property name="text">
<string>&amp;Parity:</string>
</property>
<property name="buddy" stdset="0">
<cstring>mParity</cstring>
</property>
</widget>
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel12</cstring>
</property>
<property name="text">
<string>&amp;Data bits:</string>
</property>
<property name="buddy" stdset="0">
<cstring>mDataBits</cstring>
</property>
</widget>
</grid>
</widget>
<spacer>
<property name="name">
<cstring>spacer6</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<size>
<width>20</width>
<height>141</height>
</size>
</property>
</spacer>
</vbox>
</widget>
<tabstops>
<tabstop>mBaudRate</tabstop>
<tabstop>mDataBits</tabstop>
<tabstop>mParity</tabstop>
<tabstop>mStopBits</tabstop>
<tabstop>mSendDelay</tabstop>
</tabstops>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -0,0 +1,51 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>ConnectionSettingVPNWidget</class>
<widget class="TQWidget">
<property name="name">
<cstring>VPN</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>331</width>
<height>155</height>
</rect>
</property>
<property name="caption">
<string>VPN</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQComboBox" row="0" column="1">
<property name="name">
<cstring>cboServices</cstring>
</property>
</widget>
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel2</cstring>
</property>
<property name="text">
<string>Service</string>
</property>
</widget>
<widget class="TQWidgetStack" row="1" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>widgetStack</cstring>
</property>
<widget class="TQWidget">
<property name="name">
<cstring>WStackPage</cstring>
</property>
<attribute name="id">
<number>0</number>
</attribute>
</widget>
</widget>
</grid>
</widget>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -0,0 +1,140 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>ConnectionSettingWirelessWidget</class>
<widget class="TQWidget">
<property name="name">
<cstring>ConnectionSettingWirelessWidget</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>506</width>
<height>418</height>
</rect>
</property>
<property name="caption">
<string>Form6</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
<property name="text">
<string>Essid:</string>
</property>
</widget>
<widget class="KLineEdit" row="2" column="1" rowspan="1" colspan="3">
<property name="name">
<cstring>txtEssid</cstring>
</property>
</widget>
<widget class="KPushButton" row="3" column="2" rowspan="1" colspan="2">
<property name="name">
<cstring>pbExpert</cstring>
</property>
<property name="text">
<string>Expert options</string>
</property>
</widget>
<spacer row="3" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>spacer1</cstring>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<size>
<width>282</width>
<height>20</height>
</size>
</property>
</spacer>
<widget class="KListView" row="1" column="0" rowspan="1" colspan="4">
<column>
<property name="text">
<string>Essid</string>
</property>
<property name="clickable">
<bool>true</bool>
</property>
<property name="resizable">
<bool>true</bool>
</property>
</column>
<column>
<property name="text">
<string>Quality</string>
</property>
<property name="clickable">
<bool>true</bool>
</property>
<property name="resizable">
<bool>true</bool>
</property>
</column>
<column>
<property name="text">
<string>Security</string>
</property>
<property name="clickable">
<bool>true</bool>
</property>
<property name="resizable">
<bool>true</bool>
</property>
</column>
<property name="name">
<cstring>lvEssids</cstring>
</property>
<property name="frameShape">
<enum>StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>Sunken</enum>
</property>
<property name="allColumnsShowFocus">
<bool>true</bool>
</property>
<property name="fullWidth">
<bool>true</bool>
</property>
</widget>
<widget class="TQFrame" row="0" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>framePlaceholder</cstring>
</property>
<property name="frameShape">
<enum>NoFrame</enum>
</property>
<property name="frameShadow">
<enum>Raised</enum>
</property>
</widget>
<widget class="TQCheckBox" row="0" column="3">
<property name="name">
<cstring>chkAutoRefresh</cstring>
</property>
<property name="text">
<string>Refresh automatically</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</grid>
</widget>
<layoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>klineedit.h</includehint>
<includehint>kpushbutton.h</includehint>
<includehint>klistview.h</includehint>
</includehints>
</UI>

@ -0,0 +1,87 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>ConnectionSettingWirelessSecurityWidget</class>
<widget class="TQWidget">
<property name="name">
<cstring>Form1</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>522</width>
<height>158</height>
</rect>
</property>
<property name="caption">
<string>Form1</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQGroupBox" row="0" column="0">
<property name="name">
<cstring>groupUseEncryption</cstring>
</property>
<property name="title">
<string>Use Wireless Security</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="checked">
<bool>false</bool>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQComboBox" row="0" column="1">
<property name="name">
<cstring>cboSecurity</cstring>
</property>
</widget>
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
<property name="text">
<string>Security:</string>
</property>
</widget>
<widget class="TQButtonGroup" row="1" column="1">
<property name="name">
<cstring>buttonGroup5</cstring>
</property>
<property name="frameShape">
<enum>NoFrame</enum>
</property>
<property name="title">
<string></string>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
</hbox>
</widget>
<widget class="TQPushButton" row="0" column="2">
<property name="name">
<cstring>pbExtra</cstring>
</property>
<property name="text">
<string>Expert settings</string>
</property>
<property name="toggleButton">
<bool>true</bool>
</property>
</widget>
</grid>
</widget>
</grid>
</widget>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -0,0 +1,51 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>Form1</class>
<widget class="TQWidget">
<property name="name">
<cstring>Form1</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>342</width>
<height>97</height>
</rect>
</property>
<property name="caption">
<string>Form1</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQGroupBox" row="0" column="0">
<property name="name">
<cstring>groupBox1</cstring>
</property>
<property name="title">
<string>Authentication</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
<property name="text">
<string>Method:</string>
</property>
</widget>
<widget class="TQComboBox" row="0" column="1">
<property name="name">
<cstring>cboAuthAlg</cstring>
</property>
</widget>
</grid>
</widget>
</grid>
</widget>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -0,0 +1,163 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>ConnectionSettingWirelessSecurityEAP</class>
<widget class="TQWidget">
<property name="name">
<cstring>ConnectionSettingWirelessSecurityEAP</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>583</width>
<height>174</height>
</rect>
</property>
<property name="caption">
<string>Form2</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<widget class="TQGroupBox" row="0" column="0">
<property name="name">
<cstring>groupBox2</cstring>
</property>
<property name="title">
<string>EAP</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel8</cstring>
</property>
<property name="text">
<string>Method:</string>
</property>
</widget>
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel9</cstring>
</property>
<property name="text">
<string>Identity:</string>
</property>
</widget>
<widget class="TQComboBox" row="0" column="1">
<property name="name">
<cstring>cboMethod</cstring>
</property>
</widget>
<widget class="TQLineEdit" row="1" column="1">
<property name="name">
<cstring>txtIdentity</cstring>
</property>
</widget>
<widget class="TQLineEdit" row="2" column="1">
<property name="name">
<cstring>txtAnonIdentity</cstring>
</property>
</widget>
<widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel10</cstring>
</property>
<property name="text">
<string>Anonymous Identity:</string>
</property>
</widget>
<widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>textLabel11</cstring>
</property>
<property name="text">
<string>Password:</string>
</property>
</widget>
<widget class="KPasswordEdit" row="3" column="1">
<property name="name">
<cstring>txtPassword</cstring>
</property>
</widget>
<widget class="TQLabel" row="4" column="0">
<property name="name">
<cstring>textLabel16</cstring>
</property>
<property name="text">
<string>Private Secret Key:</string>
</property>
</widget>
<widget class="KPasswordEdit" row="4" column="1">
<property name="name">
<cstring>txtPrivateSecretKey</cstring>
</property>
</widget>
<widget class="TQLabel" row="0" column="2">
<property name="name">
<cstring>textLabel12</cstring>
</property>
<property name="text">
<string>Client Certificate:</string>
</property>
</widget>
<widget class="KURLRequester" row="0" column="3">
<property name="name">
<cstring>kURLClientCert</cstring>
</property>
</widget>
<widget class="KURLRequester" row="1" column="3">
<property name="name">
<cstring>kURLPrivateKey</cstring>
</property>
</widget>
<widget class="TQLabel" row="1" column="2">
<property name="name">
<cstring>textLabel15</cstring>
</property>
<property name="text">
<string>Private Keyfile:</string>
</property>
</widget>
<widget class="TQLabel" row="3" column="2">
<property name="name">
<cstring>textLabel14</cstring>
</property>
<property name="text">
<string>CA Certificate:</string>
</property>
</widget>
<widget class="KURLRequester" row="3" column="3">
<property name="name">
<cstring>kURLCACert</cstring>
</property>
</widget>
<widget class="TQLabel" row="2" column="2">
<property name="name">
<cstring>textLabel1</cstring>
</property>
<property name="text">
<string>Use System CA Certificates</string>
</property>
</widget>
<widget class="TQCheckBox" row="2" column="3">
<property name="name">
<cstring>chkCAStore</cstring>
</property>
<property name="text">
<string></string>
</property>
</widget>
</grid>
</widget>
</grid>
</widget>
<layoutdefaults spacing="6" margin="11"/>
<includehints>
</includehints>
</UI>

@ -0,0 +1,54 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>ConnectionSettingWirelessSecurityPhase2</class>
<widget class="TQWidget">
<property name="name">
<cstring>ConnectionSettingWirelessSecurityPhase2</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>225</width>
<height>135</height>
</rect>
</property>
<property name="caption">
<string>Form4</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<widget class="TQGroupBox" row="0" column="0">
<property name="name">
<cstring>groupBox4</cstring>
</property>
<property name="title">
<string>Phase 2</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel17</cstring>
</property>
<property name="text">
<string>Method:</string>
</property>
</widget>
<widget class="TQComboBox" row="0" column="1">
<property name="name">
<cstring>cboPhase2Method</cstring>
</property>
</widget>
</grid>
</widget>
</grid>
</widget>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -0,0 +1,146 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>ConnectionSettingWirelessSecurityWEP</class>
<widget class="TQWidget">
<property name="name">
<cstring>ConnectionSettingWirelessSecurityWEP</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>333</width>
<height>238</height>
</rect>
</property>
<property name="caption">
<string>Form1</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<widget class="TQGroupBox" row="0" column="0">
<property name="name">
<cstring>WEP</cstring>
</property>
<property name="title">
<string>WEP</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQButtonGroup" row="0" column="0">
<property name="name">
<cstring>buttonGroup1</cstring>
</property>
<property name="frameShape">
<enum>NoFrame</enum>
</property>
<property name="title">
<string></string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<widget class="TQLineEdit" row="4" column="1">
<property name="name">
<cstring>txtWEPKey2</cstring>
</property>
</widget>
<widget class="TQRadioButton" row="3" column="0">
<property name="name">
<cstring>rbKeyIdx1</cstring>
</property>
<property name="text">
<string>Key 2:</string>
</property>
</widget>
<widget class="TQRadioButton" row="5" column="0">
<property name="name">
<cstring>rbKeyIdx3</cstring>
</property>
<property name="text">
<string>Key 4:</string>
</property>
</widget>
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
<property name="text">
<string>Type:</string>
</property>
</widget>
<widget class="TQRadioButton" row="2" column="0">
<property name="name">
<cstring>rbKeyIdx0</cstring>
</property>
<property name="text">
<string>Key 1:</string>
</property>
</widget>
<widget class="TQLineEdit" row="5" column="1">
<property name="name">
<cstring>txtWEPKey3</cstring>
</property>
</widget>
<widget class="TQRadioButton" row="4" column="0">
<property name="name">
<cstring>rbKeyIdx2</cstring>
</property>
<property name="text">
<string>Key 3:</string>
</property>
</widget>
<widget class="TQLineEdit" row="3" column="1">
<property name="name">
<cstring>txtWEPKey1</cstring>
</property>
</widget>
<widget class="TQLineEdit" row="2" column="1">
<property name="name">
<cstring>txtWEPKey0</cstring>
</property>
</widget>
<widget class="TQComboBox" row="1" column="1">
<property name="name">
<cstring>cbKeyType</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1_2</cstring>
</property>
<property name="text">
<string>Authentication:</string>
</property>
</widget>
<widget class="TQComboBox" row="0" column="1">
<property name="name">
<cstring>cboAuthentication</cstring>
</property>
</widget>
</grid>
</widget>
</grid>
</widget>
</grid>
</widget>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -0,0 +1,46 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>ConnectionSettingWirelessSecurityWEPEncryption</class>
<widget class="TQWidget">
<property name="name">
<cstring>ConnectionSettingWirelessSecurityWEPEncryption</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>288</width>
<height>64</height>
</rect>
</property>
<property name="caption">
<string>Form1</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<widget class="TQGroupBox" row="0" column="0">
<property name="name">
<cstring>groupBox2</cstring>
</property>
<property name="title">
<string>Encryption</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQComboBox" row="0" column="0">
<property name="name">
<cstring>cboEncryption</cstring>
</property>
</widget>
</grid>
</widget>
</grid>
</widget>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -0,0 +1,128 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>ConnectionSettingWirelessSecurityWPACipher</class>
<widget class="TQWidget">
<property name="name">
<cstring>ConnectionSettingWirelessSecurityWPACipher</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>600</width>
<height>99</height>
</rect>
</property>
<property name="caption">
<string>Form1</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<widget class="TQGroupBox" row="0" column="0">
<property name="name">
<cstring>grpUseCipher</cstring>
</property>
<property name="title">
<string>Use specific cipher</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="checked">
<bool>false</bool>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel18</cstring>
</property>
<property name="text">
<string>Group Cipher:</string>
</property>
</widget>
<widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
<property name="text">
<string>Pairwise Cipher:</string>
</property>
</widget>
<widget class="TQCheckBox" row="0" column="2">
<property name="name">
<cstring>chkGroupCipherCCMP</cstring>
</property>
<property name="text">
<string>CCMP</string>
</property>
</widget>
<widget class="TQCheckBox" row="0" column="1">
<property name="name">
<cstring>chkGroupCipherTKIP</cstring>
</property>
<property name="text">
<string>TKIP</string>
</property>
</widget>
<widget class="TQCheckBox" row="1" column="1">
<property name="name">
<cstring>chkPairwiseCipherTKIP</cstring>
</property>
<property name="text">
<string>TKIP</string>
</property>
</widget>
<widget class="TQCheckBox" row="1" column="2">
<property name="name">
<cstring>chkPairwiseCipherCCMP</cstring>
</property>
<property name="text">
<string>CCMP</string>
</property>
</widget>
<widget class="TQCheckBox" row="0" column="3">
<property name="name">
<cstring>chkGroupCipherWEP40</cstring>
</property>
<property name="text">
<string>WEP 40</string>
</property>
</widget>
<spacer row="0" column="5">
<property name="name">
<cstring>spacer2</cstring>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<size>
<width>60</width>
<height>20</height>
</size>
</property>
</spacer>
<widget class="TQCheckBox" row="0" column="4">
<property name="name">
<cstring>chkGroupCipherWEP104</cstring>
</property>
<property name="text">
<string>WEP 104</string>
</property>
</widget>
</grid>
</widget>
</grid>
</widget>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -0,0 +1,46 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>ConnectionSettingWirelessSecurityWPAPSK</class>
<widget class="TQWidget">
<property name="name">
<cstring>ConnectionSettingWirelessSecurityWPAPSK</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>600</width>
<height>480</height>
</rect>
</property>
<property name="caption">
<string>Form2</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<widget class="TQGroupBox" row="0" column="0">
<property name="name">
<cstring>groupBox3</cstring>
</property>
<property name="title">
<string>Shared Key</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQLineEdit" row="0" column="0">
<property name="name">
<cstring>txtPSK</cstring>
</property>
</widget>
</grid>
</widget>
</grid>
</widget>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -0,0 +1,80 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>ConnectionSettingWirelessSecurityWPAVersion</class>
<widget class="TQWidget">
<property name="name">
<cstring>ConnectionSettingWirelessSecurityWPAVersion</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>308</width>
<height>64</height>
</rect>
</property>
<property name="caption">
<string>Form3</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<property name="margin">
<number>0</number>
</property>
<widget class="TQButtonGroup" row="0" column="0">
<property name="name">
<cstring>grpUseWPAVersion</cstring>
</property>
<property name="title">
<string>Use specific WPA Version</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="checked">
<bool>false</bool>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="TQCheckBox" row="0" column="1">
<property name="name">
<cstring>cbRSN</cstring>
</property>
<property name="text">
<string>WPA 2/RSN</string>
</property>
</widget>
<widget class="TQCheckBox" row="0" column="0">
<property name="name">
<cstring>cbWPA</cstring>
</property>
<property name="text">
<string>WPA 1</string>
</property>
</widget>
<spacer row="0" column="2">
<property name="name">
<cstring>spacer7</cstring>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<size>
<width>50</width>
<height>20</height>
</size>
</property>
</spacer>
</grid>
</widget>
</grid>
</widget>
<layoutdefaults spacing="6" margin="11"/>
</UI>

@ -0,0 +1,137 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>ConnectionSettingsDialog</class>
<widget class="TQDialog">
<property name="name">
<cstring>ConnectionSettingsDialog</cstring>
</property>
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>644</width>
<height>318</height>
</rect>
</property>
<property name="caption">
<string>Connections</string>
</property>
<grid>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="KPushButton" row="2" column="0">
<property name="name">
<cstring>pbBack</cstring>
</property>
<property name="text">
<string>Back</string>
</property>
</widget>
<widget class="TQLabel" row="0" column="0" rowspan="1" colspan="6">
<property name="name">
<cstring>lblInfo</cstring>
</property>
<property name="font">
<font>
<bold>1</bold>
</font>
</property>
<property name="text">
<string>New Connection</string>
</property>
</widget>
<widget class="TQWidgetStack" row="1" column="0" rowspan="1" colspan="6">
<property name="name">
<cstring>wstackSettings</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>7</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="frameShape">
<enum>TabWidgetPanel</enum>
</property>
<widget class="TQWidget">
<property name="name">
<cstring>WStackPage</cstring>
</property>
<attribute name="id">
<number>0</number>
</attribute>
</widget>
</widget>
<widget class="KPushButton" row="2" column="5">
<property name="name">
<cstring>pbCancel</cstring>
</property>
<property name="text">
<string>Cancel</string>
</property>
</widget>
<spacer row="2" column="1">
<property name="name">
<cstring>spacer2</cstring>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="tqsizeHint">
<size>
<width>180</width>
<height>20</height>
</size>
</property>
</spacer>
<widget class="KPushButton" row="2" column="2">
<property name="name">
<cstring>pbNext</cstring>
</property>
<property name="text">
<string>Next</string>
</property>
<property name="default">
<bool>true</bool>
</property>
</widget>
<widget class="TQPushButton" row="2" column="4">
<property name="name">
<cstring>pbSave</cstring>
</property>
<property name="text">
<string>Save</string>
</property>
</widget>
<widget class="KPushButton" row="2" column="3">
<property name="name">
<cstring>btnConnect</cstring>
</property>
<property name="text">
<string>Connect &amp;&amp; Save</string>
</property>
<property name="accel">
<string></string>
</property>
<property name="autoDefault">
<bool>true</bool>
</property>
<property name="default">
<bool>false</bool>
</property>
</widget>
</grid>
</widget>
<layoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kpushbutton.h</includehint>
<includehint>kpushbutton.h</includehint>
<includehint>kpushbutton.h</includehint>
<includehint>kpushbutton.h</includehint>
</includehints>
</UI>

@ -0,0 +1,88 @@
#################################################
#
# (C) 2010 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${TQT_INCLUDE_DIRS}
${DBUS_TQT_INCLUDE_DIRS}
)
##### knm_dbus (static) #########################
set( INTROSPECTIONPATH "${CMAKE_SOURCE_DIR}/knetworkmanager-0.8/introspection" )
# options:
# p - generate proxy files
# i - generate interface files
# n - generate node files
function( add_dbus_xml option basename classname namespace xmlfile )
if( classname )
set( classname -c ${classname} )
endif( )
add_custom_command( OUTPUT ${basename}.cpp ${basename}.h
COMMAND ${DBUSXML2QT3_EXECUTABLE} -${option} ${basename} ${classname} -N ${namespace} ${INTROSPECTIONPATH}/${xmlfile} 2>/dev/null
DEPENDS ${INTROSPECTIONPATH}/${xmlfile} )
endfunction( )
add_dbus_xml( p networkmanagerproxy NetworkManagerProxy DBus nm-manager.xml )
add_dbus_xml( p networkmanagervpnproxy NetworkManagerVPNProxy DBus nm-vpn-manager.xml )
add_dbus_xml( p deviceproxy DeviceProxy DBus nm-device.xml )
add_dbus_xml( p wirelessproxy WirelessDeviceProxy DBus nm-device-802-11-wireless.xml )
add_dbus_xml( p wiredproxy WiredDeviceProxy DBus nm-device-802-3-ethernet.xml )
add_dbus_xml( p gsmproxy GSMDeviceProxy DBus nm-device-gsm.xml )
add_dbus_xml( p cdmaproxy CDMADeviceProxy DBus nm-device-cdma.xml )
add_dbus_xml( p accesspointproxy AccessPointProxy DBus nm-access-point.xml )
add_dbus_xml( p activeconnectionproxy ActiveConnectionProxy DBus nm-active-connection.xml )
add_dbus_xml( p vpnconnectionproxy VPNConnectionProxy DBus nm-vpn-connection-only.xml )
add_dbus_xml( p vpnpluginproxy VPNPluginProxy DBus nm-vpn-plugin.xml )
add_dbus_xml( i networkmanagersettings SettingsInterface DBus nm-settings.xml )
add_dbus_xml( i connection "" DBus nm-exported-connection.xml )
add_custom_command( OUTPUT connectionnode.cpp connectionnode.h introspectableinterface.cpp introspectableinterface.h
COMMAND ${DBUSXML2QT3_EXECUTABLE} -n connectionnode -c ConnectionNode -N DBus ${INTROSPECTIONPATH}/nm-exported-connection.xml 2>/dev/null
COMMAND sed s/\#include\\ \\"secrets.h\\"// connectionnode.cpp > connectionnode.cpp_tmp
COMMAND sed s/\#include\\ \\"introspectable.h\\"/\#include\\ \\"introspectableinterface.h\\"/ connectionnode.cpp_tmp > connectionnode.cpp
COMMAND rm -f connectionnode.cpp_tmp
DEPENDS ${INTROSPECTIONPATH}/nm-exported-connection.xml )
# generate moc files
set( MOCHEADERS accesspointproxy.h deviceproxy.h networkmanagerproxy.h networkmanagervpnproxy.h wiredproxy.h
wirelessproxy.h activeconnectionproxy.h vpnconnectionproxy.h vpnpluginproxy.h gsmproxy.h cdmaproxy.h )
foreach( _header_file ${MOCHEADERS} )
get_filename_component( _basename "${_header_file}" NAME_WE )
set( _moc_file ${_basename}.moc )
list( APPEND _moc_files ${_moc_file} )
add_custom_command( OUTPUT ${_moc_file}
COMMAND ${TMOC_EXECUTABLE} ${_header_file} -o ${_moc_file}
DEPENDS ${_header_file} )
endforeach( )
add_custom_command( OUTPUT mocfiles.cpp
COMMAND cat ${_moc_files} > mocfiles.cpp
DEPENDS ${_moc_files} )
# build the library
tde_add_library( knm_dbus STATIC_PIC
SOURCES
networkmanagerproxy.cpp networkmanagervpnproxy.cpp
deviceproxy.cpp wiredproxy.cpp wirelessproxy.cpp
accesspointproxy.cpp networkmanagersettings.cpp
connection.cpp connectionnode.cpp introspectableinterface.cpp
mocfiles.cpp activeconnectionproxy.cpp vpnconnectionproxy.cpp
vpnpluginproxy.cpp gsmproxy.cpp cdmaproxy.cpp
)

@ -0,0 +1,129 @@
INCLUDES = $(DBUS_TQT_CFLAGS) $(QT_INCLUDES)
INTROSPECTIONPATH = $(srcdir)/../../introspection/
MOCHEADERS = accesspointproxy.h deviceproxy.h networkmanagerproxy.h networkmanagervpnproxy.h \
wiredproxy.h wirelessproxy.h activeconnectionproxy.h vpnconnectionproxy.h vpnpluginproxy.h gsmproxy.h cdmaproxy.h
#ip4configproxy.h
MOCSUBS = accesspointproxy.moc deviceproxy.moc networkmanagerproxy.moc networkmanagervpnproxy.moc \
wiredproxy.moc wirelessproxy.moc activeconnectionproxy.moc vpnconnectionproxy.moc vpnpluginproxy.moc gsmproxy.moc cdmaproxy.moc
#ip4configproxy.moc
DBUSPROXY = networkmanagerproxy.cpp \
networkmanagervpnproxy.cpp \
deviceproxy.cpp \
wiredproxy.cpp \
wirelessproxy.cpp \
accesspointproxy.cpp \
networkmanagersettings.cpp \
connection.cpp \
connectionnode.cpp \
introspectableinterface.cpp \
mocfiles.cpp \
activeconnectionproxy.cpp \
vpnconnectionproxy.cpp \
vpnpluginproxy.cpp \
gsmproxy.cpp \
cdmaproxy.cpp
# ip4configproxy.cpp
DBUSPROXYHEADERS = networkmanagerproxy.h \
networkmanagervpnproxy.h \
deviceproxy.h \
wiredproxy.h \
wirelessproxy.h \
accesspointproxy.h \
networkmanagersettings.h \
connection.h \
connectionnode.h \
introspectableinterface.h \
activeconnectionproxy.h \
vpnconnectionproxy.h \
vpnpluginproxy.h \
gsmproxy.h \
cdmaproxy.h
# ip4configproxy.h
noinst_HEADERS = accesspointproxy.h \
connection.h \
connectionnode.h \
deviceproxy.h \
introspectableinterface.h \
networkmanagerproxy.h \
networkmanagervpnproxy.h \
networkmanagersettings.h \
wiredproxy.h \
wirelessproxy.h \
activeconnectionproxy.h \
vpnconnectionproxy.h \
vpnpluginproxy.h \
gsmproxy.h \
cdmaproxy.h
#ip4configproxy.h
noinst_LTLIBRARIES = libknm_dbus.la
libknm_dbus_la_SOURCES = $(DBUSPROXY)
CLEANFILES = $(DBUSPROXY) $(DBUSPROXYHEADERS) $(MOCSUBS)
.h.moc:
$(TQTMOC) $< -o $@
mocfiles.cpp: $(MOCSUBS)
cat $(MOCSUBS) > mocfiles.cpp
networkmanagerproxy.cpp networkmanagerproxy.h:
$(DBUSXML2QT3) -p networkmanagerproxy -c NetworkManagerProxy -N DBus $(INTROSPECTIONPATH)nm-manager.xml
networkmanagervpnproxy.cpp networkmanagervpnproxy.h:
$(DBUSXML2QT3) -p networkmanagervpnproxy -c NetworkManagerVPNProxy -N DBus $(INTROSPECTIONPATH)nm-vpn-manager.xml
deviceproxy.cpp deviceproxy.h:
$(DBUSXML2QT3) -p deviceproxy -c DeviceProxy -N DBus $(INTROSPECTIONPATH)nm-device.xml
wirelessproxy.cpp wirelessproxy.h:
$(DBUSXML2QT3) -p wirelessproxy -c WirelessDeviceProxy -N DBus $(INTROSPECTIONPATH)nm-device-802-11-wireless.xml
wiredproxy.cpp wiredproxy.h:
$(DBUSXML2QT3) -p wiredproxy -c WiredDeviceProxy -N DBus $(INTROSPECTIONPATH)nm-device-802-3-ethernet.xml
gsmproxy.cpp gsmproxy.h:
$(DBUSXML2QT3) -p gsmproxy -c GSMDeviceProxy -N DBus $(INTROSPECTIONPATH)nm-device-gsm.xml
cdmaproxy.cpp cdmaproxy.h:
$(DBUSXML2QT3) -p cdmaproxy -c CDMADeviceProxy -N DBus $(INTROSPECTIONPATH)nm-device-cdma.xml
#ip4configproxy.cpp ip4configproxy.h:
# $(DBUSXML2QT3) -p ip4configproxy -c IP4ConfigProxy -N DBus $(INTROSPECTIONPATH)nm-ip4-config.xml
accesspointproxy.cpp accesspointproxy.h:
$(DBUSXML2QT3) -p accesspointproxy -c AccessPointProxy -N DBus $(INTROSPECTIONPATH)nm-access-point.xml
activeconnectionproxy.cpp activeconnectionproxy.h:
$(DBUSXML2QT3) -p activeconnectionproxy -c ActiveConnectionProxy -N DBus $(INTROSPECTIONPATH)nm-active-connection.xml
#vpnconnectionproxy.cpp vpnconnectionproxy.h:
# $(DBUSXML2QT3) -p vpnconnectionproxy -c VPNConnectionProxy -N DBus $(INTROSPECTIONPATH)nm-vpn-connection.xml
#vpnconnectionproxy.cpp vpnconnectionproxy.h:
# $(DBUSXML2QT3) -p vpnconnectionproxy -N DBus $(INTROSPECTIONPATH)nm-vpn-connection.xml
vpnconnectionproxy.cpp vpnconnectionproxy.h:
$(DBUSXML2QT3) -p vpnconnectionproxy -c VPNConnectionProxy -N DBus $(INTROSPECTIONPATH)nm-vpn-connection-only.xml
vpnpluginproxy.cpp vpnpluginproxy.h:
$(DBUSXML2QT3) -p vpnpluginproxy -c VPNPluginProxy -N DBus $(INTROSPECTIONPATH)nm-vpn-plugin.xml
networkmanagersettings.cpp networkmanagersettings.h:
$(DBUSXML2QT3) -i networkmanagersettings -c SettingsInterface -N DBus $(INTROSPECTIONPATH)nm-settings.xml
connection.cpp connection.h:
$(DBUSXML2QT3) -i connection -N DBus $(INTROSPECTIONPATH)nm-exported-connection.xml
connectionnode.cpp connectionnode.h introspectableinterface.cpp introspectableinterface.h:
$(DBUSXML2QT3) -n connectionnode -c ConnectionNode -N DBus $(INTROSPECTIONPATH)nm-exported-connection.xml
sed s/#include\ \"secrets.h\"// connectionnode.cpp > connectionnode.cpp_tmp
sed s/#include\ \"introspectable.h\"/#include\ \"introspectableinterface.h\"/ connectionnode.cpp_tmp > connectionnode.cpp
rm -f connectionnode.cpp_tmp

@ -0,0 +1,133 @@
/*
Copyright 2008 Will Stephenson <wstephenson@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of
the License or (at your option) version 3 or any later version
accepted by the membership of KDE e.V. (or its successor approved
by the membership of KDE e.V.), which shall act as a proxy
defined in Section 14 of version 3 of the license.
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, see <http://www.gnu.org/licenses/>.
*/
#include "devicetraycomponent.h"
#include <kiconloader.h>
#include <klocale.h>
#include <ksystemtray.h>
#include "knetworkmanager-device.h"
#include "knetworkmanager-nm_proxy.h"
DeviceTrayComponent::DeviceTrayComponent(Device * device, KSystemTray * parent, const char * name )
: TrayComponent(parent, name), m_device(device)
{
connect( m_device, TQT_SIGNAL(StateChanged(NMDeviceState)), TQT_SLOT(deviceStateChanged(NMDeviceState)));
m_pixmaps[NM_DEVICE_STATE_UNKNOWN] = "nm_no_connection";
m_pixmaps[NM_DEVICE_STATE_UNMANAGED] = "nm_no_connection";
m_pixmaps[NM_DEVICE_STATE_UNAVAILABLE] = "nm_no_connection";
m_pixmaps[NM_DEVICE_STATE_DISCONNECTED] = "nm_no_connection";
m_pixmaps[NM_DEVICE_STATE_ACTIVATED] = "ok";
m_pixmaps[NM_DEVICE_STATE_FAILED] = "nm_no_connection";
m_movies[NM_DEVICE_STATE_PREPARE] = "nm_stage01_connecting";
m_movies[NM_DEVICE_STATE_CONFIG] = "nm_stage02_connecting";
m_movies[NM_DEVICE_STATE_IP_CONFIG] = "nm_stage03_connecting";
m_movies[NM_DEVICE_STATE_NEED_AUTH] = m_movies[NM_DEVICE_STATE_CONFIG];
m_tooltips[NM_DEVICE_STATE_UNKNOWN] = i18n("Unknown");
m_tooltips[NM_DEVICE_STATE_UNAVAILABLE] = i18n("Down");
m_tooltips[NM_DEVICE_STATE_UNMANAGED] = i18n("Unmanaged");
m_tooltips[NM_DEVICE_STATE_DISCONNECTED] = i18n("Disconnected");
m_tooltips[NM_DEVICE_STATE_PREPARE] = i18n("Preparing");
m_tooltips[NM_DEVICE_STATE_CONFIG] = i18n("Configuration");
m_tooltips[NM_DEVICE_STATE_NEED_AUTH] = i18n("Awaiting authentication");
m_tooltips[NM_DEVICE_STATE_IP_CONFIG] = i18n("IP configuration");
m_tooltips[NM_DEVICE_STATE_ACTIVATED] = i18n("Activated");
m_tooltips[NM_DEVICE_STATE_FAILED] = i18n("Failed");
}
DeviceTrayComponent::~DeviceTrayComponent()
{
}
Device* DeviceTrayComponent::device() const
{
return m_device;
}
TQStringList DeviceTrayComponent::getToolTipText()
{
TQStringList list;
NMDeviceState state = m_device->getState();
if (m_tooltips.contains(state)) {
list.append(i18n("Device: %1").tqarg(m_device->getInterface()));
list.append(i18n("State: %1").tqarg(m_tooltips[state]));
}
return list;
}
TQPixmap DeviceTrayComponent::pixmapForState(NMDeviceState state)
{
if (m_pixmaps.contains(state)) {
return KSystemTray::loadIcon(m_pixmaps[state]);
} else {
return TQPixmap();
}
}
TQMovie DeviceTrayComponent::movieForState(NMDeviceState state)
{
if (m_movies.contains(state)) {
return TQMovie( KGlobal::iconLoader()->moviePath(m_movies[state], KIcon::Panel));
} else {
return TQMovie();
}
}
void DeviceTrayComponent::setMovieForState(NMDeviceState state, TQString movie)
{
m_movies[state] = movie;
}
void DeviceTrayComponent::setPixmapForState(NMDeviceState state, TQString pixmap)
{
m_pixmaps[state] = pixmap;
}
void DeviceTrayComponent::deviceStateChanged(NMDeviceState state)
{
//check if our device now holds the default active connection
// if it is the default active connection
// or if it is activating. what if 2 devices are activating simultaneously?
NMProxy * nm = 0;
switch (state) {
case NM_DEVICE_STATE_PREPARE:
emit needsCenterStage(this, true);
break;
case NM_DEVICE_STATE_ACTIVATED:
nm = NMProxy::getInstance();
if ( m_device == nm->getDefaultDevice() ) {
emit needsCenterStage(this, true);
}
break;
case NM_DEVICE_STATE_UNAVAILABLE:
case NM_DEVICE_STATE_DISCONNECTED:
case NM_DEVICE_STATE_FAILED:
emit needsCenterStage(this, false);
break;
default:
break;
}
}
#include "devicetraycomponent.moc"

@ -0,0 +1,63 @@
/*
Copyright 2008 Will Stephenson <wstephenson@kde.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of
the License or (at your option) version 3 or any later version
accepted by the membership of KDE e.V. (or its successor approved
by the membership of KDE e.V.), which shall act as a proxy
defined in Section 14 of version 3 of the license.
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, see <http://www.gnu.org/licenses/>.
*/
#ifndef DEVICE_TRAY_COMPONENT_H
#define DEVICE_TRAY_COMPONENT_H
#include <NetworkManager.h>
#include <tqmap.h>
#include <tqmovie.h>
#include <tqobject.h>
#include <tqpixmap.h>
#include "traycomponent.h"
class Device;
class KPopupMenu;
class KSystemTray;
class DeviceTrayComponent : public TrayComponent
{
Q_OBJECT
TQ_OBJECT
public:
DeviceTrayComponent(Device * device, KSystemTray * parent, const char * name );
virtual ~DeviceTrayComponent();
TQPixmap pixmapForState(NMDeviceState state);
TQMovie movieForState(NMDeviceState state);
virtual TQStringList getToolTipText();
Device* device() const;
signals:
void needsCenterStage(TrayComponent *, bool);
public slots:
virtual void newConnection() = 0;
protected slots:
void deviceStateChanged(NMDeviceState);
protected:
void setMovieForState(NMDeviceState, TQString);
void setPixmapForState(NMDeviceState, TQString);
private:
Device * m_device;
TQMap<NMDeviceState, TQString> m_movies;
TQMap<NMDeviceState, TQString> m_pixmaps;
TQMap<NMDeviceState, TQString> m_tooltips;
};
#endif // DEVICE_TRAY_COMPONENT_H

@ -0,0 +1,315 @@
[!Global!]
IconName=network
Comment=KNetworkManager
Comment[bn]=কে-নেটওয়ার্ক-ম্যানেজার
Comment[da]=Netværkshåndtering
Comment[sv]=Nätverkshantering
[knm-nm-vpn-banner]
Comment=VPN Banner Notification Received
default_presentation=0
[knm-nm-sleeping]
Name=KNetworkManager Offline
Name[bg]=KNetworkManager - изключен от Интернет
Name[bn]=কে-নেটওয়ার্ক-ম্যানেজার অফলাইন
Name[br]=Ezlinenn eo KNetworkManager
Name[ca]=El KNetworkManager està desconnectat
Name[cs]=KNetworkManager offline
Name[da]=Netværkshåndtering offline
Name[el]=Ο KNetworkManager χωρίς σύνδεση
Name[es]=KNetworkManager desconectado
Name[et]=KNetworkManager võrguta režiimis
Name[it]=KNetworkManager Non in linea
Name[ja]=KNetworkManager オフライン
Name[pt]=KNetworkManager Desligado
Name[sr]=KNetworkManager ван везе
Name[sr@Latn]=KNetworkManager van veze
Name[sv]=Nätverkshantering nerkopplad
Name[tr]=KNetworkManager Çevrimdışı
Comment=Switched to offline mode
Comment[bg]=Преминаване в режим "Изключен от Интернет"
Comment[bn]=অফলাইন মোড চালু করা হয়েছে
Comment[ca]=S'ha canviat al mode 'desconnectat'
Comment[cs]=Přepnutý do offline režimu
Comment[da]=Skiftede til offline tilstand
Comment[de]=In Offline-Modus gewechselt
Comment[el]=Άλλαξε σε λειτουργία χωρίς σύνδεση
Comment[es]=Se ha pasado al modo desconectado
Comment[et]=Lülituti võrguta režiimi
Comment[it]=Passato in modalità non in linea
Comment[ja]=オフラインモードに切り替わりました
Comment[nl]=Offline-modus geactiveerd
Comment[pt]=Mudou-se para o modo desligado
Comment[sr]=Пребачен у режим ван везе
Comment[sr@Latn]=Prebačen u režim van veze
Comment[sv]=Bytte till nerkopplat läge
Comment[tr]=Çevrimdışı kipe geçildi
default_presentation=0
[knm-nm-connected]
Name=KNetworkManager Connected
Name[bg]=KNetworkManager - свързан
Name[bn]=কে-নেটওয়ার্ক-ম্যানেজার সংযুক্ত
Name[br]=Kevreet eo KNetworkManager
Name[ca]=El KNetworkManager està connectat
Name[cs]=KNetworkManager připojen
Name[da]=Netværkshåndtering forbundet
Name[de]=KNetworkManager Verbunden
Name[el]=Ο KNetworkManager συνδέθηκε
Name[es]=KNetworkManager conectado
Name[et]=KNetworkManager ühendatud
Name[it]=KNetworkManager Connesso
Name[ja]=KNetworkManager 接続しました
Name[nl]=KNetworkManager Verbonden
Name[pt]=KNetworkManager Ligado
Name[sr]=KNetworkManager је повезан
Name[sr@Latn]=KNetworkManager je povezan
Name[sv]=Nätverkshantering ansluten
Name[tr]=KNetworkManager Bağlandı
Comment=NetworkManager is now connected
Comment[bg]=NetworkManager е свързан
Comment[bn]=এখন নেটওয়ার্ক-ম্যানেজার সংযুক্ত
Comment[ca]=Ara el NetworkManager està connectat
Comment[cs]=NetworkManager je nyní připojen
Comment[da]=Networkmanager er nu forbundet
Comment[de]=NetworkManager ist jetzt verbunden
Comment[el]=Ο NetworkManager είναι τώρα συνδεδεμένος
Comment[es]=NetworkManager está ahora conectado
Comment[et]=Võrguhaldur on nüüd ühendatud
Comment[it]=NetworkManager è ora connesso
Comment[ja]=NetworkManager は接続しました
Comment[nl]=NetworkManager is nu verbonden
Comment[pt]=O NetworkManager está agora ligado
Comment[sr]=NetworkManager је сада повезан
Comment[sr@Latn]=NetworkManager je sada povezan
Comment[sv]=Networkmanager är nu ansluten
Comment[tr]=NetworkManager şimdi bağlı
default_presentation=0
[knm-nm-connecting]
Name=KNetworkManager Connecting
Name[bg]=KNetworkManager се свързва
Name[bn]=কে-নেটওয়ার্ক-ম্যানেজার সংযোগ স্থাপন করছে
Name[ca]=El KNetworkManager s'està connectant
Name[da]=Netværkshåndtering forbinder
Name[de]=KNetworkManager Verbinden
Name[el]=Ο KNetworkManager συνδέεται
Name[es]=KNetworkManager conectando
Name[et]=KNetworkManager ühendub
Name[it]=KNetworkManager Connessione in corso
Name[ja]=KNetworkManager 接続中
Name[nl]=KNetworkManager Verbinden
Name[pt]=KNetworkManager a Ligar
Name[sr]=KNetworkManager се повезује
Name[sr@Latn]=KNetworkManager se povezuje
Name[sv]=Nätverkshantering kopplar upp
Name[tr]=KNetworkManager Bağlanıyor
Comment=NetworkManager is connecting
Comment[bg]=NetworkManager се свързва
Comment[bn]=নেটওয়ার্ক-ম্যানেজার সংযোগ স্থাপন করছে
Comment[ca]=El NetworkManager s'està connectant
Comment[da]=Networkmanager forbinder
Comment[de]=NetworkManager stellt eine Verbindung her
Comment[el]=Ο KNetworkManager συνδέεται
Comment[es]=NetworkManager se está conectando
Comment[et]=Võrguhaldur ühendub
Comment[it]=NetworkManager si sta connettendo
Comment[ja]=NetworkManager は接続中です
Comment[nl]=NetworkManager is bezig met verbinden
Comment[pt]=O NetworkManager está a estabelecer a ligação
Comment[sr]=NetworkManager се повезује
Comment[sr@Latn]=NetworkManager se povezuje
Comment[sv]=Networkmanager kopplar upp
Comment[tr]=NetworkManager bağlanıyor
default_presentation=0
[knm-nm-disconnected]
Name=KNetworkManager Disconnected
Name[bg]=KNetworkManager - изключен от Интернет
Name[bn]=কে-নেটওয়ার্ক-ম্যানেজার সংযোগ বিহীন
Name[br]=Digevreet eo KNetworkManager
Name[ca]=El KNetworkManager està desconnectat
Name[da]=Netværkshåndtering afbrudt
Name[de]=KNetworkManager Getrennt
Name[el]=Ο KNetworkManager αποσυνδέθηκε
Name[es]=KNetworkManager desconectado
Name[et]=KNetworkManager lahutatud
Name[it]=KNetworkManager Disconnesso
Name[ja]=KNetworkManager 切断しました
Name[nl]=KNetworkManager Niet verbonden
Name[pt]=KNetworkManager Desligado
Name[sr]=KNetworkManager је развезан
Name[sr@Latn]=KNetworkManager je razvezan
Name[sv]=Nätverkshantering nerkopplad
Name[tr]=KNetworkManager Bağlı Değil
Comment=NetworkManager is now disconnected
Comment[bg]=NetworkManager е изключен от Интернет
Comment[bn]=এখন নেটওয়ার্ক-ম্যানেজার সংযোগ বিহীন
Comment[ca]=Ara el NetworkManager està desconnectat
Comment[da]=Networkmanager er nu afbrudt
Comment[de]=NetworkManager ist jetzt getrennt
Comment[el]=Ο NetworkManager είναι τώρα αποσυνδεδεμένος
Comment[es]=NetworkManager está ahora desconectado
Comment[et]=Võrguhaldur on nüüd lahutatud
Comment[it]=NetworkManager è ora disconnesso
Comment[ja]=NetworkManager は切断しました
Comment[nl]=NetworkManager is niet verbonden met het netwerk
Comment[pt]=O NetworkManager está agora desligado
Comment[sr]=NetworkManager је сада развезан
Comment[sr@Latn]=NetworkManager je sada razvezan
Comment[sv]=Networkmanager är nu nerkopplad
Comment[tr]=NetworkManager artık bağlı değil
default_presentation=0
[knm-nm-device-added]
Name=KNetworkManager Device Added
Name[bg]=KNetworkManager - добавено е устройство
Name[bn]=কে-নেটওয়ার্ক-ম্যানেজার ডিভাইস যোগ করা হয়েছে
Name[ca]=S'ha afegit un dispositiu del KNetworkManager
Name[da]=Netværkshåndtering enhed tilføjet
Name[de]=KNetworkManager Gerät hinzugefügt
Name[el]=Προστέθηκε συσκευή στον KNetworkManager
Name[es]=Añadido dispositivo a KNetworkManager
Name[et]=KNetworkManager lisas seadme
Name[it]=KNetworkManager Dispositivo aggiunto
Name[ja]=KNetworkManager デバイスが追加されました
Name[nl]=KNetworkManager Apparaat toegevoegd
Name[pt]=KNetworkManager com Dispositivo Adicionado
Name[sr]=KNetworkManager уређај додат
Name[sr@Latn]=KNetworkManager uređaj dodat
Name[sv]=Nätverkshantering enhet tillagd
Name[tr]=KNetworkManager Aygıt Eklendi
Comment=New network device found
Comment[bg]=Открито е ново мрежово устройство
Comment[bn]=নতুন নেটওয়ার্ক ডিভাইস খুঁজে পেয়েছে
Comment[br]=Kavet eo an drobarzhell rouedad nevez
Comment[ca]=S'ha trobat un nou dispositiu de xarxa
Comment[da]=Ny netværksenhed fundet
Comment[de]=Neues Netzwerkgerät gefunden
Comment[el]=Βρέθηκε νέα συσκευή δικτύου
Comment[es]=Se ha encontrado un nuevo dispositivo de red
Comment[et]=Leiti uus võrguseade
Comment[it]=Trovato nuovo dispositivo di rete
Comment[ja]=新しいネットワークデバイスが見つかりました
Comment[nl]=Nieuw netwerkapparaat gevonden
Comment[pt]=Foi detectado um novo dispositivo de rede
Comment[sr]=Нађен је нови мрежни уређај
Comment[sr@Latn]=Nađen je novi mrežni uređaj
Comment[sv]=Ny nätverksenhet hittades
Comment[tr]=Yeni ağ aygıtı bulundu
default_presentation=0
[knm-nm-device-removed]
Name=KNetworkManager Device Removed
Name[bg]=KNetworkManager - устройството е премахнато
Name[bn]=কে-নেটওয়ার্ক-ম্যানেজার ডিভাইস অপসারিত করা হয়েছে
Name[ca]=S'ha eliminat un dispositiu del KNetworkManager
Name[da]=Netværkshåndtering enhed fjernet
Name[de]=KNetworkManager Gerät entfernt
Name[el]=Αφαιρέθηκε συσκευή από τον KNetworkManager
Name[es]=Eliminado dispositivo de KNetworkManager
Name[et]=KNetworkManager eemaldas seadme
Name[it]=KNetworkManager Dispositivo rimosso
Name[ja]=KNetworkManager デバイスが削除されました
Name[nl]=KNetworkManager Apparaat verwijderd
Name[pt]=KNetworkManager com Dispositivo Removido
Name[sr]=KNetworkManager уређај уклоњен
Name[sr@Latn]=KNetworkManager uređaj uklonjen
Name[sv]=Nätverkshantering enhet borttagen
Name[tr]=KNetworkManager Aygıt Kaldırıldı
Comment=Network device removed
Comment[bg]=Мрежовото устройство е премахнато
Comment[bn]=নেটওয়ার্ক ডিভাইস অপসারিত করা হয়েছে
Comment[br]=Lemet eo an drobarzhell rouedad
Comment[ca]=S'ha eliminat un dispositiu de xarxa
Comment[da]=Netværksenhed fjernet
Comment[de]=Netzwerkgerät entfernt
Comment[el]=Μια συσκευή δικτύου αφαιρέθηκε
Comment[es]=Se ha eliminado un dispositivo de red
Comment[et]=Võrguseade eemaldatud
Comment[it]=Dispositivo di rete rimosso
Comment[ja]=ネットワークデバイスが削除されました
Comment[nl]=Netwerkapparaat verwijderd
Comment[pt]=O dispositivo de rede foi removido
Comment[sr]=Мрежни уређај је уклоњен
Comment[sr@Latn]=Mrežni uređaj je uklonjen
Comment[sv]=Nätverksenhet borttagen
Comment[tr]=Ağ aygıtı kaldırıldı
default_presentation=0
[knm-nm-network-found]
Name=KNetworkManager New Wireless Network Found
Name[bg]=KNetworkManager - намерена е нова безжична мрежа
Name[bn]=কে-নেটওয়ার্ক-ম্যানেজার নতুন ওয়্যারলেস নেটওয়ার্ক খুঁজে পেয়েছে
Name[ca]=S'ha trobat una nova xarxa sense fils del KNetworkManager
Name[da]=Netværkshåndtering fandt nyt trådløst netværk
Name[de]=KNetworkManager Neues drahtloses Netzwerk gefunden
Name[el]=Βρέθηκε νέο ασύρματο δίκτυο στον KNetworkManager
Name[es]=Encontrada nueva red inalámbrica en KNetworkManager
Name[et]=KNetworkManager leidis uue traadita võrgu
Name[it]=KNetworkManager Trovata nuova rete senza fili
Name[ja]=KNetworkManager ワイヤレスネットワークを検出
Name[nl]=KNetworkManager Nieuw draadloos netwerk gevonden
Name[pt]=KNetworkManager com Nova Rede Sem-Fios Encontrada
Name[sr]=KNetworkManager нова бежична мрежа је нађена
Name[sr@Latn]=KNetworkManager nova bežična mreža je nađena
Name[sv]=Nätverkshantering ny trådlös enhet hittades
Name[tr]=KNetworkManager Yeni Kablosuz Ağ Bulundu
Comment=New wireless network found
Comment[bg]=Намерена е нова безжична мрежа
Comment[bn]=নতুন ওয়্যারলেস নেটওয়ার্ক খুঁজে পেয়েছে
Comment[ca]=S'ha trobat una nova xarxa sense fils
Comment[da]=Nyt trådløst netværk fundet
Comment[de]=Neues drahtloses Netzwerk gefunden
Comment[el]=Βρέθηκε νέο ασύρματο δίκτυο
Comment[es]=Se ha encontrado una nueva red inalámbrica
Comment[et]=Leiti uus traadita võrk
Comment[it]=Trovata nuova rete senza fili
Comment[ja]=新しいワイヤレスネットワークが見つかりました
Comment[nl]=Nieuw draadloos netwerk gevonden
Comment[pt]=Foi encontrada uma nova rede sem-fios
Comment[sr]=Нова бежична мрежа је нађена
Comment[sr@Latn]=Nova bežična mreža je nađena
Comment[sv]=Nytt trådlöst nätverk hittades
Comment[tr]=Yeni kablosuz ağ bulundu
default_presentation=0
[knm-nm-network-gone]
Name=KNetworkManager Wireless Network Disappeared
Name[bg]=KNetworkManager - безжичната мрежа се изгуби
Name[bn]=কে-নেটওয়ার্ক-ম্যানেজার ওয়্যারলেস নেটওয়ার্ক অন্তর্ধান করেছে
Name[ca]=Ha desaparegut la xarxa sense fils del KNetworkManager
Name[da]=Netværkshåndtering trådløst netværk forsvandt
Name[de]=KNetworkManager Drahtloses Netzwerk nicht mehr vorhanden
Name[el]=Ένα ασύρματο δίκτυο αφαιρέθηκε από τον KNetworkManager
Name[es]=Desaparecida red inalámbrica en KNetworkManager
Name[et]=KNetworkManager kaotas traadita võrgu
Name[it]=KNetworkManager È scomparsa la rete senza fili
Name[ja]=KNetworkManager ワイヤレスネットワークが消失
Name[nl]=KNetworkManager Draadloos netwerk verdwenen
Name[pt]=KNetworkManager Rede Sem-Fios Desaparecida
Name[sr]=KNetworkManager бежична мрежа је нестала
Name[sr@Latn]=KNetworkManager bežična mreža je nestala
Name[sv]=Nätverkshantering trådlöst nätverk försvann
Name[tr]=KNetworkManager Kablosuz Ağ Yok Oldu
Comment=Wireless network disappeared
Comment[bg]=Безжичната мрежа се изгуби
Comment[bn]=ওয়্যারলেস নেটওয়ার্ক অন্তর্ধান করেছে
Comment[ca]=Ha desaparegut la xarxa sense fils
Comment[da]=Trådløst netværk forsvandt
Comment[de]=Drahtloses Netzwerk nicht mehr vorhanden
Comment[el]=Ένα ασύρματο δίκτυο αφαιρέθηκε
Comment[es]=Ha desaparecido una red inalámbrica
Comment[et]=Traadita võrk kadus
Comment[it]=La rete senza fili è scomparsa
Comment[ja]=ワイヤレスネットワークが消失しました
Comment[nl]=Draadloos netwerk is verdwenen
Comment[pt]=Desapareceu uma rede sem-fios
Comment[sr]=Бежична мрежа је нестала
Comment[sr@Latn]=Bežična mreža je nestala
Comment[sv]=Trådlöst nätverk försvann
Comment[tr]=Kablosuz ağ kaybedildi
default_presentation=0

@ -0,0 +1,222 @@
/***************************************************************************
*
* knetworkmanager-accesspoint.cpp - A NetworkManager frontend for KDE
*
* Copyright (C) 2005, 2006 Novell, Inc.
*
* Author: Helmut Schaa <hschaa@suse.de>, <Helmut.Schaa@gmx.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.
*
* 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
*
**************************************************************************/
// TQt
#include <tqguardedptr.h>
// TQT_DBus includes
#include <tqdbuserror.h>
#include <tqdbusconnection.h>
#include <tqdbuserror.h>
// NM includes
#include <NetworkManager.h>
// KNM includes
#include "knetworkmanager.h"
#include "knetworkmanager-accesspoint.h"
#include "dbus/accesspointproxy.h"
class AccessPointPrivate
{
public:
AccessPointPrivate(TQString objpath = TQString(), const DBus::AccessPointProxy* proxy = NULL)
: nmAccessPoint(proxy)
, objPath(objpath)
{
}
~AccessPointPrivate() { }
// pointer to the shared DBus proxy
TQGuardedPtr<const DBus::AccessPointProxy> nmAccessPoint;
// DBus object path
TQString objPath;
// Properties
TQ_UINT32 flags;
TQ_UINT32 wpaFlags;
TQ_UINT32 rsnFlags;
TQValueList<TQ_UINT8> ssid;
TQ_UINT32 freq;
TQString hwAddress;
TQ_INT32 mode;
TQ_UINT32 rate;
TQ_UINT8 strength;
};
TQ_UINT32 AccessPoint::getFlags() const
{
return d->flags;
}
TQ_UINT32 AccessPoint::getWpaFlags() const
{
return d->wpaFlags;
}
TQ_UINT32 AccessPoint::getRsnFlags() const
{
return d->rsnFlags;
}
TQValueList<TQ_UINT8> AccessPoint::getSsid() const
{
return d->ssid;
}
TQ_UINT32 AccessPoint::getFrequency() const
{
return d->freq;
}
TQString AccessPoint::getHwAddress() const
{
return d->hwAddress;
}
TQ_INT32 AccessPoint::getMode() const
{
return d->mode;
}
TQ_UINT32 AccessPoint::getRate() const
{
return d->rate;
}
TQ_UINT8 AccessPoint::getStrength() const
{
return d->strength;
}
const TQByteArray AccessPoint::getSsidByteArray() const
{
// FIXME: Wow, thats ugly
TQValueList<TQ_UINT8> ssid = d->ssid;
TQByteArray ret_ssid(ssid.count());
TQByteArray::Iterator byteit = ret_ssid.begin();
for (TQValueList<TQ_UINT8>::iterator it = ssid.begin(); it != ssid.end(); ++it)
{
(*byteit) = (*it);
++byteit;
}
return ret_ssid;
}
TQString AccessPoint::getDisplaySsid() const
{
return TQString(getSsidByteArray());
}
bool AccessPoint::isEncrypted() const
{
return (getFlags() && NM_802_11_AP_FLAGS_PRIVACY);
}
void AccessPoint::slotPropertiesChanged(const TQMap<TQString, TQT_DBusVariant>& properties)
{
updateProperties();
}
void AccessPoint::updateProperties()
{
//TODO do this proper-like
TQT_DBusError err;
if (d->nmAccessPoint.isNull())
return;
d->flags = d->nmAccessPoint->getFlags(err);
d->wpaFlags = d->nmAccessPoint->getWpaFlags(err);
d->rsnFlags = d->nmAccessPoint->getRsnFlags(err);
d->ssid = d->nmAccessPoint->getSsid(err);
d->freq = d->nmAccessPoint->getFrequency(err);
d->hwAddress = d->nmAccessPoint->getHwAddress(err);
d->mode = d->nmAccessPoint->getMode(err);
d->rate = d->nmAccessPoint->getMaxBitrate(err);
d->strength = d->nmAccessPoint->getStrength(err);
emit strengthChanged(d->strength);
}
TQString AccessPoint::getObjectPath() const
{
return d->objPath;
}
bool AccessPoint::isValid() const
{
return !(d->objPath.isEmpty());
}
bool AccessPoint::operator== (const AccessPoint& other) const
{
return (other.getObjectPath() == getObjectPath());
}
#if 0
AccessPoint& AccessPoint::operator= (const AccessPoint& other)
{
kdDebug() << "AccessPoint::operator=\n" << endl;
d->objPath = other.d->objPath;
d->nmAccessPoint = other.d->nmAccessPoint;
connect(d->nmAccessPoint, TQT_SIGNAL(PropertiesChanged(const TQMap<TQString, TQT_DBusVariant>&)), this, TQT_SLOT(slotPropertiesChanged(const TQMap<TQString, TQT_DBusVariant>&)));
updateProperties();
return *this;
}
#endif
AccessPoint::AccessPoint(TQString obj_path, TQObject * parent, const char * name)
: TQObject(parent, name)
{
DBus::AccessPointProxy * proxy = new DBus::AccessPointProxy(NM_DBUS_SERVICE, obj_path);
proxy->setConnection(TQT_DBusConnection::systemBus());
d = new AccessPointPrivate(obj_path, proxy);
if (!d->nmAccessPoint.isNull())
connect(d->nmAccessPoint, TQT_SIGNAL(PropertiesChanged(const TQMap<TQString, TQT_DBusVariant>&)), this, TQT_SLOT(slotPropertiesChanged(const TQMap<TQString, TQT_DBusVariant>&)));
updateProperties();
}
#if 0
// copy constructor
AccessPoint::AccessPoint(const AccessPoint& other)
: TQObject()
{
// just copy the private data from other
d = new AccessPointPrivate(*other.d);
if (!d->nmAccessPoint.isNull())
connect(d->nmAccessPoint, TQT_SIGNAL(PropertiesChanged(const TQMap<TQString, TQT_DBusVariant>&)), this, TQT_SLOT(slotPropertiesChanged(const TQMap<TQString, TQT_DBusVariant>&)));
updateProperties();
}
#endif
AccessPoint::~AccessPoint()
{
delete d->nmAccessPoint;
delete d;
}
#include "knetworkmanager-accesspoint.moc"

@ -0,0 +1,75 @@
/***************************************************************************
*
* knetworkmanager-device.h - A NetworkManager frontend for KDE
*
* Copyright (C) 2005, 2006 Novell, Inc.
*
* Author: Timo Hoenig <thoenig@suse.de>, <thoenig@nouse.net>
* Will Stephenson <wstephenson@suse.de>, <wstephenson@kde.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
**************************************************************************/
#ifndef KNETWORKMANAGER_ACCESSPOINT_H
#define KNETWORKMANAGER_ACCESSPOINT_H
#include "knetworkmanager.h"
#include <tqdbusvariant.h>
class AccessPointPrivate;
namespace DBus
{
class AccessPointProxy;
};
class AccessPoint : public TQObject
{
Q_OBJECT
TQ_OBJECT
public:
AccessPoint (const AccessPoint&);
AccessPoint (TQString objpath = TQString(), TQObject * parent = 0, const char * name = 0);
~AccessPoint ();
AccessPoint& operator= (const AccessPoint& other);
bool operator== (const AccessPoint& other) const;
TQ_UINT32 getFlags() const;
TQ_UINT32 getWpaFlags() const;
TQ_UINT32 getRsnFlags() const;
TQValueList<TQ_UINT8> getSsid() const;
TQ_UINT32 getFrequency() const;
TQString getHwAddress() const;
TQ_INT32 getMode() const;
TQ_UINT32 getRate() const;
TQ_UINT8 getStrength() const;
TQString getDisplaySsid() const;
const TQByteArray getSsidByteArray() const;
bool isEncrypted() const;
TQString getObjectPath() const;
bool isValid() const;
signals:
void strengthChanged(TQ_UINT8);
private slots:
void slotPropertiesChanged(const TQMap<TQString, TQT_DBusVariant>& properties);
void updateProperties();
private:
AccessPointPrivate * d;
};
#endif /* KNETWORKMANAGER_DEVICE_H */

@ -0,0 +1,61 @@
/***************************************************************************
*
* knetworkmanager-cdma_connection.h - A NetworkManager frontend for KDE
*
* Copyright (C) 2008 Novell, Inc.
*
* Author: Will Stephenson <wstephenson@kde.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
**************************************************************************/
#include "knetworkmanager-cdma_connection.h"
#include <nm-setting-cdma.h>
#include "knetworkmanager-connection_setting_serial.h"
ConnectionSettings::CDMAConnection::CDMAConnection()
: PPPConnection(NM_SETTING_CDMA_SETTING_NAME)
{
appendSetting(new CDMA(this));
appendSetting(new Serial(this));
}
ConnectionSettings::CDMAConnection::~CDMAConnection()
{
}
ConnectionSettings::CDMA* ConnectionSettings::CDMAConnection::getCDMASetting() const
{
return dynamic_cast<CDMA*>(getSetting(NM_SETTING_CDMA_SETTING_NAME));
}
ConnectionSettings::Serial* ConnectionSettings::CDMAConnection::getSerialSetting() const
{
return dynamic_cast<Serial*>(getSetting(NM_SETTING_SERIAL_SETTING_NAME));
}
ConnectionSettings::Connection* ConnectionSettings::CDMAConnection::duplicate()
{
CDMAConnection* conn = new CDMAConnection();
conn->updateSettings(this);
return conn;
}
#include "knetworkmanager-cdma_connection.moc"
// vim: sw=4 sts=4 noet tw=100

@ -0,0 +1,50 @@
/***************************************************************************
*
* knetworkmanager-cdma_connection.h - A NetworkManager frontend for KDE
*
* Copyright (C) 2008 Novell, Inc.
*
* Author: Will Stephenson <wstephenson@kde.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
**************************************************************************/
#ifndef KNETWORKMANAGER_CDMA_CONNECTION_H
#define KNETWORKMANAGER_CDMA_CONNECTION_H
#include "knetworkmanager-ppp_connection.h"
#include "knetworkmanager-connection_setting_cdma.h"
namespace ConnectionSettings
{
class CDMA;
class Serial;
class CDMAConnection : public PPPConnection
{
Q_OBJECT
TQ_OBJECT
public:
CDMAConnection();
~CDMAConnection();
CDMA* getCDMASetting() const;
Serial* getSerialSetting() const;
Connection* duplicate();
};
} // namespace ConnectionSettings
#endif

@ -0,0 +1,67 @@
/***************************************************************************
*
* knetworkmanager-cdma_device.cpp - A NetworkManager frontend for KDE
*
* Copyright (C) 2005, 2006 Novell, Inc.
*
* Author: Helmut Schaa <hschaa@suse.de>, <Helmut.Schaa@gmx.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.
*
* 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
*
**************************************************************************/
// KDE includes
#include <kdebug.h>
// TQt includes
#include <tqhostaddress.h>
// TQT_DBus includes
#include <tqdbuserror.h>
#include <tqdbusconnection.h>
// NM includes
#include <NetworkManager.h>
// KNM includes
#include "knetworkmanager.h"
#include "knetworkmanager-cdma_device.h"
#include "dbus/cdmaproxy.h"
class CDMADevicePrivate
{
public:
CDMADevicePrivate(TQString service, TQString obj_path)
: nmCDMA(service, obj_path)
{}
~CDMADevicePrivate() {}
DBus::CDMADeviceProxy nmCDMA;
};
CDMADevice::CDMADevice (const TQString & obj_path)
: CellularDevice(obj_path)
{
d = new CDMADevicePrivate(NM_DBUS_SERVICE, obj_path);
d->nmCDMA.setConnection(TQT_DBusConnection::systemBus());
}
CDMADevice::~CDMADevice ()
{
delete d;
}
#include "knetworkmanager-cdma_device.moc"

@ -0,0 +1,51 @@
/***************************************************************************
*
* knetworkmanager-cdma_device.h - A NetworkManager frontend for KDE
*
* Copyright (C) 2005, 2006 Novell, Inc.
*
* Author: Helmut Schaa <hschaa@suse.de>, <Helmut.Schaa@gmx.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.
*
* 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 KNETWORKMANAGER_CDMADEVICE_H
#define KNETWORKMANAGER_CDMADEVICE_H
// std includes
#include <stdint.h>
// KNM includes
#include "knetworkmanager.h"
#include "knetworkmanager-cellular_device.h"
class KNetworkManager;
class CDMADevicePrivate;
class CDMADevice : public CellularDevice
{
Q_OBJECT
TQ_OBJECT
public:
CDMADevice (const TQString & obj_path );
~CDMADevice ();
private:
CDMADevicePrivate * d;
};
#endif /* KNETWORKMANAGER_CDMADEVICE_H */

@ -0,0 +1,37 @@
/***************************************************************************
*
* knetworkmanager-cellular_device.cpp - A NetworkManager frontend for KDE
*
* Copyright (C) 2008 Novell, Inc.
*
* Author: Will Stephenson <wstephenson@kde.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
**************************************************************************/
// KNM includes
#include "knetworkmanager-cellular_device.h"
CellularDevice::CellularDevice (const TQString & obj_path)
: Device(obj_path)
{
}
CellularDevice::~CellularDevice()
{
}
#include "knetworkmanager-cellular_device.moc"

@ -0,0 +1,40 @@
/***************************************************************************
*
* knetworkmanager-cellular_device.h - A NetworkManager frontend for KDE
*
* Copyright (C) 2008 Novell, Inc.
*
* Author: Will Stephenson <wstephenson@kde.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
**************************************************************************/
#ifndef KNETWORKMANAGER_CELLULARDEVICE_H
#define KNETWORKMANAGER_CELLULARDEVICE_H
// KNM includes
#include "knetworkmanager-device.h"
class CellularDevice : public Device
{
Q_OBJECT
TQ_OBJECT
public:
CellularDevice (const TQString & obj_path );
~CellularDevice ();
};
#endif /* KNETWORKMANAGER_CELLULARDEVICE_H */

@ -0,0 +1,184 @@
/***************************************************************************
*
* knetworkmanager-cellular_device_tray.cpp - A NetworkManager frontend for KDE
*
* Copyright (C) 2005, 2006 Novell, Inc.
*
* Author: Helmut Schaa <hschaa@suse.de>, <helmut.schaa@gmx.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.
*
* 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
*
**************************************************************************/
/// TQt includes
#include <tqwidget.h> // for TQt::WidgetFlags
// KDE includes
#include <kdebug.h>
#include <klocale.h>
#include <kiconloader.h>
// TQt DBus
#include <tqdbusobjectpath.h>
// KNM includes
#include "knetworkmanager-cellular_device_tray.h"
#include "knetworkmanager-cellular_device.h"
#include "knetworkmanager-menuitem.h"
#include "knetworkmanager-menu_subhead.h"
#include "knetworkmanager-connection_store.h"
#include "knetworkmanager-cdma_connection.h"
#include "knetworkmanager-gsm_connection.h"
#include "knetworkmanager-nm_proxy.h"
#include "knetworkmanager-connection_setting_info.h"
#include "knetworkmanager-connection_setting_ipv4.h"
#include "knetworkmanager-connection_setting_cdma.h"
#include "knetworkmanager-connection_setting_gsm.h"
#include "knetworkmanager-connection_settings_dialog.h"
#if !defined(NM_CHECK_VERSION)
#define NM_CHECK_VERSION(x,y,z) 0
#endif
using namespace ConnectionSettings;
class CellularDeviceTrayPrivate
{
public:
CellularDeviceTrayPrivate() {}
~CellularDeviceTrayPrivate() {}
CellularDevice* dev;
};
void CellularDeviceTray::newConnection()
{
// create an appropriate connection
Connection* conn = 0;
switch (d->dev->getDeviceType()) {
#if NM_CHECK_VERSION(0,8,992)
case NM_DEVICE_TYPE_MODEM:
#else
case DEVICE_TYPE_GSM:
#endif
conn = new GSMConnection();
break;
#if NM_CHECK_VERSION(0,8,992)
#else
case DEVICE_TYPE_CDMA:
conn = new CDMAConnection();
break;
#endif
default:
break;
}
// edit the new connection
ConnectionSettingsDialogImpl* dlg = new ConnectionSettingsDialogImpl(conn, true, NULL, tray(), "connect_something", false, TQt::WDestructiveClose);
dlg->show();
}
void CellularDeviceTray::addMenuItems(KPopupMenu* menu)
{
ConnectionStore* connectionStore = ConnectionStore::getInstance();
// device title
Subhead* subhead = new Subhead (menu, "subhead", d->dev->getInterface(), SmallIcon("nm_device_wwan", TQIconSet::Automatic));
menu->insertItem (subhead, -1, -1);
//menu->insertSeparator();
NMProxy* nm = NMProxy::getInstance();
Connection* active_conn = nm->getActiveConnection(d->dev);
if (active_conn)
kdDebug() << active_conn->getObjectPath().data() << endl;
// get all available Connections for cellular devices
// WILLTODO : repeat for GSM
TQValueList<Connection*> connections = connectionStore->getConnections(NM_SETTING_CDMA_SETTING_NAME);
for (TQValueList<Connection*>::iterator it = connections.begin(); it != connections.end(); ++it)
{
CDMAConnection* cellularconn = dynamic_cast<CDMAConnection*>(*it);
if (cellularconn)
{
// cellular connection found :)
Info* info = cellularconn->getInfoSetting();
IPv4* ip = cellularconn->getIPv4Setting();
// lets create a nice name for this connection
if (info)
{
TQString title = info->getName();
if (ip)
title += TQString(" (%1)").tqarg(ip->getMethod() == IPv4::METHOD_DHCP ? i18n("DHCP") : i18n("Manual IP config"));
NetworkMenuItem* item = new NetworkMenuItem(d->dev, cellularconn, TQT_TQOBJECT(menu));
int id = menu->insertItem(title, item, TQT_SLOT(slotActivate()));
menu->setItemChecked(id, ((*it) == active_conn));
}
}
}
connections = connectionStore->getConnections(NM_SETTING_GSM_SETTING_NAME);
for (TQValueList<Connection*>::iterator it = connections.begin(); it != connections.end(); ++it)
{
GSMConnection* cellularconn = dynamic_cast<GSMConnection*>(*it);
if (cellularconn)
{
// cellular connection found :)
Info* info = cellularconn->getInfoSetting();
IPv4* ip = cellularconn->getIPv4Setting();
// lets create a nice name for this connection
if (info)
{
TQString title = info->getName();
if (ip)
title += TQString(" (%1)").tqarg(ip->getMethod() == IPv4::METHOD_DHCP ? i18n("DHCP") : i18n("Manual IP config"));
NetworkMenuItem* item = new NetworkMenuItem(d->dev, cellularconn, TQT_TQOBJECT(menu));
int id = menu->insertItem(title, item, TQT_SLOT(slotActivate()));
menu->setItemChecked(id, ((*it) == active_conn));
}
}
}
// bring the device down
KAction* deactivate = tray()->actionCollection()->action("deactivate_device");
if (deactivate)
deactivate->plug(menu);
menu->insertSeparator();
}
CellularDeviceTray::CellularDeviceTray (CellularDevice* dev, KSystemTray * parent, const char * name)
: DeviceTrayComponent (dev, parent, name)
{
d = new CellularDeviceTrayPrivate();
d->dev = dev;
setPixmapForState(NM_DEVICE_STATE_ACTIVATED, "nm_device_wwan");
}
CellularDeviceTray::~CellularDeviceTray ()
{
delete d;
}
#include "knetworkmanager-cellular_device_tray.moc"

@ -0,0 +1,55 @@
/***************************************************************************
*
* knetworkmanager.h - A NetworkManager frontend for KDE
*
* Copyright (C) 2005, 2006 Novell, Inc.
*
* Author: Timo Hoenig <thoenig@suse.de>, <thoenig@nouse.net>
* Will Stephenson <wstephenson@suse.de>, <wstephenson@kde.org>
* Helmut Schaa <hschaa@suse.de>, <helmut.schaa@gmx.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.
*
* 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 KNETWORKMANAGER_CELLULAR_DEVICE_TRAY_H
#define KNETWORKMANAGER_CELLULAR_DEVICE_TRAY_H
// KNM includes
#include "knetworkmanager.h"
#include "devicetraycomponent.h"
// predefs
class CellularDevice;
class CellularDeviceTrayPrivate;
class CellularDeviceTray : public DeviceTrayComponent
{
Q_OBJECT
TQ_OBJECT
public:
CellularDeviceTray (CellularDevice*, KSystemTray * parent = 0, const char * name = 0);
~CellularDeviceTray ();
void addMenuItems(KPopupMenu* menu);
public slots:
void newConnection();
private:
CellularDeviceTrayPrivate* d;
};
#endif /* KNETWORKMANAGER_CELLULAR_DEVICE_TRAY_H */

@ -0,0 +1,299 @@
/***************************************************************************
*
* knetworkmanager-connection.cpp - A NetworkManager frontend for KDE
*
* Copyright (C) 2005, 2006 Novell, Inc.
*
* Author: Helmut Schaa <hschaa@suse.de>, <helmut.schaa@gmx.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.
*
* 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
*
**************************************************************************/
/* qt headers */
#include <tqvaluelist.h>
/* kde headers */
#include <kdebug.h>
#include <klocale.h>
/* TQDbus headers */
#include <tqdbusconnection.h>
#include <tqdbusobjectpath.h>
#include <tqdbusdata.h>
#include <tqdbusdatamap.h>
#include <tqdbusvariant.h>
/* NM headers */
#include <NetworkManager.h>
/* knetworkmanager headers */
#include "knetworkmanager.h"
#include "knetworkmanager-connection.h"
#include "knetworkmanager-connection_dbus.h"
#include "knetworkmanager-connection_secrets_dbus.h"
#include "knetworkmanager-connection_setting.h"
#include "knetworkmanager-nmsettings.h"
#include <stdio.h>
extern unsigned char vpn_new_credentials_needed;
using namespace ConnectionSettings;
namespace ConnectionSettings
{
class ConnectionPrivate
{
public:
ConnectionPrivate(Connection* parent)
{
conn_dbus = new ConnectionDBus(parent);
conn_secrets_dbus = new ConnectionSecretsDBus(parent);
secrets_requested = false;
}
~ConnectionPrivate() {}
TQT_DBusObjectPath obj_path;
ConnectionDBus* conn_dbus;
ConnectionSecretsDBus* conn_secrets_dbus;
TQValueList<ConnectionSetting*> settings;
TQString specific_object;
bool secrets_requested;
};
}
/*
class Connection
*/
Connection::Connection()
{
d = new ConnectionPrivate(this);
NMSettings* nmSettings = NMSettings::getInstance();
d->obj_path = nmSettings->getObjPathForConnection();
TQT_DBusConnection conn = TQT_DBusConnection::systemBus();
if (!registerObject(conn, objectPath()))
kdError() << "registerobjectpath failed" << endl;
// get notified whenever NM needs a secret
connect(d->conn_secrets_dbus, TQT_SIGNAL(SecretsNeeded(const TQString&, const TQStringList&, bool)), this, TQT_SLOT(slotSecretsNeeded(const TQString&, const TQStringList&, bool)));
}
Connection::~Connection()
{
for (TQValueList<ConnectionSetting*>::Iterator it= d->settings.begin(); it != d->settings.end(); ++it)
{
delete (*it);
*it = NULL;
}
delete d;
}
ConnectionSetting*
Connection::getSetting(const TQString& type) const
{
// find a setting by its type
for (TQValueList<ConnectionSetting*>::ConstIterator it = d->settings.begin(); it != d->settings.end(); ++it)
{
if ((*it)->getType() == type)
return (*it);
}
return NULL;
}
TQValueList<ConnectionSetting*>
Connection::getSettings() const
{
return d->settings;
}
void
Connection::appendSetting(ConnectionSetting* setting)
{
// that's our setting now :)
d->settings.append(setting);
connect(setting, TQT_SIGNAL(validityChanged()), this, TQT_SLOT(slotSettingValidityChanged()));
}
void
Connection::setSpecificObject(const TQString& obj_path)
{
d->specific_object = obj_path;
}
TQString
Connection::getSpecificObject() const
{
return d->specific_object;
}
TQT_DBusObjectPath
Connection::getObjectPath() const
{
return d->obj_path;
}
TQString
Connection::objectPath() const
{
return d->obj_path;
}
bool
Connection::isValid() const
{
bool retval = true;
// check if every enabled setting is valid
for (TQValueList<ConnectionSetting*>::ConstIterator it = d->settings.begin(); it != d->settings.end(); ++it)
{
if ((*it)->getEnabled())
retval &= (*it)->isValid();
}
return retval;
}
void
Connection::slotSecretsNeeded(const TQString& setting_name, const TQStringList& hints, bool request_new)
{
printf("Connection::slotSecretsNeeded %s, new: %s\n\r", setting_name.ascii(), (request_new ? "yes" : "no"));
kdDebug() << "Connection::slotSecretsNeeded " << setting_name.ascii() << ", new: " << (request_new ? "yes" : "no") << endl;
ConnectionSetting* setting = getSetting(setting_name);
// If needed, request new VPN credentials
if (strcmp("vpn", setting_name.ascii()) == 0) {
if (vpn_new_credentials_needed == 1) {
vpn_new_credentials_needed = 0;
request_new = 1;
}
}
if (!setting)
{
// send an error to NM
d->conn_secrets_dbus->SendGetSecretsReply(NULL);
}
else
{
if (!request_new && setting->hasSecrets())
{
// if the setting has secrets just send them
d->conn_secrets_dbus->SendGetSecretsReply(setting);
}
else
{
// NetworkManager asks for new secrets, ask user for new secrets/retry
d->secrets_requested = true;
emit SecretsNeeded(this, setting, hints, request_new);
}
}
}
void
Connection::slotSecretsProvided(ConnectionSetting* setting)
{
if (!d->secrets_requested)
return;
if (!setting)
{
// send all settings to NM
d->conn_secrets_dbus->SendGetSecretsReply(NULL);
}
else
{
// if we have the secrets already send them to NM
d->conn_secrets_dbus->SendGetSecretsReply(setting);
}
d->secrets_requested = false;
}
void
Connection::slotSecretsError()
{
if (!d->secrets_requested)
return;
d->conn_secrets_dbus->SendGetSecretsError();
d->secrets_requested = false;
}
TQT_DBusObjectBase*
Connection::createInterface(const TQString& interfaceName)
{
// the interfaces are already created, just return the right one
if (interfaceName == NM_DBUS_IFACE_SETTINGS_CONNECTION)
return d->conn_dbus;
if (interfaceName == NM_DBUS_IFACE_SETTINGS_CONNECTION_SECRETS)
return d->conn_secrets_dbus;
return NULL;
}
TQString
Connection::getType()
{
return TQString();
}
void
Connection::slotSettingValidityChanged()
{
emit validityChanged();
}
void
Connection::slotAboutToBeRemoved()
{
d->conn_dbus->slotAboutToBeRemoved();
}
void
Connection::slotUpdated()
{
d->conn_dbus->slotUpdated();
}
void
Connection::updateSettings(Connection* conn)
{
TQValueList<ConnectionSetting*> settings = conn->getSettings();
// copy all settings over to the new connection
for (TQValueList<ConnectionSetting*>::Iterator it = settings.begin(); it != settings.end(); ++it)
{
ConnectionSetting* other_setting = *it;
ConnectionSetting* my_setting = getSetting(other_setting->getType());
if (my_setting)
{
my_setting->fromMap(other_setting->toMap());
my_setting->fromSecretsMap(other_setting->toSecretsMap(false));
}
else
{
// should not happen
}
}
}
bool
Connection::awaitingSecrets()
{
return d->secrets_requested;
}
#include "knetworkmanager-connection.moc"

@ -0,0 +1,133 @@
/***************************************************************************
*
* knetworkmanager-connection.h - A NetworkManager frontend for KDE
*
* Copyright (C) 2005, 2006 Novell, Inc.
*
* Author: Helmut Schaa <hschaa@suse.de>, <helmut.schaa@gmx.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.
*
* 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 KNETWORKMANAGER_CONNECTION_H
#define KNETWORKMANAGER_CONNECTION_H
#include <tqmap.h>
#include <tqobject.h>
#include "knetworkmanager-connection_setting.h"
#include "dbus/connection.h"
#include "dbus/connectionnode.h"
class AccessPoint;
class TQT_DBusObjectPath;
namespace ConnectionSettings
{
class WirelessSecurity;
class Connection;
class ConnectionSetting;
class ConnectionPrivate;
class Info;
class Wired;
class Wireless;
class WirelessSecurity;
class IPv4;
typedef TQMap<TQString, SettingsMap> ConnectionMap;
// a connection wraps multiple settings
class Connection : public TQObject, DBus::ConnectionNode
{
Q_OBJECT
TQ_OBJECT
public:
Connection();
virtual ~Connection();
virtual TQString getID() const = 0;
virtual void setID(const TQString& id) = 0;
// get a specific setting
ConnectionSetting* getSetting(const TQString&) const;
// get all settings of this connection
TQValueList<ConnectionSetting*> getSettings() const;
// attach a new setting
virtual void appendSetting(ConnectionSetting* setting);
// ugly stuff introduced by NM
void setSpecificObject(const TQString&);
TQString getSpecificObject() const;
// sometimes its usefull to have the object_path
TQT_DBusObjectPath getObjectPath() const;
// is the connection valid?
virtual bool isValid() const;
// the connections type (only for KNM use)
virtual TQString getType();
// duplicate
virtual Connection* duplicate() = 0;
// update the settings from another connection
void updateSettings(Connection*);
// true if the NM requested new secrets for this connection
bool awaitingSecrets();
public slots:
// gets called from NM when it needs the secrets
void slotSecretsNeeded(const TQString& setting_name, const TQStringList& hints, bool request_new);
// gets called when the GUI provided new secrets
void slotSecretsProvided(ConnectionSetting* setting);
// signal a failure in getting new secrets
void slotSecretsError();
// gets called when a settings validity changes
void slotSettingValidityChanged();
// gets called when the connection is about to be removed
void slotAboutToBeRemoved();
// gets called when the connections settings changed
void slotUpdated();
protected:
// implementations for ConnectionNode
TQT_DBusObjectBase* createInterface(const TQString& interfaceName);
TQString objectPath() const;
signals:
// signal when we need new secrets
void SecretsNeeded(Connection* connection, ConnectionSetting* setting, const TQStringList& hints, bool request_new);
// signal gets emitted when connections validity changes
void validityChanged();
private:
ConnectionPrivate* d;
};
}
#endif /* KNETWORKMANAGER_CONNECTION_H */

@ -0,0 +1,200 @@
/***************************************************************************
*
* knetworkmanager-devicestore_dbus.cpp - A NetworkManager frontend for KDE
*
* Copyright (C) 2005, 2006 Novell, Inc.
*
* Author: Helmut Schaa <hschaa@suse.de>, <helmut.schaa@gmx.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.
*
* 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
*
**************************************************************************/
/* qt headers */
#include <tqvaluelist.h>
/* kde headers */
#include <kdebug.h>
#include <klocale.h>
/* TQDbus headers */
#include <tqdbusconnection.h>
#include <tqdbusobjectpath.h>
#include <tqdbusdata.h>
#include <tqdbusdatamap.h>
#include <tqdbusvariant.h>
#include <tqdbuserror.h>
/* NM headers */
#include <NetworkManager.h>
/* knetworkmanager headers */
#include "knetworkmanager.h"
#include "knetworkmanager-connection.h"
#include "knetworkmanager-connection_dbus.h"
#include "knetworkmanager-connection_setting.h"
#include "knetworkmanager-nmsettings.h"
#include "xmlmarshaller.h"
using namespace ConnectionSettings;
namespace ConnectionSettings
{
class ConnectionDBusPrivate
{
public:
ConnectionDBusPrivate() {}
~ConnectionDBusPrivate() {}
ConnectionSettings::Connection* parent;
};
}
/*
class Connection
*/
ConnectionDBus::ConnectionDBus(ConnectionSettings::Connection* parent)
: TQObject(parent)
{
d = new ConnectionDBusPrivate();
d->parent = parent;
}
ConnectionDBus::~ConnectionDBus()
{
delete d;
}
bool
ConnectionDBus::GetID(TQString& id, TQT_DBusError& /*error*/)
{
kdDebug() << "Connection::GetID" << endl;
id = d->parent->getID();
return true;
}
bool
ConnectionDBus::GetSettings(TQT_DBusDataMap<TQString>& settings, TQT_DBusError& /*error*/)
{
kdDebug() << "Connection::GetSettings, obj: " << objectPath().ascii() << endl;
TQValueList<ConnectionSetting*> all_settings = d->parent->getSettings();
// FIXME: ugly conversions, ask Kevin on how to make it better
for (TQValueList<ConnectionSetting*>::Iterator it = all_settings.begin(); it != all_settings.end(); ++it)
{
kdDebug() << " Processing Setting '" << (*it)->getType().ascii() << "'" << endl;
// only append this setting if it is really used
if (!(*it)->getEnabled())
{
kdDebug() << " Setting '" << (*it)->getType().ascii() << "' is not enabled, discarding" << endl;
continue;
}
if (!(*it)->isValid())
{
kdDebug() << " Setting '" << (*it)->getType().ascii() << "' is not valid, discarding" << endl;
continue;
}
// copy the settingsmap over to a variantmap
TQMap<TQString, TQT_DBusData> map = (*it)->toMap();
// only take used settings
if (map.size() == 0)
{
kdDebug() << " Setting '" << (*it)->getType().ascii() << "' is empty, discarding" <<