collectionscannerdcophandler.cpp
来自「Amarok是一款在LINUX或其他类UNIX操作系统中运行的音频播放器软件。 」· C++ 代码 · 共 50 行
CPP
50 行
/*************************************************************************** collectionscannerdcophandler.cpp - DCOP Implementation ------------------- begin : 16/08/05 copyright : (C) 2006 by Jeff Mitchell email : kde-dev@emailgoeshere.com ***************************************************************************//*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/#include "collectionscannerdcophandler.h"#include <dcopclient.h>/////////////////////////////////////////////////////////////////////////////////////// class DcopCollectionScannerHandler///////////////////////////////////////////////////////////////////////////////////// DcopCollectionScannerHandler::DcopCollectionScannerHandler() : DCOPObject( "scanner" ) , QObject( kapp ) { // Register with DCOP if ( !kapp->dcopClient()->isRegistered() ) { kapp->dcopClient()->registerAs( "amarokcollectionscanner", false ); kapp->dcopClient()->setDefaultObject( objId() ); } } void DcopCollectionScannerHandler::pause() { //do nothing for now emit pauseRequest(); } void DcopCollectionScannerHandler::unpause() { //do nothing for now emit unpauseRequest(); }#include "collectionscannerdcophandler.moc"
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?