/***************************************************************************
 *                                                                         *
 *   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.                                   *
 *                                                                         *
 *  copyright (C) 2005                                                     *
 *  Umbrello UML Modeller Authors <uml-devel@uml.sf.net>                   *
 ***************************************************************************/

#ifndef IDLIMPORT_H
#define IDLIMPORT_H

#include "nativeimportbase.h"

/**
 * CORBA IDL code import
 * @author Oliver Kellogg
 * Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org
 */
class IDLImport : public NativeImportBase {
public:
    IDLImport();
    virtual ~IDLImport();

    /**
     * Implement abstract operation from NativeImportBase.
     */
    bool parseStmt();

    /**
     * Reimplement operation from NativeImportBase.
     * Need to do this because we use the external C preprocessor.
     */
    void parseFile(const TQString& file);

    /**
     * Override operation from NativeImportBase.
     */
    bool preprocess(TQString& line);

    /**
     * Implement abstract operation from NativeImportBase.
     */
    void fillSource(const TQString& word);

protected:
    TQString joinTypename();
    bool m_isOneway, m_isReadonly, m_isAttribute;
};

#endif

