• 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
abstractfilesystemexportjob_p.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 2008-2009,2011 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 ABSTRACTFILESYSTEMEXPORTJOB_P_H
24 #define ABSTRACTFILESYSTEMEXPORTJOB_P_H
25 
26 // lib
27 #include "abstractfilesystemexportjob.h"
28 #include <abstractexportjob_p.h>
29 // KDE
30 #include <KUrl>
31 
32 
33 namespace Kasten2
34 {
35 
36 class AbstractFileSystemExportJobPrivate : public AbstractExportJobPrivate
37 {
38  public:
39  AbstractFileSystemExportJobPrivate( AbstractFileSystemExportJob* parent,
40  AbstractModel* model, const AbstractModelSelection* selection, const KUrl& url );
41 
42  virtual ~AbstractFileSystemExportJobPrivate();
43 
44  public: // KJob API
45  virtual void start();
46 
47  public:
48  void completeExport( bool success );
49 
50  public:
51  AbstractModel* model() const;
52  const AbstractModelSelection* selection() const;
53  QFile* file() const;
54 
55  public: // slot
56  void exportToFile();
57 
58  protected:
59  Q_DECLARE_PUBLIC( AbstractFileSystemExportJob )
60 
61  protected:
62  AbstractModel* const mModel;
63  const AbstractModelSelection* const mSelection;
64  const KUrl mUrl;
65  QFile* mFile;
66  QString mWorkFilePath;
67 };
68 
69 
70 inline AbstractFileSystemExportJobPrivate::AbstractFileSystemExportJobPrivate( AbstractFileSystemExportJob* parent,
71  AbstractModel* model, const AbstractModelSelection* selection,
72  const KUrl& url)
73  : AbstractExportJobPrivate( parent ),
74  mModel( model ),
75  mSelection( selection ),
76  mUrl( url ),
77  mFile( 0 )
78 {}
79 
80 inline AbstractFileSystemExportJobPrivate::~AbstractFileSystemExportJobPrivate() {}
81 
82 inline AbstractModel* AbstractFileSystemExportJobPrivate::model() const { return mModel; }
83 inline const AbstractModelSelection* AbstractFileSystemExportJobPrivate::selection() const { return mSelection; }
84 inline QFile* AbstractFileSystemExportJobPrivate::file() const { return mFile; }
85 
86 
87 inline void AbstractFileSystemExportJobPrivate::start()
88 {
89  Q_Q( AbstractFileSystemExportJob );
90 
91  QMetaObject::invokeMethod( q, "exportToFile", Qt::QueuedConnection );
92 }
93 
94 }
95 
96 #endif
Kasten2::AbstractFileSystemExportJobPrivate::start
virtual void start()
Definition: abstractfilesystemexportjob_p.h:87
Kasten2::AbstractFileSystemExportJobPrivate::~AbstractFileSystemExportJobPrivate
virtual ~AbstractFileSystemExportJobPrivate()
Definition: abstractfilesystemexportjob_p.h:80
Kasten2::AbstractFileSystemExportJobPrivate::completeExport
void completeExport(bool success)
Kasten2::AbstractFileSystemExportJobPrivate::mUrl
const KUrl mUrl
Definition: abstractfilesystemexportjob_p.h:64
Kasten2::AbstractFileSystemExportJobPrivate
Definition: abstractfilesystemexportjob_p.h:36
Kasten2::AbstractFileSystemExportJobPrivate::mWorkFilePath
QString mWorkFilePath
Definition: abstractfilesystemexportjob_p.h:66
Kasten2::AbstractFileSystemExportJobPrivate::selection
const AbstractModelSelection * selection() const
Definition: abstractfilesystemexportjob_p.h:83
Kasten2::AbstractFileSystemExportJob
Definition: abstractfilesystemexportjob.h:42
abstractfilesystemexportjob.h
Kasten2::AbstractFileSystemExportJobPrivate::mFile
QFile * mFile
Definition: abstractfilesystemexportjob_p.h:65
Kasten2::AbstractModelSelection
Definition: abstractmodelselection.h:35
Kasten2::AbstractExportJobPrivate
Definition: abstractexportjob_p.h:32
Kasten2::AbstractFileSystemExportJobPrivate::file
QFile * file() const
Definition: abstractfilesystemexportjob_p.h:84
Kasten2::AbstractFileSystemExportJobPrivate::mModel
AbstractModel *const mModel
Definition: abstractfilesystemexportjob_p.h:62
Kasten2::AbstractFileSystemExportJobPrivate::AbstractFileSystemExportJobPrivate
AbstractFileSystemExportJobPrivate(AbstractFileSystemExportJob *parent, AbstractModel *model, const AbstractModelSelection *selection, const KUrl &url)
Definition: abstractfilesystemexportjob_p.h:70
Kasten2::AbstractFileSystemExportJobPrivate::model
AbstractModel * model() const
Definition: abstractfilesystemexportjob_p.h:82
Kasten2::AbstractFileSystemExportJobPrivate::exportToFile
void exportToFile()
Kasten2::AbstractModel
Definition: abstractmodel.h:40
abstractexportjob_p.h
Kasten2::AbstractFileSystemExportJobPrivate::mSelection
const AbstractModelSelection *const mSelection
Definition: abstractfilesystemexportjob_p.h:63
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