KIO
kfileshare.h
Go to the documentation of this file.00001 /* This file is part of the KDE project 00002 Copyright (c) 2001 David Faure <faure@kde.org> 00003 Copyright (c) 2001 Laurent Montel <lmontel@mandrakesoft.com> 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Library General Public 00007 License version 2 as published by the Free Software Foundation. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public License 00015 along with this library; see the file COPYING.LIB. If not, write to 00016 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00017 Boston, MA 02110-1301, USA. 00018 */ 00019 00020 #ifndef kfileshare_h 00021 #define kfileshare_h 00022 00023 #include <kio/kio_export.h> 00024 class QString; 00025 00030 namespace KFileShare 00031 { 00035 KIO_EXPORT void readConfig(); 00036 00040 KIO_EXPORT void readShareList(); 00041 00042 00046 KIO_EXPORT bool isDirectoryShared( const QString& path ); 00047 00048 enum Authorization { NotInitialized, ErrorNotFound, Authorized, UserNotAllowed }; 00052 KIO_EXPORT Authorization authorization(); 00053 00061 KIO_EXPORT bool setShared( const QString& path, bool shared ); 00062 00070 enum ShareMode { Simple, Advanced }; 00071 00077 KIO_EXPORT bool sharingEnabled(); 00078 00085 KIO_EXPORT bool isRestricted(); 00086 00092 KIO_EXPORT QString fileShareGroup(); 00093 00097 KIO_EXPORT ShareMode shareMode(); 00098 00102 KIO_EXPORT bool sambaEnabled(); 00103 00107 KIO_EXPORT bool nfsEnabled(); 00108 } 00109 00110 #endif