Imported source code from DVB TV application

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17021 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Marcus Overhagen
2006-04-05 21:34:29 +00:00
parent 8063479445
commit 04a91b97bd
10 changed files with 2351 additions and 0 deletions
+58
View File
@@ -0,0 +1,58 @@
/*
* Controller.h - Media Player for the Haiku Operating System
*
* Copyright (C) 2006 Marcus Overhagen <[email protected]>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#ifndef __CONTROLLER_H
#define __CONTROLLER_H
#include <MediaDefs.h>
#include <MediaNode.h>
class VideoView;
class VideoNode;
class Controller
{
public:
Controller();
virtual ~Controller();
void SetVideoView(VideoView *view);
void SetVideoNode(VideoNode *node);
void VolumeUp();
void VolumeDown();
private:
status_t ConnectNodes();
status_t DisconnectNodes();
private:
int fCurrentInterface;
int fCurrentChannel;
VideoView * fVideoView;
VideoNode * fVideoNode;
BParameterWeb * fWeb;
BDiscreteParameter * fChannelParam;
bool fConnected;
media_input fInput;
media_output fOutput;
};
#endif