Back to index

salome-gui  6.5.0
LightApp_DataOwner.h
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 #ifndef LIGHTAPP_DATAOWNER_H
00024 #define LIGHTAPP_DATAOWNER_H
00025 
00026 #include "LightApp.h"
00027 #include "SUIT_DataOwner.h"
00028 
00029 #ifndef DISABLE_SALOMEOBJECT
00030   #include "SALOME_InteractiveObject.hxx"
00031 #endif
00032 
00033 
00037 class LIGHTAPP_EXPORT LightApp_DataOwner : public SUIT_DataOwner
00038 {
00039 public:
00040 #ifndef DISABLE_SALOMEOBJECT
00041     LightApp_DataOwner( const Handle(SALOME_InteractiveObject)& theIO );
00042 #endif
00043     LightApp_DataOwner( const QString& );
00044     virtual ~LightApp_DataOwner();
00045 
00046     // *** jfa: The below line has been put here 14.02.2007.
00047     // *** It cancels modifications from branch BR_Dev_For_4_0
00048     virtual QString keyString() const;
00049 
00050 #ifndef DISABLE_SALOMEOBJECT
00051     const Handle(SALOME_InteractiveObject)& IO() const;
00052 #endif
00053     QString entry() const;
00054 
00055 private:
00056     QString  myEntry;
00057 #ifndef DISABLE_SALOMEOBJECT
00058     Handle(SALOME_InteractiveObject) myIO;
00059 #endif
00060 };
00061 
00062 typedef SMART(LightApp_DataOwner) LightApp_DataOwnerPtr;
00063 
00064 #endif