~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to plasma/generic/scriptengines/google_gadgets/floating_decorator.h

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
  Copyright 2008 Google Inc.
 
3
 
 
4
  Licensed under the Apache License, Version 2.0 (the "License");
 
5
  you may not use this file except in compliance with the License.
 
6
  You may obtain a copy of the License at
 
7
 
 
8
       http://www.apache.org/licenses/LICENSE-2.0
 
9
 
 
10
  Unless required by applicable law or agreed to in writing, software
 
11
  distributed under the License is distributed on an "AS IS" BASIS,
 
12
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
13
  See the License for the specific language governing permissions and
 
14
  limitations under the License.
 
15
*/
 
16
 
 
17
#ifndef GGADGET_FLOATING_DECORATOR_H__
 
18
#define GGADGET_FLOATING_DECORATOR_H__
 
19
 
 
20
#include <ggadget/main_view_decorator_base.h>
 
21
#include "plasma_view_host.h"
 
22
 
 
23
namespace ggadget {
 
24
 
 
25
class FloatingDecorator : public MainViewDecoratorBase {
 
26
 public:
 
27
  FloatingDecorator(PlasmaViewHost *host);
 
28
  virtual ~FloatingDecorator();
 
29
  virtual void OnAddDecoratorMenuItems(MenuInterface *menu);
 
30
  virtual bool ShowDecoratedView(bool modal, int flags,
 
31
                                 Slot1<bool, int> *feedback_handler);
 
32
 
 
33
 private:
 
34
  GadgetInfo *info;
 
35
  DISALLOW_EVIL_CONSTRUCTORS(FloatingDecorator);
 
36
};
 
37
 
 
38
} // namespace ggadget
 
39
 
 
40
#endif