kfilelock.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef KFILELOCK_H
00020 #define KFILELOCK_H
00021
00022
00023 class KFileLock
00024 {
00025 public:
00026 KFileLock(int fd);
00027
00029 ~KFileLock();
00030
00032 int fd() const { return _fd; }
00033
00034
00035
00036
00037
00038
00039 int lock();
00040
00042 void unlock();
00043
00045 bool isLocked() const { return _locked; }
00046
00047 private:
00048 int _fd;
00049 bool _locked;
00050 };
00051
00052
00053 #endif
This file is part of the documentation for libkdegames Library Version 3.2.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Mar 12 22:53:40 2004 by
doxygen 1.3.6-20040222 written by
Dimitri van Heesch, © 1997-2003