~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to languages/cpp/app_templates/opienet/simplemodule.h

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2006-05-23 18:39:42 UTC
  • Revision ID: james.westby@ubuntu.com-20060523183942-hucifbvh68k2bwz7
Tags: upstream-3.3.2
Import upstream version 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef %{APPNAME}_NETWORK_MODULE_H
 
2
#define %{APPNAME}_NETWORK_MODULE_H
 
3
 
 
4
#include <module.h>
 
5
 
 
6
class %{APPNAME}Module : Module {
 
7
 
 
8
signals:
 
9
    void updateInterface(Interface* i );
 
10
 
 
11
public:
 
12
    %{APPNAME}Module();
 
13
    ~%{APPNAME}Module();
 
14
 
 
15
    const QString type() {return QString::fromLatin1("vpn" );}
 
16
    void setProfile( const QString& ) {}
 
17
    bool isOwner( Interface* );
 
18
    QWidget *configure( Interface* );
 
19
    QWidget *information(  Interface* );
 
20
    QList<Interface> getInterfaces();
 
21
    void possibleNewInterfaces( QMap<QString, QString>& );
 
22
    Interface *addNewInterface( const QString& );
 
23
    bool remove( Interface* iface );
 
24
    QString getPixmapName( Interface*  ) {return QString::fromLatin1("Tux"); }
 
25
    void receive( const QCString&, const QByteArray& ar ) {} // don't listen
 
26
private:
 
27
    QList<Interface> m_interfaces;
 
28
};
 
29
 
 
30
extern "C" {
 
31
    void* create_plugin() {
 
32
        return new %{APPNAME}Module();
 
33
    }
 
34
};
 
35
 
 
36
#endif