PAC-Suite 2.0(r200)

PropertyBranchInterface.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2008 by Matthias Nagl   *
00003  *   mnagl@uni-goettingen.de   *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 #ifndef PROPERTYBRANCHINTERFACE_H
00021 #define PROPERTYBRANCHINTERFACE_H
00022 
00023 #include <QString>
00024 
00029 class TransmittableProperty;
00030 class TransmittablePropertyData;
00031 
00032 class PropertyBranchInterface;
00033 
00034 class PropertyBranchInterface
00035 {
00036   public:
00037     virtual ~PropertyBranchInterface() {}
00038 
00039     virtual void setParentBranch(PropertyBranchInterface *p = 0) = 0;
00040     virtual PropertyBranchInterface * parentBranch() = 0;
00041     virtual const PropertyBranchInterface * parentBranch() const = 0;
00042 //    virtual void addChildBranch(PropertyBranchInterface *c) = 0;
00043     virtual void setBranchName(QString name) = 0;
00044     virtual QString branchName() const = 0;
00045     virtual QStringList branchNamePath() const = 0;
00046     virtual void setQSettingsSubBranch(QString qsprefix = QString()) = 0;
00047     virtual QString qSettingsSubBranch() const = 0;
00048     virtual QString qSettingsPath() const = 0;
00049     virtual void setBranchProperty(TransmittableProperty *p) = 0;
00050     virtual TransmittableProperty * transmittableBranchProperty() const = 0;
00052     virtual void forwardPropertyUpdate(TransmittablePropertyData &u) = 0;
00054     virtual void forwardConfirmationData(const TransmittablePropertyData *d) const = 0;
00056     virtual void forwardNewProperty(const TransmittableProperty *p) const = 0;
00058     virtual void forwardChildProperties() const = 0;
00060     virtual QList<const TransmittableProperty*> childProperties() const = 0;
00062     virtual void addChild(PropertyBranchInterface *child) = 0;
00063     virtual void removeChild(PropertyBranchInterface *child) = 0;
00065     virtual void addProperty(TransmittableProperty *property) const = 0;
00066     virtual void removeProperty(TransmittableProperty *property) const = 0;
00068     virtual void childPropertyChanged(TransmittableProperty *p) = 0;
00069   protected:
00071     virtual void propertyChanged(TransmittableProperty *p) = 0;
00072 };
00073 
00074 #endif
 All Classes Namespaces Files Functions Enumerations Enumerator Defines