plugin.h
来自「Amarok是一款在LINUX或其他类UNIX操作系统中运行的音频播放器软件。 」· C头文件 代码 · 共 53 行
H
53 行
// Author: Mark Kretschmann (C) Copyright 2004// Copyright: See COPYING file that comes with this distribution#ifndef AMAROK_PLUGIN_H#define AMAROK_PLUGIN_H#include <config.h>#include "amarok_export.h"#define AMAROK_EXPORT_PLUGIN( classname ) \ extern "C" { \ KDE_EXPORT Amarok::Plugin* create_plugin() { return new classname; } \ }#include <qmap.h>#include <qstring.h>class QWidget;namespace Amarok{ class PluginConfig; class LIBAMAROK_EXPORT Plugin { public: virtual ~Plugin(); /** * TODO @param parent you must parent the widget to parent * @return the configure widget for your plugin, create it on the heap! */ //TODO rename configureWidget( QWidget *parent ) virtual PluginConfig* configure() const { return 0; } void addPluginProperty( const QString& key, const QString& value ); QString pluginProperty( const QString& key ); bool hasPluginProperty( const QString& key ); protected: Plugin(); private: QMap<QString, QString> m_properties; };} //namespace Amarok#endif /* AMAROK_PLUGIN_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?