preparing export to html-log

This commit is contained in:
floty
2011-11-25 21:51:27 +00:00
parent ca9a4eba7e
commit 9cd7b9f193
2 changed files with 29 additions and 1 deletions
+26 -1
View File
@@ -66,7 +66,11 @@ guiLog::guiLog(gameTableImpl* w, ConfigFile *c) : myW(w), myConfig(c), myLogDir(
myLogDir = new QDir(QString::fromUtf8(myConfig->readConfigString("LogDir").c_str()));
QDateTime currentTime = QDateTime::currentDateTime();
myHtmlLogFile = new QFile(myLogDir->absolutePath()+"/pokerth-log-"+currentTime.toString("yyyy-MM-dd_hh.mm.ss")+".html");
if(SQLITE_LOG) {
myHtmlLogFile = new QFile(myLogDir->absolutePath()+"/pokerth-log-"+currentTime.toString("yyyy-MM-dd_hh.mm.ss")+"_old.html");
} else {
myHtmlLogFile = new QFile(myLogDir->absolutePath()+"/pokerth-log-"+currentTime.toString("yyyy-MM-dd_hh.mm.ss")+".html");
}
//Logo-Pixmap extrahieren
QPixmap logoChipPixmapFile(":/gfx/logoChip3D.png");
@@ -575,3 +579,24 @@ void guiLog::flushLogAtGame(int gameID)
}
}
}
void guiLog::exportLogPdbToHtml(string fileString)
{
cout << "Export pdb to html" << endl;
}
void guiLog::exportLogPdbToTxt(string fileString)
{
cout << "Export pdb to txt" << endl;
}
void guiLog::showLog(string fileString)
{
cout << "show Log" << endl;
}
+3
View File
@@ -55,6 +55,9 @@ public slots:
void logPlayerWinGame(QString playerName, int gameID);
void flushLogAtGame(int gameID);
void flushLogAtHand();
void exportLogPdbToHtml(std::string fileString);
void exportLogPdbToTxt(std::string fileString);
void showLog(std::string fileString);
public: