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-ecb5cbfe19dav3.5.13-sru
@ -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,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
|
||||
|
After Width: | Height: | Size: 954 B |
After Width: | Height: | Size: 650 B |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 629 B |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 817 B |
After Width: | Height: | Size: 927 B |
After Width: | Height: | Size: 764 B |
After Width: | Height: | Size: 779 B |
After Width: | Height: | Size: 799 B |
After Width: | Height: | Size: 821 B |
After Width: | Height: | Size: 823 B |
After Width: | Height: | Size: 688 B |
After Width: | Height: | Size: 664 B |
After Width: | Height: | Size: 692 B |
After Width: | Height: | Size: 672 B |
After Width: | Height: | Size: 679 B |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 699 B |
After Width: | Height: | Size: 657 B |
After Width: | Height: | Size: 696 B |
After Width: | Height: | Size: 666 B |
After Width: | Height: | Size: 644 B |
After Width: | Height: | Size: 726 B |
After Width: | Height: | Size: 717 B |
After Width: | Height: | Size: 734 B |
After Width: | Height: | Size: 719 B |
After Width: | Height: | Size: 721 B |
After Width: | Height: | Size: 698 B |
After Width: | Height: | Size: 759 B |
After Width: | Height: | Size: 712 B |
After Width: | Height: | Size: 739 B |
After Width: | Height: | Size: 693 B |
After Width: | Height: | Size: 684 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 692 B |
After Width: | Height: | Size: 674 B |
After Width: | Height: | Size: 701 B |
After Width: | Height: | Size: 688 B |
After Width: | Height: | Size: 686 B |
After Width: | Height: | Size: 661 B |
After Width: | Height: | Size: 727 B |
After Width: | Height: | Size: 681 B |
After Width: | Height: | Size: 708 B |
After Width: | Height: | Size: 650 B |
After Width: | Height: | Size: 648 B |
After Width: | Height: | Size: 692 B |
After Width: | Height: | Size: 893 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 7.1 KiB |
After Width: | Height: | Size: 8.2 KiB |
@ -0,0 +1,2 @@
|
||||
POFILES = AUTO
|
||||
|
@ -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>&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>&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>&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 &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&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>&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 &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>&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>&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>&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&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>&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>&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>&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>&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>&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 && 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,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" << |