Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

VMemo Class Reference

#include </home/clem/local/src/opie/core/applets/vmemo/vmemo.h>

Collaboration diagram for VMemo:

Collaboration graph
[legend]
List of all members.

Public Slots

bool record ()
void mousePressEvent (QMouseEvent *)
void mouseReleaseEvent (QMouseEvent *)
void receive (const QCString &msg, const QByteArray &data)
bool startRecording ()
void stopRecording ()
void timerBreak ()

Public Member Functions

 VMemo (QWidget *parent, const char *name=NULL)
 ~VMemo ()

Static Public Member Functions

static int position ()

Public Attributes

QFile track
int length
QString fileName
QString errorMsg
QString date
QLabel * msgLabel
QTimer * t_timer
bool usingIcon
bool useADPCM

Private Member Functions

void paintEvent (QPaintEvent *)
int setToggleButton (int)
int openDSP ()
int openWAV (const char *filename)

Private Attributes

bool useAlerts
bool fromToggle
QPixmap vmemoPixmap
QCopChannelmyChannel
bool systemZaurus
int dsp
int wav
int rate
int speed
int channels
int format
int resolution
bool recording

Constructor & Destructor Documentation

VMemo::VMemo QWidget *  parent,
const char *  name = NULL
 

Definition at line 201 of file vmemo.cpp.

References myChannel, oendl, owarn, Config::readBoolEntry(), Config::readNumEntry(), receive(), recording, Config::setGroup(), setToggleButton(), systemZaurus, t_timer, timerBreak(), useADPCM, and usingIcon.

VMemo::~VMemo  ) 
 

Definition at line 243 of file vmemo.cpp.


Member Function Documentation

void VMemo::mousePressEvent QMouseEvent *   )  [slot]
 

Definition at line 270 of file vmemo.cpp.

References recording, startRecording(), and stopRecording().

void VMemo::mouseReleaseEvent QMouseEvent *   )  [slot]
 

Definition at line 281 of file vmemo.cpp.

int VMemo::openDSP  )  [private]
 

Definition at line 389 of file vmemo.cpp.

References channels, dsp, errorMsg, format, msgLabel, odebug, oendl, Opie::Core::perror(), rate, Config::readNumEntry(), resolution, Config::setGroup(), speed, and systemZaurus.

Referenced by startRecording().

int VMemo::openWAV const char *  filename  )  [private]
 

Definition at line 449 of file vmemo.cpp.

References _waveheader::bit_p_spl, _waveheader::byte_p_sec, _waveheader::byte_p_spl, channels, _waveheader::chunk_type, DATA, _waveheader::data_chunk, _waveheader::data_length, errorMsg, FMT, _waveheader::format, QFile::handle(), IO_Raw, IO_Truncate, IO_WriteOnly, _waveheader::length, _waveheader::main_chunk, _waveheader::modus, QFile::open(), PCM_CODE, Config::readBoolEntry(), resolution, RIFF, _waveheader::sample_fq, _waveheader::sc_len, Config::setGroup(), QFile::setName(), speed, _waveheader::sub_chunk, track, useADPCM, wav, WAVE, WAVE_FORMAT_DVI_ADPCM, and write().

Referenced by startRecording().

void VMemo::paintEvent QPaintEvent *   )  [private]
 

Definition at line 265 of file vmemo.cpp.

References p, and vmemo_xpm.

int VMemo::position  )  [static]
 

Definition at line 246 of file vmemo.cpp.

void VMemo::receive const QCString msg,
const QByteArray data
[slot]
 

Definition at line 251 of file vmemo.cpp.

References fromToggle, IO_ReadOnly, recording, startRecording(), stopRecording(), and stream.

Referenced by VMemo().

bool VMemo::record  )  [slot]
 

Definition at line 486 of file vmemo.cpp.

References bufsize, channels, QFile::close(), date, dsp, fileName, QString::find(), format, length, message, QString::number(), odebug, oendl, owarn, Opie::Core::perror(), printf, qApp, Config::readBoolEntry(), Config::readEntry(), Config::readNumEntry(), recording, Config::setGroup(), speed, QString::sprintf(), t_timer, tr, track, useADPCM, wav, Config::write(), write(), and Config::writeEntry().

Referenced by startRecording().

