~ubuntu-branches/ubuntu/lucid/amarok/lucid-backports

« back to all changes in this revision

Viewing changes to src/collection/mediadevicecollection/support/ConnectionAssistant.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2011-03-03 10:27:39 UTC
  • mfrom: (114.1.20 natty)
  • Revision ID: james.westby@ubuntu.com-20110303102739-ar67wpa6mllo59n2
Tags: 2:2.4.0-0ubuntu4~lucid1
* Source backport to lucid (LP: #728447)
  - Drop version requirement on libindicate-qt-dev build-dep

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
 
 
21
 
ConnectionAssistant::ConnectionAssistant( bool wait )
22
 
    : QObject()
23
 
    , m_wait( wait )
24
 
{
25
 
}
26
 
 
27
 
ConnectionAssistant::~ConnectionAssistant()
28
 
{
29
 
}
30
 
 
31
 
bool
32
 
ConnectionAssistant::identify(const QString& udi)
33
 
{
34
 
    Q_UNUSED( udi );
35
 
    return false;
36
 
}
37
 
 
38
 
MediaDeviceInfo*
39
 
ConnectionAssistant::deviceInfo( const QString& udi )
40
 
{
41
 
    Q_UNUSED( udi );
42
 
    MediaDeviceInfo *info = 0;
43
 
    return info;
44
 
}
45
 
 
46
 
void
47
 
ConnectionAssistant::tellIdentified( const QString &udi )
48
 
{
49
 
    DEBUG_BLOCK
50
 
    emit identified( deviceInfo( udi ) );
51
 
}
52
 
 
53
 
void
54
 
ConnectionAssistant::tellDisconnected( const QString& udi )
55
 
{
56
 
    DEBUG_BLOCK
57
 
    emit disconnected( udi );
58
 
}
59
 
 
60
 
bool
61
 
ConnectionAssistant::wait()
62
 
{
63
 
    return m_wait;
64
 
}
65
 
 
66
 
 
67
 
#include "ConnectionAssistant.moc"