* Rewrote header
* Some coding style fixes. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32782 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,77 +1,70 @@
|
||||
/* MediaFiles.h */
|
||||
/* Copyright 1998 Be Incorporated. All rights reserved. */
|
||||
|
||||
#if !defined(_MEDIA_FILES_H)
|
||||
/*
|
||||
* Copyright 2009, Haiku, Inc. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _MEDIA_FILES_H
|
||||
#define _MEDIA_FILES_H
|
||||
|
||||
|
||||
#include <MediaDefs.h>
|
||||
#include <List.h>
|
||||
#include <String.h>
|
||||
|
||||
struct entry_ref;
|
||||
|
||||
#include <String.h>
|
||||
|
||||
class BMediaFiles {
|
||||
public:
|
||||
|
||||
BMediaFiles();
|
||||
virtual ~BMediaFiles();
|
||||
BMediaFiles();
|
||||
virtual ~BMediaFiles();
|
||||
|
||||
virtual status_t RewindTypes();
|
||||
virtual status_t GetNextType(
|
||||
BString * out_type);
|
||||
virtual status_t RewindTypes();
|
||||
virtual status_t GetNextType(BString* _type);
|
||||
|
||||
virtual status_t RewindRefs(
|
||||
const char * type);
|
||||
virtual status_t GetNextRef(
|
||||
BString * out_type,
|
||||
entry_ref * out_ref = NULL);
|
||||
virtual status_t RewindRefs(const char* type);
|
||||
virtual status_t GetNextRef(BString* _type,
|
||||
entry_ref* _ref = NULL);
|
||||
|
||||
virtual status_t GetRefFor(
|
||||
const char * type,
|
||||
const char * item,
|
||||
entry_ref * out_ref);
|
||||
status_t GetAudioGainFor(
|
||||
const char * type,
|
||||
const char * item,
|
||||
float * out_audio_gain);
|
||||
virtual status_t SetRefFor(
|
||||
const char * type,
|
||||
const char * item,
|
||||
const entry_ref & ref);
|
||||
status_t SetAudioGainFor(
|
||||
const char * type,
|
||||
const char * item,
|
||||
float audio_gain);
|
||||
virtual status_t RemoveRefFor( // This might better be called "ClearRefFor"
|
||||
const char * type, // but it's too late now...
|
||||
const char * item,
|
||||
const entry_ref & ref);
|
||||
virtual status_t GetRefFor(const char* type, const char* item,
|
||||
entry_ref* _ref);
|
||||
virtual status_t SetRefFor(const char* type, const char* item,
|
||||
const entry_ref& ref);
|
||||
|
||||
static const char B_SOUNDS[]; /* for "types" */
|
||||
status_t GetAudioGainFor(const char* type,
|
||||
const char* item, float* _gain);
|
||||
status_t SetAudioGainFor(const char* type,
|
||||
const char* item, float gain);
|
||||
|
||||
virtual status_t RemoveItem( // new in 4.1, removes the whole item.
|
||||
const char * type,
|
||||
const char * item);
|
||||
// TODO: Rename this to "ClearRefFor" when breaking BC.
|
||||
virtual status_t RemoveRefFor(const char* type,
|
||||
const char* item, const entry_ref& ref);
|
||||
|
||||
static const char B_SOUNDS[];
|
||||
|
||||
virtual status_t RemoveItem(const char* type, const char* item);
|
||||
|
||||
// TODO: Needs Perform() for FBC reasons!
|
||||
|
||||
private:
|
||||
// FBC padding
|
||||
|
||||
status_t _Reserved_MediaFiles_0(void *, ...);
|
||||
virtual status_t _Reserved_MediaFiles_1(void *, ...);
|
||||
virtual status_t _Reserved_MediaFiles_2(void *, ...);
|
||||
virtual status_t _Reserved_MediaFiles_3(void *, ...);
|
||||
virtual status_t _Reserved_MediaFiles_4(void *, ...);
|
||||
virtual status_t _Reserved_MediaFiles_5(void *, ...);
|
||||
virtual status_t _Reserved_MediaFiles_6(void *, ...);
|
||||
virtual status_t _Reserved_MediaFiles_7(void *, ...);
|
||||
status_t _Reserved_MediaFiles_0(void*, ...);
|
||||
virtual status_t _Reserved_MediaFiles_1(void*, ...);
|
||||
virtual status_t _Reserved_MediaFiles_2(void*, ...);
|
||||
virtual status_t _Reserved_MediaFiles_3(void*, ...);
|
||||
virtual status_t _Reserved_MediaFiles_4(void*, ...);
|
||||
virtual status_t _Reserved_MediaFiles_5(void*, ...);
|
||||
virtual status_t _Reserved_MediaFiles_6(void*, ...);
|
||||
virtual status_t _Reserved_MediaFiles_7(void*, ...);
|
||||
|
||||
BList m_types;
|
||||
int m_type_index;
|
||||
BString m_cur_type;
|
||||
BList m_items;
|
||||
int m_item_index;
|
||||
private:
|
||||
BList fTypes;
|
||||
int fTypeIndex;
|
||||
BString fCurrentType;
|
||||
BList fItems;
|
||||
int fItemIndex;
|
||||
};
|
||||
|
||||
#endif /* _MEDIA_FILES_H */
|
||||
#endif // _MEDIA_FILES_H
|
||||
|
||||
|
||||
Reference in New Issue
Block a user