1 /**************************************************************************************** 2 * Copyright (c) 2009 Alejandro Wainzinger <aikawarazuni@gmail.com> * 3 * * 4 * This program is free software; you can redistribute it and/or modify it under * 5 * the terms of the GNU General Public License as published by the Free Software * 6 * Foundation; either version 2 of the License, or (at your option) any later * 7 * version. * 8 * * 9 * This program is distributed in the hope that it will be useful, but WITHOUT ANY * 10 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A * 11 * PARTICULAR PURPOSE. See the GNU General Public License for more details. * 12 * * 13 * You should have received a copy of the GNU General Public License along with * 14 * this program. If not, see <http://www.gnu.org/licenses/>. * 15 ****************************************************************************************/ 16 17 #include "ConnectionAssistant.h" 18 19 #include "MediaDeviceMonitor.h" 20 #include "core/support/Debug.h" 21 ConnectionAssistant(bool wait)22ConnectionAssistant::ConnectionAssistant( bool wait ) 23 : QObject() 24 , m_wait( wait ) 25 { 26 } 27 ~ConnectionAssistant()28ConnectionAssistant::~ConnectionAssistant() 29 { 30 } 31 32 bool identify(const QString & udi)33ConnectionAssistant::identify(const QString& udi) 34 { 35 Q_UNUSED( udi ); 36 return false; 37 } 38 39 MediaDeviceInfo* deviceInfo(const QString & udi)40ConnectionAssistant::deviceInfo( const QString& udi ) 41 { 42 Q_UNUSED( udi ); 43 MediaDeviceInfo *info = 0; 44 return info; 45 } 46 47 void tellIdentified(const QString & udi)48ConnectionAssistant::tellIdentified( const QString &udi ) 49 { 50 DEBUG_BLOCK 51 Q_EMIT identified( deviceInfo( udi ) ); 52 } 53 54 void tellDisconnected(const QString & udi)55ConnectionAssistant::tellDisconnected( const QString& udi ) 56 { 57 DEBUG_BLOCK 58 Q_EMIT disconnected( udi ); 59 } 60 61 bool wait()62ConnectionAssistant::wait() 63 { 64 return m_wait; 65 } 66 67 68