~ubuntu-branches/ubuntu/oneiric/totem/oneiric-updates

« back to all changes in this revision

Viewing changes to browser-plugin/totemBasicPlugin.h

Tags: 2.26.2-1
New upstream bugfix release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Totem Basic Plugin
2
 
 *
3
 
 * Copyright © 2004 Bastien Nocera <hadess@hadess.net>
4
 
 * Copyright © 2002 David A. Schleef <ds@schleef.org>
5
 
 * Copyright © 2008 Christian Persch
6
 
 *
7
 
 * This library is free software; you can redistribute it and/or
8
 
 * modify it under the terms of the GNU Library General Public
9
 
 * License as published by the Free Software Foundation; either
10
 
 * version 2 of the License, or (at your option) any later version.
11
 
 *
12
 
 * This library is distributed in the hope that it will be useful,
13
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
 
 * Library General Public License for more details.
16
 
 *
17
 
 * You should have received a copy of the GNU Library General Public
18
 
 * License along with this library; if not, write to the
19
 
 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20
 
 * Boston, MA 02110-1301  USA.
21
 
 */
22
 
 
23
 
#ifndef __BASIC_PLUGIN_H__
24
 
#define __BASIC_PLUGIN_H__
25
 
 
26
 
#include "totemNPClass.h"
27
 
#include "totemNPObject.h"
28
 
 
29
 
class totemBasicPlayer : public totemNPObject
30
 
{
31
 
  public:
32
 
    totemBasicPlayer (NPP);
33
 
    virtual ~totemBasicPlayer ();
34
 
 
35
 
  private:
36
 
  
37
 
    enum Methods {
38
 
      ePlay,
39
 
      eRewind,
40
 
      eStop
41
 
    };
42
 
 
43
 
    virtual bool InvokeByIndex (int aIndex, const NPVariant *argv, uint32_t argc, NPVariant *_result);
44
 
};
45
 
 
46
 
TOTEM_DEFINE_NPCLASS (totemBasicPlayer);
47
 
 
48
 
#endif /* __BASIC_PLUGIN_H__ */