kitchensync Library API Documentation

KSync::KonnectorBar Class Reference

The konnector bar is meant to represent the connection state of a Konnector and allow toggling connection/disconnection of a konnector Either it is connected or not. More...

#include <konnectorbar.h>

Inheritance diagram for KSync::KonnectorBar:

Inheritance graph
[legend]
Collaboration diagram for KSync::KonnectorBar:

Collaboration graph
[legend]
List of all members.

Public Types

enum  State { Connected, Disconnected }

Signals

void toggled (bool b)

Public Member Functions

 KonnectorBar (QWidget *parent)
 ~KonnectorBar ()
void setName (const QString &name)
QString name () const
void setState (bool b)
bool state () const
bool isOn () const

Detailed Description

The konnector bar is meant to represent the connection state of a Konnector and allow toggling connection/disconnection of a konnector Either it is connected or not.

Version:
0.1
Author:
Holger 'zecke' Freyther <freyther@kde.org>

Definition at line 57 of file konnectorbar.h.


Constructor & Destructor Documentation

KonnectorBar::KonnectorBar QWidget parent  ) 
 

The Constructor to construct a KonnectorBox Constructor.

Parameters:
parent The parent widget

Definition at line 54 of file konnectorbar.cpp.

References toggled().

KonnectorBar::~KonnectorBar  ) 
 

d'tor

Definition at line 61 of file konnectorbar.cpp.


Member Function Documentation

void KonnectorBar::setName const QString name  ) 
 

Set the name of the Konnector.

The string will be displayed

Parameters:
name The name of the Konnector

Definition at line 63 of file konnectorbar.cpp.

QString KonnectorBar::name  )  const
 

Return the name of the current Konnector.

Returns:
the name of the konnector

Definition at line 66 of file konnectorbar.cpp.

void KonnectorBar::setState bool  b  ) 
 

Set the state of the connection.

Parameters:
b The state true if connected, false if not connected

Definition at line 69 of file konnectorbar.cpp.

bool KonnectorBar::state  )  const
 

Returns:
the state

Definition at line 72 of file konnectorbar.cpp.

References isOn().

bool KonnectorBar::isOn  )  const
 

Returns:
if is connected

Definition at line 75 of file konnectorbar.cpp.

Referenced by state().

void KSync::KonnectorBar::toggled bool  b  )  [signal]
 

if the KonnectarBar got toggled

Parameters:
b the state of the connection

Referenced by KonnectorBar().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kitchensync Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Apr 4 04:47:13 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003