/*************************************************************************** begin : Tue May 17 2003 copyright : (C) 2003 by Jan Schäfer email : janschaefer@users.sourceforge.net ***************************************************************************/ /****************************************************************************** * * * This file is part of KSambaPlugin. * * * * KSambaPlugin is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * KSambaPlugin is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with KSambaPlugin; if not, write to the Free Software * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * * ******************************************************************************/ #ifndef LINUXPERMISSIONCHECKER_H #define LINUXPERMISSIONCHECKER_H #include class SambaShare; class TQWidget; /** * A class to check if the Samba permissions specified in the SambaShare fit * to the un?x permissions of the directory. E.g. a user specifies a SambaShare as writeable * for the public, but the guest account has no write permissions for the directory of the * SambaShare. This will cause a dialog (which can be turned of) to popup and inform the * user about the missing rights and ask him to continue nevertheless or to cancel. * This class works for all un?x systems not only for Linux, but I couldn't call the * class Un?xPermissionChecker ;-) * @author Jan Schaefer */ class LinuxPermissionChecker{ public: LinuxPermissionChecker(SambaShare*,TQWidget* parent ); ~LinuxPermissionChecker(); /** * Checks all possible errors that the user could made * @returns