home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / k3bbootitem.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-05-27  |  1.9 KB  |  67 lines

  1. /* 
  2.  *
  3.  * $Id: k3bbootitem.h 619556 2007-01-03 17:38:12Z trueg $
  4.  * Copyright (C) 2003 Sebastian Trueg <trueg@k3b.org>
  5.  *
  6.  * This file is part of the K3b project.
  7.  * Copyright (C) 1998-2007 Sebastian Trueg <trueg@k3b.org>
  8.  *
  9.  * This program is free software; you can redistribute it and/or modify
  10.  * it under the terms of the GNU General Public License as published by
  11.  * the Free Software Foundation; either version 2 of the License, or
  12.  * (at your option) any later version.
  13.  * See the file "COPYING" for the exact licensing terms.
  14.  */
  15.  
  16. #ifndef _K3B_BOOT_ITEM_H_
  17. #define _K3B_BOOT_ITEM_H_
  18.  
  19. #include "k3bfileitem.h"
  20.  
  21. class K3bBootItem : public K3bFileItem
  22. {
  23.  public:
  24.   K3bBootItem( const QString& fileName, K3bDataDoc* doc, K3bDirItem* dir, const QString& k3bName = 0 );
  25.   K3bBootItem( const K3bBootItem& );
  26.   ~K3bBootItem();
  27.  
  28.   K3bDataItem* copy() const;
  29.  
  30.   bool isHideable() const { return false; }
  31.  
  32.   bool isBootItem() const { return true; }
  33.  
  34.   enum imageType { FLOPPY, HARDDISK, NONE };
  35.  
  36.   void setNoBoot( bool b ) { m_noBoot = b; }
  37.   void setBootInfoTable( bool b ) { m_bootInfoTable = b; }
  38.   void setLoadSegment( int s ) { m_loadSegment = s; }
  39.   void setLoadSize( int s ) { m_loadSize = s; }
  40.   void setImageType( int t ) { m_imageType = t; }
  41.  
  42.   void setTempPath( const QString& p ) { m_tempPath = p; }
  43.  
  44.   bool noBoot() const { return m_noBoot; }
  45.   bool bootInfoTable() const { return m_bootInfoTable; }
  46.   int loadSegment() const { return m_loadSegment; }
  47.   int loadSize() const { return m_loadSize; }
  48.   int imageType() const { return m_imageType; }
  49.  
  50.   /**
  51.    * mkisofs changes boot images on disk. That is why the iso imager 
  52.    * buffers them and saves the path to the buffered copy here.
  53.    */
  54.   const QString& tempPath() const { return m_tempPath; }
  55.  
  56.  private:
  57.   bool m_noBoot;
  58.   bool m_bootInfoTable;
  59.   int m_loadSegment;
  60.   int m_loadSize;
  61.   int m_imageType;
  62.  
  63.   QString m_tempPath;
  64. };
  65.  
  66. #endif
  67.