real time 추가
git-svn-id: svn://192.168.0.12/source@80 8346c931-da38-4b9b-9d4c-e48b93cbd075
This commit is contained in:
@@ -257,13 +257,16 @@ QGroupBox *Widget::setCrawlingWidgets()
|
||||
QHBoxLayout *hlayout = new QHBoxLayout();
|
||||
QPushButton *pInsert = new QPushButton("Insert");
|
||||
QPushButton *pDelete = new QPushButton("Delete");
|
||||
QPushButton *pRefresh = new QPushButton("Refresh");
|
||||
|
||||
connect(pInsert, SIGNAL(released()),this, SLOT(on_crawling_button_insert()));
|
||||
connect(pDelete, SIGNAL(released()),this, SLOT(on_crawling_button_delete()));
|
||||
connect(pRefresh, SIGNAL(released()),this, SLOT(on_crawling_button_refresh()));
|
||||
|
||||
hlayout->setAlignment(Qt::AlignCenter);
|
||||
hlayout->addWidget(pInsert);
|
||||
hlayout->addWidget(pDelete);
|
||||
hlayout->addWidget(pRefresh);
|
||||
vlayout->addLayout(hlayout);
|
||||
}
|
||||
|
||||
@@ -815,9 +818,14 @@ void Widget::on_group_button_copy_start()
|
||||
|
||||
void Widget::UpdateCrawling()
|
||||
{
|
||||
m_pmodelCrawling->setQuery("SELECT _crawling.id,_keyword.searches,_keyword.start,_keyword.end, _datagroup.name , "
|
||||
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 _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");
|
||||
"inner join datagroup _datagroup on _crawling.datagroup_id = _datagroup.id");
|
||||
}
|
||||
|
||||
void Widget::on_crawling_button_refresh()
|
||||
{
|
||||
UpdateCrawling();
|
||||
}
|
||||
|
||||
@@ -52,6 +52,7 @@ private slots:
|
||||
|
||||
void on_crawling_button_insert();
|
||||
void on_crawling_button_delete();
|
||||
void on_crawling_button_refresh();
|
||||
};
|
||||
|
||||
#endif // WIDGET_H
|
||||
|
||||
Reference in New Issue
Block a user