vk_logpoller.h
来自「Linux平台下的内核及程序调试器」· C头文件 代码 · 共 43 行
H
43 行
/* ---------------------------------------------------------------------- * Definition of class VkLogPoller vk_logpoller.h * Polls a log for updates * --------------------------------------------------------------------- * This file is part of Valkyrie, a front-end for Valgrind * Copyright (c) 2000-2006, OpenWorks LLP <info@open-works.co.uk> * This program is released under the terms of the GNU GPL v.2 * See the file LICENSE.GPL for the full license details. */#ifndef VK_LOGPOLLER_H#define VK_LOGPOLLER_H#include <qobject.h>#include <qtimer.h>/* Future intention is to have another thread running select on the given file, so triggering signal when the file is updated.*//* class VkLogPoller ------------------------------------------------ */class VkLogPoller : public QObject{ Q_OBJECTpublic: VkLogPoller( QObject * parent = 0, const char * name = 0 ); ~VkLogPoller(); bool start( int interval=100 ); void stop(); bool isActive(); int interval();signals: void logUpdated();private: QTimer* m_timer;};#endif // VK_LOGPOLLER_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?