• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

okteta

  • sources
  • kde-4.12
  • kdesdk
  • okteta
  • libs
  • kasten
  • core
  • io
  • filesystem
abstractmodelfilesystemsynchronizer.h
Go to the documentation of this file.
1 /*
2  This file is part of the Kasten Framework, made within the KDE community.
3 
4  Copyright 2007-2009 Friedrich W. H. Kossebau <kossebau@kde.org>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Lesser General Public
8  License as published by the Free Software Foundation; either
9  version 2.1 of the License, or (at your option) version 3, or any
10  later version accepted by the membership of KDE e.V. (or its
11  successor approved by the membership of KDE e.V.), which shall
12  act as a proxy defined in Section 6 of version 3 of the license.
13 
14  This library is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  Lesser General Public License for more details.
18 
19  You should have received a copy of the GNU Lesser General Public
20  License along with this library. If not, see <http://www.gnu.org/licenses/>.
21 */
22 
23 #ifndef ABSTRACTMODELFILESYSTEMSYNCHRONIZER_H
24 #define ABSTRACTMODELFILESYSTEMSYNCHRONIZER_H
25 
26 // lib
27 #include <abstractmodelsynchronizer.h>
28 
29 class KDirWatch;
30 class QDateTime;
31 
32 
33 namespace Kasten2
34 {
35 class AbstractModelFileSystemSynchronizerPrivate;
36 
37 
38 class KASTENCORE_EXPORT AbstractModelFileSystemSynchronizer : public AbstractModelSynchronizer
39 {
40  Q_OBJECT
41 
42  friend class AbstractFileSystemLoadJobPrivate;
43  friend class AbstractFileSystemConnectJobPrivate;
44  friend class AbstractFileSystemSyncFromRemoteJobPrivate;
45  friend class AbstractFileSystemSyncWithRemoteJobPrivate;
46  friend class AbstractFileSystemSyncToRemoteJobPrivate;
47 
48  protected:
49  explicit AbstractModelFileSystemSynchronizer( AbstractModelFileSystemSynchronizerPrivate* d );
50 
51  public:
52  AbstractModelFileSystemSynchronizer();
53 
54  virtual ~AbstractModelFileSystemSynchronizer();
55 
56  public: // AbstractModelSynchronizer API
57  virtual RemoteSyncState remoteSyncState() const;
58 
59  protected:
60 // QDataTime lastModifed() const;
61 
62  protected:
63  void setRemoteState( RemoteSyncState remoteState );
64  void setFileDateTimeOnSync( const QDateTime& fileDateTime );
65 
66  void startFileWatching();
67  void stopFileWatching();
68  void pauseFileWatching();
69  void unpauseFileWatching();
70 
71  void startNetworkWatching();
72  void stopNetworkWatching();
73 
74  protected:
75  Q_PRIVATE_SLOT( d_func(), void onFileDirty( const QString& filePath ) )
76  Q_PRIVATE_SLOT( d_func(), void onFileCreated( const QString& filePath ) )
77  Q_PRIVATE_SLOT( d_func(), void onFileDeleted( const QString& filePath ) )
78  Q_PRIVATE_SLOT( d_func(), void onNetworkConnect() )
79  Q_PRIVATE_SLOT( d_func(), void onNetworkDisconnect() )
80 
81  protected:
82  Q_DECLARE_PRIVATE( AbstractModelFileSystemSynchronizer )
83 };
84 
85 }
86 
87 #endif
Kasten2::AbstractFileSystemConnectJobPrivate
Definition: abstractfilesystemconnectjob_p.h:37
Kasten2::AbstractModelFileSystemSynchronizerPrivate
Definition: abstractmodelfilesystemsynchronizer_p.h:37
Kasten2::AbstractFileSystemSyncToRemoteJobPrivate
Definition: abstractfilesystemsynctoremotejob_p.h:38
Kasten2::AbstractFileSystemSyncFromRemoteJobPrivate
Definition: abstractfilesystemsyncfromremotejob_p.h:39
Kasten2::RemoteSyncState
RemoteSyncState
Definition: kastencore.h:39
Kasten2::AbstractFileSystemLoadJobPrivate
Definition: abstractfilesystemloadjob_p.h:36
abstractmodelsynchronizer.h
KASTENCORE_EXPORT
#define KASTENCORE_EXPORT
Definition: kastencore_export.h:36
Kasten2::AbstractModelSynchronizer
possible actions:
Definition: abstractmodelsynchronizer.h:61
Kasten2::AbstractModelFileSystemSynchronizer
Definition: abstractmodelfilesystemsynchronizer.h:38
Kasten2::AbstractFileSystemSyncWithRemoteJobPrivate
Definition: abstractfilesystemsyncwithremotejob_p.h:36
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

okteta

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

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



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