Changeset 194 in pacpusframework for trunk/src


Ignore:
Timestamp:
Oct 24, 2013, 3:59:43 PM (11 years ago)
Author:
Marek Kurdej
Message:

Minor: NewComponent modifications.

Location:
trunk/src/_NewComponent
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/_NewComponent/CMakeLists.txt.in

    r190 r194  
    77create_export(EXPORT_HDR ${PROJECT_NAME})
    88pacpus_plugin(PLUGIN_CPP PLUGIN_HDR ${PROJECT_NAME})
    9 
    10 ################################################################################
    11 # Qt
    12 set(QT_USE_QTXML true)
    13 set(QT_USE_QTNETWORK true)
    14 include(${QT_USE_FILE})
    15 
    16 add_definitions(
    17     ${QT_DEFINITIONS}
    18 )
    199
    2010################################################################################
     
    4636set(MOC_FILES
    4737    ${PLUGIN_HDR}
    48     #@PACPUS_COMPONENT_NAME@.h
     38    @PACPUS_COMPONENT_NAME@.h
    4939)
    5040
  • trunk/src/_NewComponent/NewComponent.cpp.in

    r193 r194  
    4040void @PACPUS_COMPONENT_NAME@::addInputs()
    4141{
     42    // must inherit from QObject to use addInput
    4243    //addInput<InputType, @PACPUS_COMPONENT_NAME@>("input-name", &@PACPUS_COMPONENT_NAME@::processInput);
    4344}
     
    4546void @PACPUS_COMPONENT_NAME@::addOutputs()
    4647{
     48    // must inherit from QObject to use addOutput
    4749    //addOutput<OutputType, @PACPUS_COMPONENT_NAME@>("output-name");
    4850}
  • trunk/src/_NewComponent/NewComponent.h.in

    r193 r194  
    1616#define @PACPUS_COMPONENT_NAME_CAPS@_H
    1717
     18#include "@PACPUS_COMPONENT_NAME@Config.h"
     19
    1820#include <Pacpus/kernel/ComponentBase.h>
    19 //#include <QObject>
    2021
    21 #include "@PACPUS_COMPONENT_NAME@Config.h"
     22#include <QObject>
    2223
    2324namespace pacpus {
    2425
    2526class @PACPUS_COMPONENT_NAME_CAPS@_API @PACPUS_COMPONENT_NAME@
    26     // : public QObject
    27     // , public ComponentBase // must be after QObject
    28     : public ComponentBase
     27    : public QObject
     28    , public ComponentBase // must be after QObject
    2929{
    30     //Q_OBJECT
     30    Q_OBJECT
    3131
    3232public:
Note: See TracChangeset for help on using the changeset viewer.