Logo Search packages:      
Sourcecode: ktechlab version File versions  Download package

Switch Class Reference

#include <switch.h>

List of all members.

Detailed Description

David Saxton

Definition at line 27 of file switch.h.

Public Types

enum  State { Open, Closed }

Public Member Functions

void bounce ()
bool calculateCurrent ()
void setBounce (bool bounce, int msec=5)
void setState (State state)
State state () const
 Switch (Component *parent, Pin *p1, Pin *p2, State state)

Protected Slots

void stopBouncing ()

Protected Member Functions

void startBouncing ()

Protected Attributes

bool m_bBounce
int m_bouncePeriod_ms
unsigned long long m_bounceStart
QGuardedPtr< Pinm_pP1
QGuardedPtr< Pinm_pP2
QTimer * m_pStopBouncingTimer
State m_state

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index