~ubuntu-branches/ubuntu/vivid/kdesdk/vivid

« back to all changes in this revision

Viewing changes to okteta/kasten/controllers/view/viewprofiles/viewprofilesynccontroller.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-06-06 11:49:54 UTC
  • mfrom: (0.4.21)
  • Revision ID: package-import@ubuntu.com-20120606114954-rdls73fzlpzxglbx
Tags: 4:4.8.80-0ubuntu1
* New uptream beta release
* Update dont_export_private_classes.diff

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    This file is part of the Okteta Kasten module, made within the KDE community.
 
3
 
 
4
    Copyright 2010,2012 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 VIEWPROFILESYNCCONTROLLER_H
 
24
#define VIEWPROFILESYNCCONTROLLER_H
 
25
 
 
26
// lib
 
27
#include "oktetakastencontrollers_export.h"
 
28
#include <bytearrayviewprofile.h>
 
29
// Kasten gui
 
30
#include <abstractxmlguicontroller.h>
 
31
// Kasten core
 
32
#include <kastencore.h>
 
33
 
 
34
class KXMLGUIClient;
 
35
class QAction;
 
36
class QActionGroup;
 
37
 
 
38
 
 
39
namespace Kasten2
 
40
{
 
41
class ByteArrayViewProfileManager;
 
42
class ByteArrayViewProfileSynchronizer;
 
43
class ByteArrayView;
 
44
 
 
45
 
 
46
class OKTETAKASTENCONTROLLERS_EXPORT ViewProfileSyncController : public AbstractXmlGuiController
 
47
{
 
48
  Q_OBJECT
 
49
 
 
50
  public:
 
51
    explicit ViewProfileSyncController( KXMLGUIClient* guiClient,
 
52
                                        ByteArrayViewProfileManager* viewProfileManager,
 
53
                                        QWidget* parentWidget );
 
54
 
 
55
  public: // AbstractXmlGuiController API
 
56
    virtual void setTargetModel( AbstractModel* model );
 
57
 
 
58
  private Q_SLOTS: // update slots
 
59
    void onLocalSyncStateChanged( Kasten2::LocalSyncState localSyncState );
 
60
 
 
61
  private Q_SLOTS: // action slots
 
62
    void onCreateNewActionTriggered();
 
63
    void onResetChangesActionTriggered();
 
64
    void onSaveChangesActionTriggered();
 
65
 
 
66
  private:
 
67
    KXMLGUIClient* mGuiClient;
 
68
    ByteArrayViewProfileManager* mViewProfileManager;
 
69
    QWidget* mParentWidget;
 
70
 
 
71
    ByteArrayView* mByteArrayView;
 
72
    ByteArrayViewProfileSynchronizer* mByteArrayViewProfileSynchronizer;
 
73
 
 
74
    // view menu
 
75
    QAction* mCreateNewAction;
 
76
    QAction* mResetChangesAction;
 
77
    QAction* mSaveChangesAction;
 
78
};
 
79
 
 
80
}
 
81
 
 
82
#endif