Logo Search packages:      
Sourcecode: karchiver version File versions  Download package

CRar Class Reference

#include <crar.h>

Inheritance diagram for CRar:

CArchive

List of all members.


Detailed Description

This class will manage the .rar archives
Author:
Eric Coquelle

Definition at line 28 of file crar.h.


Signals

void archiveReadEnded (void)
void newarchiveentryreaded ()
void sourceSoftwareSpotted ()

Public Member Functions

void addFilesToArchive (QStringList filestoadd, bool removeoriginalfiles, int action, QString relativepath=NULL)
bool canRepairArchive ()
int countFiles ()
void createArchive (QString nameofarchive, QStringList filestoadd, QString relativepath)
void displayArchiveContent (QString, QString)
void displayArchiveContent ()
void extractArchive (QString &extractpath, int extractall, QString &filetoextract)
void fetchArchiveInfos (int &nbfiles, int &archiveSize, int &totalSizeOfFiles, float &sigma, float &compressrate)
QStringList getAllFiles (bool fetchonlyselected=false)
QValueList
< CArchive::archiveElement > 
getAllFilesWithInfos (const KArchiveDirectory *, QString)
QValueList
< CArchive::archiveElement > 
getAllFilesWithInfos (bool fetchonlyselected=false)
QValueList
< CArchive::archiveElement > 
getAllFilesWithInfosInCurrentSubdir (QString, QString)
QStringList getArchiveComments ()
QString getArchiveName ()
QStringList getErrors ()
QCString getPassword ()
QString getRepairedArchiveName ()
bool isDirectory (QString entryname)
bool isSourceSoftware ()
void removeFilesFromArchive (QStringList filestodelete)
void repairCurrentArchive ()
void setArchiveName (QString archName)
void setDisplayArchiveByDirectories (bool)
void setPassword (QString archPassword)
void setRegExp (QRegExp)
void stopExtracting ()
void stopReading ()
bool supportDisplayByDirs ()
bool supportPassword ()
virtual void testCurrentArchiveIntegrity ()

Static Public Member Functions

static void setCompressRate (int rate)
static void setDisplayIcons (bool icons)
static void setIconSize (int size)
static void setKindOfDate (int d)
static void setOverwriteFilesWhenExtracting (bool overwr)
static void setReadArchiveWithStream (bool read)
static void setRecursiveMode (bool rec)
static void setWidgetComboDirectories (QComboBox *c)
static void setWidgetListView (QListView *l)
static void setWidgetProgressBar (QProgressBar *progress)

Static Public Attributes

static QListView * list = NULL

Protected Types

enum  headerStatus { BEGIN_HEADER, BEGIN_COMMENT, END_COMMENT, HEADER_PROCESSED }
enum  sourcesoftwareflags { HAS_CONFIGURE = 2, HAS_MAKEFILE_AM = 4 }

Protected Slots

void endProcess (KProcess *)
void endReadProcess (KProcess *)
void haveSdtErrExtract (KProcess *prpc, char *buffer, int length)
void haveSdtOut (KProcess *prpc, char *buffer, int length)
void haveSdtOutExtract (KProcess *prpc, char *buffer, int length)
void haveStdErr (KProcess *, char *buffer, int length)

Protected Member Functions

bool checkFiles (QString, int)
QStringList checkFilesOnly (QString &extractpath, int &extractall)
void displayArchiveContent (const KArchiveDirectory *, QString)
void displayRarArchiveContent (const char *line)
void displayRarArchiveContent (FILE *flot)
QDate getDateFromLocalizedDate (QString localizeddate)
QString getIndividualPermissions (bool b, QString perm)
QString getLocalizedDate (QDate date)
QString getReadablePermissions (mode_t mode)
void initializeReadingArchive ()
void setIcon (QString name, mode_t permissions, CListViewItem *elementListe)
void setIcon (QString name, QString permissions, CListViewItem *elementListe)

Protected Attributes

QStringList archivecomments
QString archiveName
int counter
QStringList errors
bool finished
int flag
int issourcesoftware
QValueList< KArchiveDirectory * > knowndirectories
QValueList< archiveElement > listArchiveElements
bool lookforsoucearchive
QCString m_buffer
QCString m_line1
bool mustreadoncemore
bool passwordrequired
CProcessus processadd
CProcessus processextract
int processingRarHeader
CProcessus processread
MyKRarrarfile
QRegExp regularexpression
QString repairedArchiveName
bool stopreadprocess

Static Protected Attributes

static QCString archivePassword = ""
static QComboBox * combodirectories = NULL
static int compressrate = 9
static bool displayicons = true
static int iconsize = 16
static int kindofdate = STANDARD_DATE
static bool overwrite = true
static QProgressBar * progressbar = NULL
static bool readArchiveWithStream = false
static bool recursivemode = true
static bool viewbydirectories = false

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index