~ubuntu-branches/ubuntu/raring/kdevplatform/raring

« back to all changes in this revision

Viewing changes to plugins/dashboard/dashboardpluginloader.h

  • Committer: Package Import Robot
  • Author(s): Rohan Garg
  • Date: 2012-01-17 03:21:56 UTC
  • mfrom: (0.3.15)
  • Revision ID: package-import@ubuntu.com-20120117032156-toarhfq5ihtpvm2p
Tags: 1.2.81-0ubuntu1
* New upstream release
  - Refreshed kubuntu_01_appmenu_fix.diff
  - Bump SONAME for kdevplatform and libsublime
    + Add appropriate Breaks/Replaces
  - Refresh install files

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * This file is part of KDevelop
 
3
 * Copyright 2010 Aleix Pol Gonzalez <aleixpol@kde.org>
 
4
 *
 
5
 * This program is free software; you can redistribute it and/or modify
 
6
 * it under the terms of the GNU Library General Public License as
 
7
 * published by the Free Software Foundation; either version 2 of the
 
8
 * License, or (at your option) any later version.
 
9
 *
 
10
 * This program is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public
 
16
 * License along with this program; if not, write to the
 
17
 * Free Software Foundation, Inc.,
 
18
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
19
 */
 
20
 
 
21
#ifndef DASHBOARDPLUGINLOADER_H
 
22
#define DASHBOARDPLUGINLOADER_H
 
23
 
 
24
#include <plasma/pluginloader.h>
 
25
#include <plasma/dataengine.h>
 
26
 
 
27
class DashboardDataEngine;
 
28
namespace KDevelop
 
29
{
 
30
    class IProject;
 
31
}
 
32
 
 
33
class DashboardPluginLoader : public Plasma::PluginLoader
 
34
{
 
35
    public:
 
36
        DashboardPluginLoader();
 
37
        
 
38
        virtual Plasma::DataEngine* internalLoadDataEngine(const QString& name);
 
39
        
 
40
        QWeakPointer<DashboardDataEngine> engine();
 
41
        
 
42
        static DashboardPluginLoader* self();
 
43
    private:
 
44
        static DashboardPluginLoader* s_loader;
 
45
        QWeakPointer<DashboardDataEngine> m_engine;
 
46
};
 
47
 
 
48
#endif // DASHBOARDPLUGINLOADER_H