srs5694 | fad0642 | 2010-02-19 17:19:17 -0500 | [diff] [blame] | 1 | /* |
| 2 | <one line to give the program's name and a brief idea of what it does.> |
| 3 | Copyright (C) <year> <name of author> |
| 4 | |
| 5 | This program is free software; you can redistribute it and/or modify |
| 6 | it under the terms of the GNU General Public License as published by |
| 7 | the Free Software Foundation; either version 2 of the License, or |
| 8 | (at your option) any later version. |
| 9 | |
| 10 | This program is distributed in the hope that it will be useful, |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | GNU General Public License for more details. |
| 14 | |
| 15 | You should have received a copy of the GNU General Public License along |
| 16 | with this program; if not, write to the Free Software Foundation, Inc., |
| 17 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 18 | |
| 19 | */ |
| 20 | |
| 21 | #ifndef __GPTDATATEXT_H |
| 22 | #define __GPTDATATEXT_H |
| 23 | |
| 24 | #include "gpt.h" |
| 25 | |
| 26 | using namespace std; |
| 27 | |
| 28 | class GPTDataTextUI : public GPTData { |
| 29 | protected: |
| 30 | public: |
| 31 | GPTDataTextUI(void); |
| 32 | GPTDataTextUI(string filename); |
| 33 | ~GPTDataTextUI(void); |
| 34 | |
| 35 | // Extended (interactive) versions of some base-class functions |
| 36 | WhichToUse UseWhichPartitions(void); |
| 37 | int XFormDisklabel(void); |
| 38 | |
| 39 | // Request information from the user (& possibly do something with it) |
| 40 | uint32_t GetPartNum(void); |
| 41 | void ResizePartitionTable(void); |
| 42 | void CreatePartition(void); |
| 43 | void DeletePartition(void); |
| 44 | void ChangePartType(void); |
| 45 | void SetAttributes(uint32_t partNum); |
| 46 | int SwapPartitions(void); |
| 47 | int DestroyGPTwPrompt(void); // Returns 1 if user proceeds |
| 48 | void ShowDetails(void); |
| 49 | void MakeHybrid(void); |
srs5694 | 55d9261 | 2010-03-07 22:16:07 -0500 | [diff] [blame] | 50 | int AssignPrimaryOrLogical(PartNotes& notes); |
srs5694 | fad0642 | 2010-02-19 17:19:17 -0500 | [diff] [blame] | 51 | int XFormToMBR(void); // convert GPT to MBR, wiping GPT afterwards. Returns 1 if successful |
| 52 | }; // class GPTDataTextUI |
| 53 | |
| 54 | int GetMBRTypeCode(int defType); |
| 55 | |
| 56 | #endif // __GPTDATATEXT_H |