~ubuntu-branches/ubuntu/quantal/kde4libs/quantal

« back to all changes in this revision

Viewing changes to .pc/kubuntu_ksambashare.diff/kio/kio/ksambashare.h

  • Committer: Package Import Robot
  • Author(s): Felix Geyer, Philip Muškovac, Jonathan Thomas, Felix Geyer
  • Date: 2011-05-29 17:19:55 UTC
  • mfrom: (1.14.5 upstream) (0.1.19 sid)
  • Revision ID: package-import@ubuntu.com-20110529171955-nodep1593tuwyu6k
Tags: 4:4.6.3-1ubuntu1
[ Philip Muškovac]
* Drop kubuntu_83_fix_solid_network_status.diff
* Update Vcs links as the branch is owned by kubuntu-packagers now

[ Jonathan Thomas ]
* Drop kubuntu_06_user_disk_mounting. We no longer compile the hal
  backend, so this patch is useless.

[ Felix Geyer ]
* Merge from Debian unstable, remaining changes:
  - no build-dep on libaspell-dev
  - no build-dep on libfam-dev
  - kdelibs5-data: don't install kspell_aspell.desktop and
    usr/lib/kde4/kspell_aspell.so
  - kdelibs5-dev: don't install preparetips
  - Pass -DKDESU_USE_SUDO_DEFAULT=true to configure
  - dh_fixperms: exclude /usr/lib/kde4/libexec/fileshareset
  - set export KUBUNTU_DESKTOP_POT=kdelibs
  - don't apply use_dejavu_as_default_font.diff
  - don't apply kconf_update_migrate_from_kde3_icon_theme.diff
    - kdelibs5-data.install: drop usr/share/kde4/apps/kconf_update/kdeui.upd
  - don't build depend on libglu1-mesa-dev, not needed due to
    kubuntu_no_direct_gl_usage.diff
  - Add kdelibs5-data.links: link from /usr/share/doc/kde4 to kde for
    backwards compatible with old docs location
  - Keep the kdelibs5 transitional package
  - kdelibs5-dev.install: install ksambasharedata.h
  - kdelibs5-plugins: recommend ttf-dejavu-core instead of ttf-dejavu to save
    CD space.
* Add Breaks in addition to Replaces for moving files between packages.
* Drop no longer needed Breaks and Replaces.
* Completely drop kubuntu_51_launchpad_integration.diff and
  kubuntu_68_remove_applet_confirmation.diff.
  + Also drop the launchpad and kubuntu icons.
* Remove sequence numbers from kubuntu patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* This file is part of the KDE project
 
2
   Copyright (c) 2004 Jan Schaefer <j_schaef@informatik.uni-kl.de>
 
3
 
 
4
   This library is free software; you can redistribute it and/or
 
5
   modify it under the terms of the GNU Library General Public
 
6
   License version 2 as published by the Free Software Foundation.
 
7
 
 
8
   This library is distributed in the hope that it will be useful,
 
9
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
11
   Library General Public License for more details.
 
12
 
 
13
   You should have received a copy of the GNU Library General Public License
 
14
   along with this library; see the file COPYING.LIB.  If not, write to
 
15
   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
16
   Boston, MA 02110-1301, USA.
 
17
*/
 
18
 
 
19
#ifndef ksambashare_h
 
20
#define ksambashare_h
 
21
 
 
22
#include <QtCore/QObject>
 
23
 
 
24
#include <kio/kio_export.h>
 
25
 
 
26
/**
 
27
 * Similar functionality like KFileShare, 
 
28
 * but works only for Samba and do not need 
 
29
 * any suid script.
 
30
 * Singleton class, call instance() to get an instance.
 
31
 */
 
32
class KIO_EXPORT KSambaShare : public QObject 
 
33
{
 
34
Q_OBJECT
 
35
public:
 
36
  /**
 
37
   * Returns the one and only instance of KSambaShare
 
38
   */
 
39
  static KSambaShare* instance();
 
40
 
 
41
  /**
 
42
   * Whether or not the given path is shared by Samba.
 
43
   * @param path the path to check if it is shared by Samba.
 
44
   * @return whether the given path is shared by Samba.
 
45
   */
 
46
  bool isDirectoryShared( const QString & path ) const;
 
47
  
 
48
  /**
 
49
   * Returns a list of all directories shared by Samba.
 
50
   * The resulting list is not sorted.
 
51
   * @return a list of all directories shared by Samba.
 
52
   */
 
53
  QStringList sharedDirectories() const;
 
54
  
 
55
  /**
 
56
   * KSambaShare destructor. 
 
57
   * Do not call!
 
58
   * The instance is destroyed automatically!
 
59
   */ 
 
60
  virtual ~KSambaShare();
 
61
  
 
62
  /**
 
63
   * Returns the path to the used smb.conf file
 
64
   * or null if no file was found
 
65
   */
 
66
  QString smbConfPath() const;
 
67
  
 
68
Q_SIGNALS:
 
69
  /**
 
70
   * Emitted when the smb.conf file has changed
 
71
   */
 
72
  void changed();  
 
73
  
 
74
private:
 
75
  KSambaShare();
 
76
  class KSambaSharePrivate;
 
77
  KSambaSharePrivate * const d;
 
78
  
 
79
  Q_PRIVATE_SLOT( d, void _k_slotFileChange(const QString&) )
 
80
};
 
81
 
 
82
#endif