• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeutils API Reference
  • KDE Home
  • Contact Us
 

kremotecontrol

Public Types | Public Member Functions | List of all members
Remote Class Reference

#include <remote.h>

Public Types

enum  ModeChangeMode { Group, Cycle }
 

Public Member Functions

 Remote ()
 
 Remote (const QString &remote, Remote::ModeChangeMode changeMode=Remote::Group)
 
 ~Remote ()
 
void addMode (Mode *mode)
 
QVector< Mode * > allModes () const
 
QStringList availableModeCycleButtons () const
 
QStringList availableModeSwitchButtons (const Mode *mode=0) const
 
Mode * currentMode () const
 
Mode * defaultMode () const
 
bool isAvailable () const
 
Mode * masterMode () const
 
Mode * modeByName (const QString &name) const
 
ModeChangeMode modeChangeMode () const
 
void moveModeDown (Mode *mode)
 
void moveModeUp (Mode *mode)
 
QString name () const
 
bool nextMode (const QString &button)
 
QString nextModeButton () const
 
QString previousModeButton () const
 
void removeMode (Mode *mode)
 
void setCurrentMode (Mode *mode)
 
void setDefaultMode (Mode *mode)
 
void setDefaultMode (const QString &name)
 
void setModeChangeMode (ModeChangeMode modeChangeMode)
 
void setNextModeButton (const QString &button)
 
void setPreviousModeButton (const QString &button)
 

Detailed Description

Definition at line 32 of file remote.h.

Member Enumeration Documentation

enum Remote::ModeChangeMode
Enumerator
Group 
Cycle 

Definition at line 39 of file remote.h.

Constructor & Destructor Documentation

Remote::Remote ( )

Definition at line 208 of file remote.cpp.

Remote::Remote ( const QString &  remote,
Remote::ModeChangeMode  changeMode = Remote::Group 
)
explicit

Definition at line 217 of file remote.cpp.

Remote::~Remote ( )

Destrys the Remote and all of its Modes.

Definition at line 239 of file remote.cpp.

Member Function Documentation

void Remote::addMode ( Mode *  mode)

Add the given Mode to this Remote.

The Remote takes ownership of this Mode. Don't delete it!

Definition at line 273 of file remote.cpp.

QVector< Mode * > Remote::allModes ( ) const

Definition at line 269 of file remote.cpp.

QStringList Remote::availableModeCycleButtons ( ) const

Get buttons available for switching to the next or previous mode (Free buttons + the current nextMode and previousMode)

Definition at line 385 of file remote.cpp.

QStringList Remote::availableModeSwitchButtons ( const Mode *  mode = 0) const

Get buttons available for this mode (Free buttons + the current button for this mode)

Definition at line 377 of file remote.cpp.

Mode * Remote::currentMode ( ) const

Definition at line 343 of file remote.cpp.

Mode * Remote::defaultMode ( ) const

Definition at line 313 of file remote.cpp.

bool Remote::isAvailable ( ) const

Definition at line 355 of file remote.cpp.

Mode * Remote::masterMode ( ) const

Definition at line 300 of file remote.cpp.

Mode * Remote::modeByName ( const QString &  name) const

Definition at line 334 of file remote.cpp.

Remote::ModeChangeMode Remote::modeChangeMode ( ) const

Definition at line 363 of file remote.cpp.

void Remote::moveModeDown ( Mode *  mode)

Definition at line 260 of file remote.cpp.

void Remote::moveModeUp ( Mode *  mode)

Definition at line 251 of file remote.cpp.

QString Remote::name ( ) const

Definition at line 247 of file remote.cpp.

bool Remote::nextMode ( const QString &  button)

Definition at line 359 of file remote.cpp.

QString Remote::nextModeButton ( ) const

Definition at line 396 of file remote.cpp.

QString Remote::previousModeButton ( ) const

Definition at line 405 of file remote.cpp.

void Remote::removeMode ( Mode *  mode)

Remove the given Mode from this Remote and delete it.

Don't try to access the Mode after this call! This function will not remove the Master mode! If the deleted Mode is the default mode, the Master will be set to as the new default Mode.

Definition at line 280 of file remote.cpp.

void Remote::setCurrentMode ( Mode *  mode)

Definition at line 351 of file remote.cpp.

void Remote::setDefaultMode ( Mode *  mode)

Definition at line 317 of file remote.cpp.

void Remote::setDefaultMode ( const QString &  name)

Definition at line 325 of file remote.cpp.

void Remote::setModeChangeMode ( Remote::ModeChangeMode  modeChangeMode)

Definition at line 367 of file remote.cpp.

void Remote::setNextModeButton ( const QString &  button)

Definition at line 400 of file remote.cpp.

void Remote::setPreviousModeButton ( const QString &  button)

Definition at line 409 of file remote.cpp.


The documentation for this class was generated from the following files:
  • remote.h
  • remote.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:07:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kremotecontrol

Skip menu "kremotecontrol"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • kremotecontrol
  • ktimer
  • kwallet
  • superkaramba
  • sweeper

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal