• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.10.5 API Reference
  • KDE Home
  • Contact Us
 

KIO

  • kio
  • kio
ksambasharedata.h
Go to the documentation of this file.
1 /*
2  * Copyright 2010 Rodrigo Belem <rclbelem@gmail.com>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) version 3, or any
8  * later version accepted by the membership of KDE e.V. (or its
9  * successor approved by the membership of KDE e.V.), which shall
10  * act as a proxy defined in Section 6 of version 3 of the license.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library. If not, see <http://www.gnu.org/licenses/>
19  */
20 
21 #ifndef ksambasharedata_h
22 #define ksambasharedata_h
23 
24 #include <QtCore/QExplicitlySharedDataPointer>
25 #include <kio/kio_export.h>
26 
27 class QString;
28 class KSambaShare;
29 class KSambaSharePrivate;
30 class KSambaShareDataPrivate;
31 
39 class KIO_EXPORT KSambaShareData
40 {
41 
42 public:
43  enum GuestPermission {
44  GuestsNotAllowed,
45  GuestsAllowed
46  };
47 
48  enum UserShareError {
49  UserShareOk,
50  UserShareExceedMaxShares,
51  UserShareNameOk,
52  UserShareNameInvalid,
53  UserShareNameInUse,
54  UserSharePathOk,
55  UserSharePathInvalid,
56  UserSharePathNotExists,
57  UserSharePathNotDirectory,
58  UserSharePathNotAbsolute,
59  UserSharePathNotAllowed,
60  UserShareAclOk,
61  UserShareAclInvalid,
62  UserShareAclUserNotValid,
63  UserShareCommentOk,
64  UserShareGuestsOk,
65  UserShareGuestsInvalid,
66  UserShareGuestsNotAllowed,
67  UserShareSystemError
68  };
69 
70  KSambaShareData();
71  KSambaShareData(const KSambaShareData &other);
72 
73  ~KSambaShareData();
74 
78  QString name() const;
79 
83  QString path() const;
84 
88  QString comment() const;
89 
97  QString acl() const;
98 
102  KSambaShareData::GuestPermission guestPermission() const;
103 
118  KSambaShareData::UserShareError setName(const QString &name);
119 
132  KSambaShareData::UserShareError setPath(const QString &path);
133 
141  KSambaShareData::UserShareError setComment(const QString &comment);
142 
152  KSambaShareData::UserShareError setAcl(const QString &acl);
153 
163  KSambaShareData::UserShareError setGuestPermission(const GuestPermission &permission = KSambaShareData::GuestsNotAllowed);
164 
170  KSambaShareData::UserShareError save();
171 
177  KSambaShareData::UserShareError remove();
178 
179  KSambaShareData &operator=(const KSambaShareData &other);
180  bool operator==(const KSambaShareData &other) const;
181  bool operator!=(const KSambaShareData &other) const;
182 
183 private:
184  QExplicitlySharedDataPointer<KSambaShareDataPrivate> dd;
185 
186  friend class KSambaSharePrivate;
187 };
188 
189 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 23 2013 22:00:57 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KIO

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

kdelibs-4.10.5 API Reference

Skip menu "kdelibs-4.10.5 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal