summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog/cmCursesCacheEntryComposite.h
blob: 64f17cceb7d374c1c90e4172e762aa3ded48d23f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef __cmCursesCacheEntryComposite_h
#define __cmCursesCacheEntryComposite_h

#include "../cmCacheManager.h"
#include "cmCursesLabelWidget.h"

class cmCursesCacheEntryComposite
{
public:
  cmCursesCacheEntryComposite(const char* key);
  cmCursesCacheEntryComposite(const char* key,
			      const cmCacheManager::CacheEntry& value, 
			      bool isNew);
  ~cmCursesCacheEntryComposite();
  const char* GetValue();

  friend class cmCursesMainForm;

protected:
  cmCursesCacheEntryComposite(const cmCursesCacheEntryComposite& from);
  void operator=(const cmCursesCacheEntryComposite&);

  cmCursesLabelWidget* m_Label;
  cmCursesLabelWidget* m_IsNewLabel;
  cmCursesWidget* m_Entry;
  std::string m_Key;
};

#endif // __cmCursesCacheEntryComposite_h