kitchensync
KSync::KonnectorBar Class Reference
#include <konnectorbar.h>
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
Definition at line 57 of file konnectorbar.h.
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 |
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.
KonnectorBar::~KonnectorBar | ( | ) |
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 |
bool KonnectorBar::isOn | ( | ) | const |
void KSync::KonnectorBar::toggled | ( | bool | b | ) | [signal] |
if the KonnectarBar got toggled
- Parameters:
-
b the state of the connection
The documentation for this class was generated from the following files: