~didrocks/unity/launcher-bug-fix-fest

« back to all changes in this revision

Viewing changes to src/PluginAdapter.h

Import the work done so far with Compiz

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef PLUGINADAPTER_H
 
2
#define PLUGINADAPTER_H
 
3
 
 
4
/* Compiz */
 
5
#include <core/core.h>
 
6
 
 
7
#include <sigc++/sigc++.h>
 
8
 
 
9
class PluginAdapter : public sigc::trackable
 
10
{
 
11
public:
 
12
    static PluginAdapter * Default ();
 
13
 
 
14
    static void Initialize (CompScreen *screen);
 
15
 
 
16
    ~PluginAdapter();
 
17
    
 
18
    std::string * MatchStringForXids (std::list<Window> *windows);
 
19
    
 
20
    void SetScaleAction (CompAction *scale);
 
21
    
 
22
    void SetExpoAction (CompAction *expo);
 
23
    
 
24
    void InitiateScale (std::string *match);
 
25
    
 
26
    void InitiateExpo ();
 
27
    
 
28
protected:
 
29
    PluginAdapter(CompScreen *screen);
 
30
 
 
31
private:
 
32
    CompScreen *m_Screen;
 
33
    CompAction *m_ExpoAction;
 
34
    CompAction *m_ScaleAction;
 
35
    
 
36
    static PluginAdapter *_default;
 
37
};
 
38
 
 
39
#endif