• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kio/kio
 

kio/kio

  • kio
  • kio
kfileshare.h
1 /* This file is part of the KDE project
2  Copyright (c) 2001 David Faure <david@mandrakesoft.com>
3  Copyright (c) 2001 Laurent Montel <lmontel@mandrakesoft.com>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License version 2 as published by the Free Software Foundation.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef kfileshare_h
21 #define kfileshare_h
22 #include <tqobject.h>
23 
24 #include <kdelibs_export.h>
25 
26 class KDirWatch;
27 
32 class KFileSharePrivate : public TQObject
33 {
34  Q_OBJECT
35 
36 public:
37  KFileSharePrivate();
38  ~KFileSharePrivate();
39  KDirWatch* m_watchFile;
40  static KFileSharePrivate *self();
41  static KFileSharePrivate *_self;
42 protected slots: // this is why this class needs to be in the .h
43  void slotFileChange(const TQString &);
44 };
45 
51 class KIO_EXPORT KFileShare
52 {
53 
54 
55 public:
59  static void readConfig();
60 
64  static void readShareList();
65 
66 
70  static int isDirectoryShared( const TQString& path );
71 
72  enum Authorization { NotInitialized, ErrorNotFound, Authorized, UserNotAllowed };
76  static Authorization authorization();
77 
78  static TQString findExe( const char* exeName );
79 
87  static bool setShared( const TQString& path, bool shared );
88 
89  /*
90  * SuSE only enhancement for now
91  */
92  static bool SuSEsetShared( const TQString& path, bool shared, bool ro );
93 
101  enum ShareMode { Simple, Advanced };
102 
108  static bool sharingEnabled();
109 
116  static bool isRestricted();
117 
123  static TQString fileShareGroup();
124 
128  static ShareMode shareMode();
129 
133  static bool sambaEnabled();
134 
138  static bool nfsEnabled();
139 
144  static bool sambaActive();
145 
150  static bool nfsActive();
151 
152 private:
153  static Authorization s_authorization;
154 // static TQStringList* s_shareList;
155  static TQMap<TQString,TQString>* s_shareMap;
156  static ShareMode s_shareMode;
157  static bool s_sambaEnabled;
158  static bool s_nfsEnabled;
159  static bool s_restricted;
160  static TQString s_fileShareGroup;
161  static bool s_sharingEnabled;
162 
163 };
164 
165 #endif

kio/kio

Skip menu "kio/kio"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kio/kio

Skip menu "kio/kio"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kio/kio by doxygen 1.8.3.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |