contentfetcher.h
来自「Amarok是一款在LINUX或其他类UNIX操作系统中运行的音频播放器软件。 」· C头文件 代码 · 共 58 行
H
58 行
/*************************************************************************** * copyright : (C) 2006 Ian Monroe <ian@monroe.nu> * **************************************************************************//*************************************************************************** * * * 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. * * * ***************************************************************************/#ifndef DAAPCONTENTFETCHER_H#define DAAPCONTENTFETCHER_H#include <qhttp.h>class QDataStream;class QFile;namespace Daap {/** Inspired by a daapsharp class of the same name. Basically it adds all the silly headers that DAAP needs @author Ian Monroe <ian@monroe.nu>*/class ContentFetcher : public QHttp{ Q_OBJECT public: ContentFetcher( const QString & hostname, Q_UINT16 port, const QString& password, QObject * parent = 0, const char * name = 0 ); ~ContentFetcher(); void getDaap( const QString & command, QIODevice* musicFile = 0 ); QDataStream& results(); private slots: void checkForErrors( int state ); signals: void httpError( const QString& ); private: QString m_hostname; Q_UINT16 m_port; QCString m_authorize; bool m_selfDestruct; static int s_requestId; //! Apple needs this for some reason};}#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?