reload 수정

lock tables 수정 

git-svn-id: svn://192.168.0.12/source@90 8346c931-da38-4b9b-9d4c-e48b93cbd075
This commit is contained in:
admin
2015-05-05 02:41:55 +00:00
parent f1cf382220
commit a9832c62e5
4 changed files with 42 additions and 10 deletions

View File

@@ -99,6 +99,7 @@ void SDaumCafeManage::processFinished(QProcess *_pPro,QString _strOut)
case E_PROCESS_LIST_FINISH_WAIT:
{
m_bLast = false;
bool reloaded = false;
if (_strOut.right(4) == "last" || m_ncList >= 1000)
m_bLast = true;
@@ -107,11 +108,13 @@ void SDaumCafeManage::processFinished(QProcess *_pPro,QString _strOut)
if (_strOut.right(5) == "block")
{
reloaded = true;
ReLoadList();
}
if(_strOut.right(7) == "loading")
{
reloaded = true;
ReLoadList();
}
@@ -122,12 +125,19 @@ void SDaumCafeManage::processFinished(QProcess *_pPro,QString _strOut)
{
if(_strOut.split("\n").at(2).trimmed().length() == 0)
{
ReLoadList();
if(reloaded == false)
{
ReLoadList();
}
}
}
else
ReLoadList();
{
if(reloaded == false)
{
ReLoadList();
}
}
m_strListURL.clear();
foreach(QString str,_strOut.split("\n"))

View File

@@ -95,16 +95,19 @@ void SNaverBlogManage::processFinished(QProcess *pPro,QString _strOut)
case E_PROCESS_LIST_FINISH_WAIT:
{
m_bLast = false;
bool reloaded = false;
if (_strOut.right(4) == "last" || m_ncList >= 991)
m_bLast = true;
if (_strOut.right(5) == "block")
{
reloaded = true;
ReLoadList();
}
if(_strOut.right(7) == "loading")
{
reloaded = true;
ReLoadList();
}
@@ -115,12 +118,19 @@ void SNaverBlogManage::processFinished(QProcess *pPro,QString _strOut)
{
if(_strOut.split("\n").at(2).trimmed().length() == 0)
{
ReLoadList();
if(reloaded == false)
{
ReLoadList();
}
}
}
else
ReLoadList();
{
if(reloaded == false)
{
ReLoadList();
}
}
m_strListURL.clear();
foreach(QString str,_strOut.split("\n"))
{

View File

@@ -98,14 +98,18 @@ void SNaverCafeManage::processFinished(QProcess *_pPro,QString _strOut)
case E_PROCESS_LIST_FINISH_WAIT:
{
m_bLast = false;
bool reloaded = false;
if (_strOut.right(4) == "last" || m_ncList >= 1000)
m_bLast = true;
if (_strOut.right(5) == "block")
{
reloaded = true;
ReLoadList();
}
if(_strOut.right(7) == "loading")
{
reloaded = true;
ReLoadList();
}
@@ -115,11 +119,19 @@ void SNaverCafeManage::processFinished(QProcess *_pPro,QString _strOut)
{
if(_strOut.split("\n").at(2).trimmed().length() == 0)
{
ReLoadList();
if(reloaded == false)
{
ReLoadList();
}
}
}
else
ReLoadList();
{
if(reloaded == false)
{
ReLoadList();
}
}
m_strListURL.clear();
foreach(QString str,_strOut.split("\n"))
@@ -160,5 +172,4 @@ void SNaverCafeManage::ReLoadList()
if(m_ncList < 0)
m_ncList = 1;
m_pMain->InsertLog("Reload List");
}

View File

@@ -214,7 +214,8 @@ void Widget::StopButton()
bool Widget::LockTable(QString _strTable)
{
QSqlQuery query;
return query.exec(QString("lock tables " + _strTable + " write" ).toUtf8());
return query.exec(QString("lock tables crawling write, datagroup write, keyword write" ).toUtf8());
//lock tables crawling write, keyword write;
}
void Widget::UnLockTables()