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

WvLockDev Class Reference

#include <wvlockdev.h>

Collaboration diagram for WvLockDev:

[legend]
List of all members.

Detailed Description

Class to handle Lock files - useful for WvDial and other places where we need to guarantee exclusive access to a file or device.

Creates/Removes lockfiles in /var/lock.

Definition at line 17 of file wvlockdev.h.

Public Member Functions

 WvLockDev (WvString _devicename)
 ~WvLockDev ()
bool lock ()
void unlock ()
bool islocked () const


Constructor & Destructor Documentation

WvLockDev::WvLockDev WvString  _devicename  ) 
 

Definition at line 17 of file wvlockdev.cc.

References WvLockDev().

Referenced by WvLockDev().

WvLockDev::~WvLockDev  ) 
 

Definition at line 31 of file wvlockdev.cc.

References unlock().


Member Function Documentation

bool WvLockDev::islocked  )  const [inline]
 

Definition at line 27 of file wvlockdev.h.

bool WvLockDev::lock  ) 
 

Definition at line 79 of file wvlockdev.cc.

References WvFDStream::close(), WvError::geterr(), WvStream::getline(), WvFDStream::isok(), WvFile::open(), WvStream::print(), and trim_string().

Referenced by WvModem::WvModem().

void WvLockDev::unlock  ) 
 

Definition at line 136 of file wvlockdev.cc.

Referenced by ~WvLockDev().


The documentation for this class was generated from the following files:
Generated on Tue Oct 5 01:09:28 2004 for WvStreams by doxygen 1.3.7