Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fwsetup-ng.git;a=commitdiff;h=38f052ae1c0c0226d1298373dc12d688b31b2a5b

commit 38f052ae1c0c0226d1298373dc12d688b31b2a5b
Author: James Buren <[email protected]>
Date:   Sat Aug 18 20:47:00 2012 -0500

move DosPartition to header file

diff --git a/DosPartition.cc b/DosPartition.cc
deleted file mode 100644
index 1b13f72..0000000
--- a/DosPartition.cc
+++ /dev/null
@@ -1,22 +0,0 @@
-#include "DosPartition.hh"
-
-DosPartition::DosPartition()
-{
-  _dos_type = 0;
-
-  _dos_active = false;
-}
-
-DosPartition::~DosPartition()
-{
-}
-
-void DosPartition::setType(unsigned char type)
-{
-  _dos_type = type;
-}
-
-void DosPartition::setActive(bool active)
-{
-  _dos_active = active;
-}
diff --git a/DosPartition.hh b/DosPartition.hh
index 55d9fcc..d50f3c2 100644
--- a/DosPartition.hh
+++ b/DosPartition.hh
@@ -6,10 +6,12 @@ class DosPartition : public Partition
{

public:
-  DosPartition();
-  ~DosPartition();
-  void setType(unsigned char type);
-  virtual void setActive(bool active);
+  DosPartition() { _dos_type = 0, _dos_active = false; }
+  ~DosPartition() { }
+  void setType(unsigned char type) { _dos_type = type; }
+  virtual void setActive(bool active) { _dos_active = true; }
+  unsigned char getType() { return _dos_type; }
+  virtual bool getActive(bool active) { return _dos_active; }

protected:
unsigned char _dos_type;
diff --git a/Partition.hh b/Partition.hh
index 9d97834..4f7f7df 100644
--- a/Partition.hh
+++ b/Partition.hh
@@ -14,11 +14,12 @@ public:
void setStart(unsigned long long start) { _start = start; }
void setEnd(unsigned long long end) { _end = end; }
void setSectors(unsigned long long sectors) { _sectors = sectors; }
+  virtual void setActive(bool active) { }
unsigned long long getNumber() { return _number; }
unsigned long long getStart() { return _start; }
unsigned long long getEnd() { return _end; }
unsigned long long getSectors() { return _sectors; }
-  virtual void setActive(bool active) { }
+  virtual bool getActive(bool active) { return true; }

protected:
unsigned long long _number;
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to