File indexing completed on 2024-05-19 04:49:12

0001 /****************************************************************************************
0002  * Copyright (c) 2009 Alejandro Wainzinger <aikawarazuni@gmail.com>                     *
0003  *                                                                                      *
0004  * This program is free software; you can redistribute it and/or modify it under        *
0005  * the terms of the GNU General Public License as published by the Free Software        *
0006  * Foundation; either version 2 of the License, or (at your option) any later           *
0007  * version.                                                                             *
0008  *                                                                                      *
0009  * This program is distributed in the hope that it will be useful, but WITHOUT ANY      *
0010  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A      *
0011  * PARTICULAR PURPOSE. See the GNU General Public License for more details.             *
0012  *                                                                                      *
0013  * You should have received a copy of the GNU General Public License along with         *
0014  * this program.  If not, see <http://www.gnu.org/licenses/>.                           *
0015  ****************************************************************************************/
0016 
0017 #include "ConnectionAssistant.h"
0018 
0019 #include "MediaDeviceMonitor.h"
0020 #include "core/support/Debug.h"
0021 
0022 ConnectionAssistant::ConnectionAssistant( bool wait )
0023     : QObject()
0024     , m_wait( wait )
0025 {
0026 }
0027 
0028 ConnectionAssistant::~ConnectionAssistant()
0029 {
0030 }
0031 
0032 bool
0033 ConnectionAssistant::identify(const QString& udi)
0034 {
0035     Q_UNUSED( udi );
0036     return false;
0037 }
0038 
0039 MediaDeviceInfo*
0040 ConnectionAssistant::deviceInfo( const QString& udi )
0041 {
0042     Q_UNUSED( udi );
0043     MediaDeviceInfo *info = nullptr;
0044     return info;
0045 }
0046 
0047 void
0048 ConnectionAssistant::tellIdentified( const QString &udi )
0049 {
0050     DEBUG_BLOCK
0051     Q_EMIT identified( deviceInfo( udi ) );
0052 }
0053 
0054 void
0055 ConnectionAssistant::tellDisconnected( const QString& udi )
0056 {
0057     DEBUG_BLOCK
0058     Q_EMIT disconnected( udi );
0059 }
0060 
0061 bool
0062 ConnectionAssistant::wait()
0063 {
0064     return m_wait;
0065 }
0066 
0067