NaverCafeList 추가

git-svn-id: svn://192.168.0.12/source@223 8346c931-da38-4b9b-9d4c-e48b93cbd075
This commit is contained in:
admin
2015-11-11 06:51:31 +00:00
parent c12705430c
commit 499550b2c1

View File

@@ -36,6 +36,7 @@ Widget::Widget(QWidget *parent)
"WHEN 1 THEN 'Naver Blog' "
"WHEN 2 THEN 'Daum Cafe' "
"WHEN 3 THEN 'Naver News' "
"WHEN 4 THEN 'Naver Cafe List' "
"ELSE 'UnKnown'"
"END AS platform FROM keyword where state is null");
m_pmodelGroup->setQuery("SELECT * FROM datagroup");
@@ -89,7 +90,7 @@ QGroupBox *Widget::setKeywordWidgets()
m_pcbRealTime->addItems(QStringList() << "false" << "true");
m_pcbPlatform = new QComboBox;
m_pcbPlatform->addItems(QStringList() << "Naver Cafe" << "Naver Blog" << "Daum Cafe" << "Naver News");
m_pcbPlatform->addItems(QStringList() << "Naver Cafe" << "Naver Blog" << "Daum Cafe" << "Naver News" << "Naver Cafe List");
m_pleKeyword = new QLineEdit;
m_pleAuthorship = new QLineEdit;
@@ -308,6 +309,7 @@ void Widget::on_keyword_currentRowChanged(QModelIndex _index)
if (str == QString("Naver Blog")) nSelect = 1;
if (str == QString("Daum Cafe")) nSelect = 2;
if (str == QString("Naver News")) nSelect = 3;
if (str == QString("Naver Cafe List")) nSelect = 4;
m_pcbPlatform->setCurrentIndex(nSelect);
}
}
@@ -334,6 +336,7 @@ void Widget::on_keyword_button_insert()
"WHEN 1 THEN 'Naver Blog' "
"WHEN 2 THEN 'Daum Cafe' "
"WHEN 3 THEN 'Naver News' "
"WHEN 4 THEN 'Naver Cafe List' "
"ELSE 'UnKnown'"
"END AS platform FROM keyword where state is null");
}
@@ -355,6 +358,7 @@ void Widget::on_keyword_button_delete()
"WHEN 1 THEN 'Naver Blog' "
"WHEN 2 THEN 'Daum Cafe' "
"WHEN 3 THEN 'Naver News' "
"WHEN 4 THEN 'Naver Cafe List' "
"ELSE 'UnKnown'"
"END AS platform FROM keyword where state is null");
}
@@ -386,6 +390,7 @@ void Widget::on_keyword_button_modify()
"WHEN 1 THEN 'Naver Blog' "
"WHEN 2 THEN 'Daum Cafe' "
"WHEN 3 THEN 'Naver News' "
"WHEN 4 THEN 'Naver Cafe List' "
"ELSE 'UnKnown'"
"END AS platform FROM keyword where state is null");
}
@@ -845,7 +850,7 @@ void Widget::on_group_button_copy_start()
void Widget::UpdateCrawling()
{
m_pmodelCrawling->setQuery("SELECT _crawling.id,_keyword.realtime,_keyword.searches,_keyword.start,_keyword.end, _datagroup.name , "
"(CASE _keyword.platform WHEN 0 THEN 'Naver Cafe' WHEN 1 THEN 'Naver Blog' WHEN 2 THEN 'Daum Cafe' ELSE 'UnKnown' END ) AS platform , "
"(CASE _keyword.platform WHEN 0 THEN 'Naver Cafe' WHEN 1 THEN 'Naver Blog' WHEN 2 THEN 'Daum Cafe' WHEN 3 THEN 'Naver News' WHEN 4 THEN 'Naver Cafe List' ELSE 'UnKnown' END ) AS platform , "
"(CASE _crawling.state WHEN 0 THEN 'Waiting' WHEN 1 THEN 'Running' WHEN 2 THEN 'Terminated' ELSE 'None' END ) AS state "
"FROM crawling _crawling INNER JOIN keyword _keyword ON _crawling.keyword_id = _keyword.id "
"inner join datagroup _datagroup on _crawling.datagroup_id = _datagroup.id");