~ubuntu-branches/ubuntu/feisty/kdetv/feisty

« back to all changes in this revision

Viewing changes to kdetv/libkdetv/kdetvsrcplugin.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2005-09-17 23:25:16 UTC
  • Revision ID: james.westby@ubuntu.com-20050917232516-9wdsn3ckagbqieh8
Tags: upstream-0.8.8
ImportĀ upstreamĀ versionĀ 0.8.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *
 
3
 * Copyright (C) 2002 George Staikos <staikos@kde.org>
 
4
 *
 
5
 * This library is free software; you can redistribute it and/or
 
6
 * modify it under the terms of the GNU Library General Public
 
7
 * License as published by the Free Software Foundation; either
 
8
 * version 2 of the License, or (at your option) any later version.
 
9
 *
 
10
 * This library is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
13
 * Library General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU Library General Public License
 
16
 * along with this library; see the file COPYING.LIB.  If not, write to
 
17
 * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
 
18
 * Boston, MA 02110-1301, USA.
 
19
 */
 
20
 
 
21
#include <kdebug.h>
 
22
 
 
23
#include "kdetvsrcplugin.h"
 
24
 
 
25
KdetvSourcePlugin::KdetvSourcePlugin(Kdetv *ktv, const QString& cfgkey, QObject *o, const char* n)
 
26
    : KdetvPluginBase(ktv, cfgkey, o, n),
 
27
      _device(QString::null),
 
28
      _source(QString::null),
 
29
      _encoding(QString::null),
 
30
      _isVideoDesktop(false)
 
31
{
 
32
}
 
33
 
 
34
KdetvSourcePlugin::~KdetvSourcePlugin()
 
35
{
 
36
}
 
37
 
 
38
bool KdetvSourcePlugin::setVolume( int, int )
 
39
{
 
40
    return false;
 
41
}
 
42
 
 
43
bool KdetvSourcePlugin::isTuner(const QString &dev)
 
44
{
 
45
        kdDebug() << "-->" << _tuners.size() << " tuners detected" << endl;
 
46
        kdDebug() << "-->" << "_tuners[" << dev << "] is " << _tuners[dev] << endl;
 
47
        return _tuners[dev];
 
48
}
 
49
 
 
50
#include "kdetvsrcplugin.moc"
 
51