#ifndef __ASTYLE_ADAPTOR_H__
#define __ASTYLE_ADAPTOR_H__


#include <qstring.h>
#include <qtextstream.h>


#include "astyle.h"


class ASStringIterator : public astyle::ASSourceIterator
{
public:

  ASStringIterator(const QString &string);
  virtual ~ASStringIterator();

  virtual bool hasMoreLines() const;
  virtual string nextLine();


private:

  QString _content;
  QTextStream *_is;

};


class KDevFormatter : public astyle::ASFormatter
{
public:

  KDevFormatter();

};


#endif
