Salome HOME
Join modifications from branch BR_DEBUG_3_2_0b1
[modules/gui.git] / src / LightApp / LightApp_DataOwner.h
1 // Copyright (C) 2005  OPEN CASCADE, CEA/DEN, EDF R&D, PRINCIPIA R&D
2 // 
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either 
6 // version 2.1 of the License.
7 // 
8 // This library is distributed in the hope that it will be useful 
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of 
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public  
14 // License along with this library; if not, write to the Free Software 
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 #ifndef LIGHTAPP_DATAOWNER_H
21 #define LIGHTAPP_DATAOWNER_H
22
23 #include "LightApp.h"
24 #include "SUIT_DataOwner.h"
25
26 #ifndef DISABLE_SALOMEOBJECT
27   #include "SALOME_InteractiveObject.hxx"
28 #endif
29
30 /*!
31   This class provide data owner objects.
32 */
33 class LIGHTAPP_EXPORT LightApp_DataOwner : public SUIT_DataOwner
34 {
35 public:
36 #ifndef DISABLE_SALOMEOBJECT
37     LightApp_DataOwner( const Handle(SALOME_InteractiveObject)& theIO );
38 #endif
39     LightApp_DataOwner( const QString& );
40     virtual ~LightApp_DataOwner();
41
42     virtual bool isEqual( const SUIT_DataOwner& ) const;
43     virtual bool operator<( const SUIT_DataOwner& ) const;
44
45 #ifndef DISABLE_SALOMEOBJECT
46     const Handle(SALOME_InteractiveObject)& IO() const;
47 #endif
48     QString entry() const;
49
50 private:
51     QString  myEntry;
52 #ifndef DISABLE_SALOMEOBJECT
53     Handle(SALOME_InteractiveObject) myIO;
54 #endif
55 };
56
57 typedef SMART(LightApp_DataOwner) LightApp_DataOwnerPtr;
58
59 #endif