int VMemo::setToggleButton int   )  [private]
 

Definition at line 618 of file vmemo.cpp.

References i, Key_F10, Key_F11, Key_F12, Key_F13, Key_F24, and Key_F9.

Referenced by VMemo().

bool VMemo::startRecording  )  [slot]
 

Definition at line 284 of file vmemo.cpp.

References QDateTime::currentDateTime(), date, TimeString::dateString(), QPEApplication::documentDir(), dsp, fileName, QString::find(), l, QString::latin1(), QString::left(), QString::length(), msgLabel, NULL, odebug, oendl, openDSP(), openWAV(), Config::readBoolEntry(), Config::readEntry(), Config::readNumEntry(), record(), recording, QString::replace(), QString::right(), s, AppLnk::setCategories(), AppLnk::setFile(), Config::setGroup(), AppLnk::setName(), AppLnk::setType(), QString::sprintf(), tr, useAlerts, and AppLnk::writeLink().

Referenced by mousePressEvent(), and receive().

void VMemo::stopRecording  )  [slot]
 

Definition at line 373 of file vmemo.cpp.

References msgLabel, odebug, oendl, recording, Config::setGroup(), t_timer, and useAlerts.

Referenced by mousePressEvent(), receive(), and timerBreak().

void VMemo::timerBreak  )  [slot]
 

Definition at line 654 of file vmemo.cpp.

References message, and stopRecording().

Referenced by VMemo().


Member Data Documentation

int VMemo::channels [private]
 

Definition at line 66 of file vmemo.h.

Referenced by openDSP(), openWAV(), and record().

QString VMemo::date
 

Definition at line 40 of file vmemo.h.

Referenced by record(), and startRecording().

int VMemo::dsp [private]
 

Definition at line 66 of file vmemo.h.

Referenced by openDSP(), record(), and startRecording().

QString VMemo::errorMsg
 

Definition at line 40 of file vmemo.h.

Referenced by openDSP(), and openWAV().

QString VMemo::fileName
 

Definition at line 40 of file vmemo.h.

Referenced by record(), and startRecording().

int VMemo::format [private]
 

Definition at line 66 of file vmemo.h.

Referenced by openDSP(), and record().

bool VMemo::fromToggle [private]
 

Definition at line 62 of file vmemo.h.

Referenced by receive().

int VMemo::length
 

Definition at line 39 of file vmemo.h.

Referenced by record().

QLabel* VMemo::msgLabel
 

Definition at line 41 of file vmemo.h.

Referenced by openDSP(), startRecording(), and stopRecording().

QCopChannel* VMemo::myChannel [private]
 

Definition at line 64 of file vmemo.h.

Referenced by VMemo().

int VMemo::rate [private]
 

Definition at line 66 of file vmemo.h.

Referenced by openDSP().

bool VMemo::recording [private]
 

Definition at line 67 of file vmemo.h.

Referenced by mousePressEvent(), receive(), record(), startRecording(), stopRecording(), and VMemo().

int VMemo::resolution [private]
 

Definition at line 66 of file vmemo.h.

Referenced by openDSP(), and openWAV().

int VMemo::speed [private]
 

Definition at line 66 of file vmemo.h.

Referenced by openDSP(), openWAV(), and record().

bool VMemo::systemZaurus [private]
 

Definition at line 65 of file vmemo.h.

Referenced by openDSP(), and VMemo().

QTimer* VMemo::t_timer
 

Definition at line 42 of file vmemo.h.

Referenced by record(), stopRecording(), and VMemo().

QFile VMemo::track
 

Definition at line 38 of file vmemo.h.

Referenced by openWAV(), and record().

bool VMemo::useADPCM
 

Definition at line 43 of file vmemo.h.

Referenced by openWAV(), record(), and VMemo().

bool VMemo::useAlerts [private]
 

Definition at line 57 of file vmemo.h.

Referenced by startRecording(), and stopRecording().

bool VMemo::usingIcon
 

Definition at line 43 of file vmemo.h.

Referenced by VMemo().

QPixmap VMemo::vmemoPixmap [private]
 

Definition at line 63 of file vmemo.h.

int VMemo::wav [private]
 

Definition at line 66 of file vmemo.h.

Referenced by openWAV(), and record().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:55:21 2005 for OPIE by  doxygen 1.4.2