Sorry for my english ...

I am trying to developer a Application Plugin-Aware
following the "C++ GUI Programming with Qt 4 - 2nd Edition" book, but i am having a lot of trouble.

- I am use the "QT Creator"
- I am in the windows
- If a understand, i have to create a .dll file that is is my plugin, and the main app will read.
- To make the plugin i choose the "C++ Library" option in the IDE

I am attach the interface and the class that implements its (the is the plugin)

Error:
expected class-name before '(' token - Iplugin.h 12
expected initializer before '*' token - Iplugin.h 18
return type `struct QStringList' is incomplete - pluginteste.cpp 5
invalid use of undefined type `struct QStringList' - pluginteste.cpp 6
forward declaration of `struct QStringList' - qstring.h 86

Qt Code:
  1. // Iplugin.h
  2.  
  3. #ifndef IPLUGIN_H
  4. #define IPLUGIN_H
  5.  
  6. #include <QtPlugin>
  7.  
  8.  
  9. class QStringList;
  10.  
  11. class Iplugin
  12. {
  13. public:
  14. virtual ~TextArtInterface() { }
  15. virtual QStringList effects() const = 0;
  16.  
  17. };
  18.  
  19. Q_DECLARE_INTERFACE(TextArtInterface,
  20. "com.software-inc.TextArt.TextArtInterface/1.0")
  21.  
  22.  
  23. #endif // IPLUGIN_H
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. //pluginteste.h
  2.  
  3. #ifndef PLUGINTESTE_H
  4. #define PLUGINTESTE_H
  5.  
  6. #include <QObject>
  7. #include "Iplugin.h"
  8.  
  9.  
  10. class Pluginteste : public QObject , public Iplugin {
  11.  
  12. Q_OBJECT
  13. Q_INTERFACES(Iplugin)
  14.  
  15. public:
  16. QStringList effects() const;
  17.  
  18. };
  19.  
  20. #endif // PLUGINTESTE_H
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. //pluginteste.cpp
  2.  
  3. #include "pluginteste.h"
  4.  
  5.  
  6. QStringList Pluginteste::effects() const
  7. {
  8. return QStringList() << "Plain" << "Outline" << "Shadow";
  9. }
  10.  
  11. Q_EXPORT_PLUGIN2(pluginteste, Pluginteste);
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. //pluginteste.pro
  2.  
  3. # -------------------------------------------------
  4. # Project created by QtCreator 2009-04-22T20:24:13
  5. # -------------------------------------------------
  6. QT -= gui
  7. TARGET = pluginteste
  8. TEMPLATE = lib
  9. CONFIG += plugin
  10. SOURCES += pluginteste.cpp
  11. HEADERS += pluginteste.h \
  12. Iplugin.h
To copy to clipboard, switch view to plain text mode