2
* $Id: gnkvideo.cpp 3681 2011-04-12 10:53:31Z tovar $
5
* Copyright 2008 MetaEmotion S.L. All rights reserved.
8
#include "fooextension.h"
9
#include "fooextension/controllers/fooextensioncontroller.h"
10
#include <api/ientorno.h>
11
#include <api/internacionalizacion.h>
13
#include <wx/config.h>
14
#include <wx/msgdlg.h>
15
#include "fooextension/license.h"
18
//it's required to call this macro
19
IMPLEMENT_PrivateExtension(GnkFooExtension)
21
//parameters are related with provider, version... sid is the extension id, it's used to know if a file has been imported by this extension
22
//this information will be used in viewer open preference
23
GnkFooExtension::GnkFooExtension(): PrivateExtension(FOO_EXTENSION_SID, FOO_EXTENSION_PROVIDER, FOO_EXTENSION_DESCRIPTION, FOO_EXTENSION_VERSION, FOO_EXTENSION_SUB_VERSION, FOO_EXTENSION_SUB_RELEASE)
27
GnkFooExtension::~GnkFooExtension()
31
//returns extension controller module
32
GNC::GCS::IControladorModulo* GnkFooExtension::InitializeLibrary(GNC::GCS::IEntorno* pEntorno)
34
return new FooExtension::FooExtensionController(pEntorno);
37
//here you can implement your own security policy
38
bool GnkFooExtension::IsActivated()
43
//this extension is free to use
44
void GnkFooExtension::ShowActivationDialog(wxWindow* pParent)
46
wxMessageBox(_("FooExtension is Open Source"), _("Info"));