Changeset 39715f1


Ignore:
Timestamp:
12/23/14 08:49:10 (4 days ago)
Author:
Kris Moore <kris@…>
Branches:
master
Children:
d87414e
Parents:
1b3ce06
Message:

Remove some old addMBR / deleteMBR functions from pc-installgui

Location:
src-qt5/pc-installgui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src-qt5/pc-installgui/backend.cpp

    r3667cdb r39715f1  
    1717  if (p.waitForFinished()) { 
    1818  } 
    19 } 
    20  
    21 int Backend::deleteMBRPart(QString Slice, QString &output) 
    22 { 
    23   QStringList list; 
    24   QString line; 
    25  
    26   Process p(QStringList() << "delete-part" << Slice); 
    27   if(p.waitForFinished()) { 
    28     while (p.canReadLine()) { 
    29       line = line + p.readLine().simplified() + "\n"; 
    30     } 
    31   } 
    32   output = line; 
    33   return p.exitCode(); 
    34 } 
    35  
    36 int Backend::addMBRPart(QString Disk, int size, QString &output) 
    37 { 
    38   QStringList list; 
    39   QString tmp; 
    40  
    41   Process p(QStringList() << "create-part" << Disk << tmp.setNum(size)); 
    42   if(p.waitForFinished()) { 
    43     while (p.canReadLine()) { 
    44       output = output + p.readLine().simplified() + "\n"; 
    45     } 
    46   } 
    47   return p.exitCode(); 
    4819} 
    4920 
  • src-qt5/pc-installgui/backend.h

    r3667cdb r39715f1  
    6060    static QList<QStringList> availComponents(); 
    6161    static int systemMemory(); 
    62     static int deleteMBRPart(QString Slice, QString &output); 
    63     static int addMBRPart(QString Disk, int size, QString &output); 
    6462    static QList<QStringList> getPackageData(bool &found, QString pkgset); 
    6563    //static QList<QStringList> slices(); 
Note: See TracChangeset for help on using the changeset viewer.