[Differential] [Commented On] D4338: Feature: Add QObject interface class template

Friedrich W. H. Kossebau noreply at phabricator.kde.org
Mon Jan 30 15:17:13 UTC 2017


kossebau added a comment.


  For the input
  
  - Class Basics page: Identifier -> "IFooable"
  - Class Members page: "QString bar"
  - Template Options page: Interface identifier -> "org.foo.IFooable
  
  this is generated:
  
  ifooable.h:
  
    /*
     * <one line to give the library's name and an idea of what it does.>
     * Copyright (C) 2017  Hans Entwickler <email>
     * 
     * This library is free software; you can redistribute it and/or
     * modify it under the terms of the GNU Lesser General Public
     * License as published by the Free Software Foundation; either
     * version 2.1 of the License, or (at your option) any later version.
     * 
     * This library is distributed in the hope that it will be useful,
     * but WITHOUT ANY WARRANTY; without even the implied warranty of
     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     * Lesser General Public License for more details.
     * 
     * You should have received a copy of the GNU Lesser General Public
     * License along with this library; if not, write to the Free Software
     * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
     * 
     */
    
    #ifndef IFOOABLE_H
    #define IFOOABLE_H
    
    #include <QtPlugin>
    
    class IFooable
    {
    public:
        virtual ~IFooable();
    
        virtual QString bar() const = 0;
        virtual void setBar(const QString& bar) = 0;
    };
    
    Q_DECLARE_INTERFACE(IFooable, "org.foo.IFooable")
    
    #endif // IFOOABLE_H
  
  ifooable.cpp:
  
    /*
     * <one line to give the library's name and an idea of what it does.>
     * Copyright (C) 2017  Hans Entwickler <email>
     * 
     * This library is free software; you can redistribute it and/or
     * modify it under the terms of the GNU Lesser General Public
     * License as published by the Free Software Foundation; either
     * version 2.1 of the License, or (at your option) any later version.
     * 
     * This library is distributed in the hope that it will be useful,
     * but WITHOUT ANY WARRANTY; without even the implied warranty of
     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     * Lesser General Public License for more details.
     * 
     * You should have received a copy of the GNU Lesser General Public
     * License along with this library; if not, write to the Free Software
     * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
     * 
     */
    
    #include "ifooable.h"
    
    IFooable::~IFooable()
    {
    }

REPOSITORY
  R32 KDevelop

REVISION DETAIL
  https://phabricator.kde.org/D4338

EMAIL PREFERENCES
  https://phabricator.kde.org/settings/panel/emailpreferences/

To: kossebau, #kdevelop
Cc: mwolff, kdevelop-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20170130/430df6b1/attachment-0001.html>


More information about the KDevelop-devel mailing list