• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeabc
 

tdeabc

  • tdeabc
lock.h
1/*
2 This file is part of libtdeabc.
3
4 Copyright (c) 2001,2003 Cornelius Schumacher <schumacher@kde.org>
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
10
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
15
16 You should have received a copy of the GNU Library General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.
20*/
21#ifndef KABC_LOCK_H
22#define KABC_LOCK_H
23
24#include <tqstring.h>
25#include <tqobject.h>
26
27#include <tdelibs_export.h>
28
29namespace TDEABC {
30
35class KABC_EXPORT Lock : public TQObject
36{
37 TQ_OBJECT
38 public:
45 Lock( const TQString &identifier );
46
50 ~Lock();
51
55 virtual bool lock();
56
60 virtual bool unlock();
61
62 virtual TQString error() const;
63
64 TQString lockFileName() const;
65
66 static bool readLockFile( const TQString &filename, int &pid, TQString &app );
67 static bool writeLockFile( const TQString &filename );
68
69 static TQString locksDir();
70
71 signals:
72 void locked();
73 void unlocked();
74
75 private:
76 TQString mIdentifier;
77
78 TQString mLockUniqueName;
79
80 TQString mError;
81
82 class Private;
83 Private *d;
84};
85
86}
87
88#endif
TDEABC::Lock
This class provides locking functionality for a file, directory or an arbitrary string-represented re...
Definition: lock.h:36
TDEABC
static data, shared by ALL addressee objects
Definition: address.h:48

tdeabc

Skip menu "tdeabc"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeabc

Skip menu "tdeabc"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeabc by doxygen 1.9.4
This website is maintained by Timothy Pearson.