Sha256: 6421098ef0977622beabb9f6bb6794ec73f76eccf3b8a6b89e56ec5882884071

Contents?: true

Size: 633 Bytes

Versions: 44

Compression:

Stored size: 633 Bytes

Contents

#ifndef __VIBRATE__H__
#define __VIBRATE__H__

#include <logging/RhoLog.h>
#include <common/RhoThread.h>

using namespace rho;
using namespace rho::common;

class CVibrate :  public CRhoThread
{
    DEFINE_LOGCLASS;
    
  public:
    static CVibrate& getCVibrate();
    
    void toggle ();
    void toggle (int seconds);
    void untoggle ();
    
  private:
    CVibrate (IRhoClassFactory* factory);
    ~CVibrate ();
    
    virtual void run();
    
    int m_nDuration;
    bool m_bToggled;
    
    static void createCVibrate();
    static CVibrate *m_pInstance;    
    static CMutex m_mxLocker;
};

#endif // __VIBRATE__H__

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
rhodes-1.5.3 platform/wm/rhodes/Vibrate.h
rhodes-1.5.2 platform/wm/rhodes/Vibrate.h
rhodes-1.5.1 platform/wm/rhodes/Vibrate.h
rhodes-1.5.0 platform/wm/rhodes/Vibrate.h