Changeset 30 in pacpusframework for trunk/src/PacpusLib/ComponentBase.cpp


Ignore:
Timestamp:
Jan 8, 2013, 5:32:28 PM (12 years ago)
Author:
sgosseli
Message:

Major: improve the documentation of ComponentBase and use the new include style.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/PacpusLib/ComponentBase.cpp

    r3 r30  
    88*********************************************************************/
    99
    10 #include "kernel/ComponentBase.h"
     10#include <Pacpus/kernel/ComponentBase.h>
     11#include <Pacpus/kernel/ComponentManager.h>
     12#include <Pacpus/kernel/Log.h>
    1113
    12 #include "kernel/ComponentManager.h"
    13 #include "kernel/Log.h"
    14 
    15 namespace pacpus {
     14using namespace pacpus;
    1615
    1716DECLARE_STATIC_LOGGER("pacpus.core.ComponentBase");
    1817
    19 ComponentBase::ComponentBase(QString name)
     18ComponentBase::ComponentBase(const QString& name)
    2019{
    2120    LOG_TRACE("constructor");
     
    4039    LOG_TRACE("destructor");
    4140}
    42 
    43 //TODO
    44 //COMPONENT_CONFIGURATION ComponentBase::configureComponent(XmlComponentConfig config)
    45 //{
    46 //}
    4741
    4842int ComponentBase::startComponent()
     
    7569}
    7670
    77 // return the state of the component
     71// FIXME: this should be const.
    7872ComponentBase::COMPONENT_STATE ComponentBase::getState()
    7973{
     
    8579}
    8680
    87 } // namespace pacpus
     81bool ComponentBase::isConfigured() const
     82{
     83    return CONFIGURED_OK == configuration_;
     84}
Note: See TracChangeset for help on using the changeset viewer.