projects
/
qtrapids
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- License texts modified to GPLv2
[qtrapids]
/
src
/
plugins
/
PluginInterface.h
diff --git
a/src/plugins/PluginInterface.h
b/src/plugins/PluginInterface.h
index
a5ea554
..
f3a8f15
100644
(file)
--- a/
src/plugins/PluginInterface.h
+++ b/
src/plugins/PluginInterface.h
@@
-1,11
+1,9
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2009 by Lassi Väätämöinen *
- * lassi.vaatamoinen@ixonos.com *
+ * Copyright (C) 2010 by Ixonos Plc *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
+ * the Free Software Foundation; version 2 of the License. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
@@
-56,13
+54,14
@@
namespace qtrapids
/// @todo Additional functionality request constants.
enum PluginRequest {
OPEN_FILE,
/// @todo Additional functionality request constants.
enum PluginRequest {
OPEN_FILE,
+ READ_BUFFER,
UNKNOWN_REQUEST
};
/// @brief Sets the plugin GUI element to host application
/// @note It is up to the host application to decide how to manage
/// and show the actual widget.
UNKNOWN_REQUEST
};
/// @brief Sets the plugin GUI element to host application
/// @note It is up to the host application to decide how to manage
/// and show the actual widget.
- virtual bool setGui(QWidget* widget, PluginWidgetType type = UNKNOWN_TYPE) = 0;
+ virtual bool setGui(QWidget* widget, PluginWidgetType type = UNKNOWN_TYPE, PluginInterface* plugin = NULL) = 0;
/// @brief Adds additional plugin wigdets to the host application.
/// This functio can be called by the plugin recursively, i.e. when GUI events occur
/// @brief Adds additional plugin wigdets to the host application.
/// This functio can be called by the plugin recursively, i.e. when GUI events occur
@@
-102,6
+101,11
@@
namespace qtrapids
/// @brief Initializes the plugin instance.
virtual void initialize(PluginHostInterface* host, Info info = Info()) = 0;
/// @brief Initializes the plugin instance.
virtual void initialize(PluginHostInterface* host, Info info = Info()) = 0;
+
+ /// @brief Returns plugin identifier to be used by the host application
+ /// @returns Plugin identifier as string representation.
+ virtual QString identifier() = 0;
+
virtual QWidget* getGui() = 0;
};
virtual QWidget* getGui() = 0;
};