PalmtopConnectionSettings Class Reference
The PalmtopConnectionSettings class maintains the connection configuration.
More...
#include <common/palmtopconnectionsettings.h>
List of all member functions.
Public Members
Detailed Description
The PalmtopConnectionSettings class maintains the connection configuration.
The PalmtopConnectionSettings class stores, user, password, IP, home
directory, name and connection type information for connections to
Qtopia Desktop devices. The class provides functionality to save/load
account information to a configuration file (on Unix systems ) or the
registry (on Windows systems).
See also Qtopia Desktop Classes.
Member Type Documentation
PalmtopConnectionSettings::Type
This enum defines the connection type.
The connection types are:
- PalmtopConnectionSettings::USB
- PalmtopConnectionSettings::Serial
- PalmtopConnectionSettings::LAN
Member Function Documentation
PalmtopConnectionSettings::PalmtopConnectionSettings ()
Constructs an account object.
PalmtopConnectionSettings::~PalmtopConnectionSettings ()
Destroys the object.
const QString & PalmtopConnectionSettings::fullName () const
Returns the name.
const QString & PalmtopConnectionSettings::homeDir () const
Returns the home directory.
See also setHomeDir().
QString PalmtopConnectionSettings::ipAddress () const
Returns the IP address string.
See also setIpAddress().
bool PalmtopConnectionSettings::isDirectCon () const
Returns TRUE if the connection type is set to "LAN" or "USB".
See also isSerialCon(), isUsbCon(), and isLanCon().
bool PalmtopConnectionSettings::isLanCon () const
Returns TRUE if the connection type is set to "LAN".
See also isSerialCon(), isUsbCon(), and isDirectCon().
bool PalmtopConnectionSettings::isSerialCon () const
Returns TRUE if the connection type is set to "Serial".
See also isDirectCon(), isUsbCon(), and isLanCon().
bool PalmtopConnectionSettings::isUsbCon () const
Returns TRUE if the connection type is set to "USB".
See also isSerialCon(), isDirectCon(), and isLanCon().
void PalmtopConnectionSettings::load ()
Read account configuration from the Qtopia Desktop configuration file on Unix or
from the registry on Windows.
See also save().
bool PalmtopConnectionSettings::operator!= ( const PalmtopConnectionSettings & c ) const
Returns TRUE if this accouts does _not_ equal PalmtopConnectionSettings c
bool PalmtopConnectionSettings::operator== ( const PalmtopConnectionSettings & c ) const
Returns TRUE if this accouts equals PalmtopConnectionSettings c
const QString & PalmtopConnectionSettings::password ( const QString & loginName, const QString & challenge ) const
Returns the password for user loginName and challenge challenge.
See also setPassword().
const QString & PalmtopConnectionSettings::pdaName () const
Returns a unique key (identifier) for the PDA based on its SSH (Secure SHell) key.
void PalmtopConnectionSettings::save () const
Writes account configuration to the Qtopia Desktop configuration file on Unix or
to the registry on Windows.
See also load().
void PalmtopConnectionSettings::setHomeDir ( const QString & h )
Sets the home directory to h.
See also homeDir().
void PalmtopConnectionSettings::setIpAddress ( const QString & ip )
Sets the IP address to ip.
See also ipAddress().
void PalmtopConnectionSettings::setPassword ( const QString & loginName, const QString & challenge, const QString & p )
Sets the password information to user loginName, challenge challenge and password p.
Removes password information if \p is empty. For Qtopia 1.5 on the Zaurus, this will not be used.
See also password().
void PalmtopConnectionSettings::setType ( Type t )
Sets the connection type to t.
See also type().
Type PalmtopConnectionSettings::type () const
Returns the connection type.
See also setType().
This file is part of the Qtopia platform,
copyright © 1995-2005
Trolltech, all rights reserved.
| Copyright © 2005 Trolltech
| Trademarks
| Qtopia version 2.1.2
|