mirror of
https://github.com/martravi/wiiqt6.git
synced 2024-11-29 16:14:19 +01:00
28 lines
690 B
C
28 lines
690 B
C
|
#ifndef SHAREDCONTENTMAP_H
|
||
|
#define SHAREDCONTENTMAP_H
|
||
|
|
||
|
#include "includes.h"
|
||
|
|
||
|
class SharedContentMap
|
||
|
{
|
||
|
public:
|
||
|
SharedContentMap( QByteArray old = QByteArray() );
|
||
|
|
||
|
//checks that the content map is sane
|
||
|
//size should be correct, contents should be in numerical order
|
||
|
//if a path is given, it will check that the hashes in the map match up with the contents in the folder
|
||
|
bool Check( const QString &path = QString() );
|
||
|
|
||
|
QString GetAppFromHash( QByteArray hash );
|
||
|
QString GetNextEmptyCid();
|
||
|
|
||
|
void AddEntry( const QString &app, const QByteArray &hash );
|
||
|
|
||
|
const QByteArray Data(){ return data; }
|
||
|
|
||
|
private:
|
||
|
QByteArray data;
|
||
|
};
|
||
|
|
||
|
#endif // SHAREDCONTENTMAP_H
|