KIO
kacleditwidget.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * Copyright (C) 2005 by Sean Harmer <sh@rama.homelinux.org> * 00003 * 2005 - 2007 Till Adam <adam@kde.org> * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU Library General Public License as * 00007 * published by the Free Software Foundation; either version 2 of the * 00008 * License, or (at your option) any later version. * 00009 * * 00010 * This program is distributed in the hope that it will be useful, * 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00013 * GNU General Public License for more details. * 00014 * * 00015 * You should have received a copy of the GNU General Public License * 00016 * along with this program; if not, write to the * 00017 * Free Software Foundation, Inc., * 00018 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * 00019 ***************************************************************************/ 00020 #ifndef KACLEDITWIDGET_H 00021 #define KACLEDITWIDGET_H 00022 00023 #include <config-acl.h> 00024 00025 #if defined(HAVE_POSIX_ACL) || defined(Q_MOC_RUN) 00026 00027 #include <QtGui/QWidget> 00028 00029 #include <kacl.h> 00030 00031 class KACLEditWidget : public QWidget 00032 { 00033 Q_OBJECT 00034 public: 00035 explicit KACLEditWidget(QWidget *parent = 0); 00036 ~KACLEditWidget(); 00037 KACL getACL() const; 00038 KACL getDefaultACL() const; 00039 void setACL( const KACL & ); 00040 void setDefaultACL( const KACL & ); 00041 void setAllowDefaults( bool value ); 00042 00043 private: 00044 class KACLEditWidgetPrivate; 00045 KACLEditWidgetPrivate *const d; 00046 00047 Q_DISABLE_COPY(KACLEditWidget) 00048 00049 Q_PRIVATE_SLOT(d, void _k_slotUpdateButtons()) 00050 }; 00051 00052 #endif 00053 #endif