2009-07-31 01:28:00 +04:00
|
|
|
/*
|
|
|
|
* Copyright 2004-2009, Haiku, Inc. All rights reserved.
|
|
|
|
* Distributed under the terms of the MIT license.
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Axel Dörfler
|
|
|
|
* Marcus Overhagen
|
|
|
|
*/
|
2003-12-14 22:23:16 +03:00
|
|
|
#ifndef _FORMAT_MANAGER_H
|
|
|
|
#define _FORMAT_MANAGER_H
|
|
|
|
|
2004-01-23 10:43:33 +03:00
|
|
|
|
|
|
|
#include <Locker.h>
|
2009-07-31 01:28:00 +04:00
|
|
|
#include <ObjectList.h>
|
2004-01-23 10:43:33 +03:00
|
|
|
|
|
|
|
#include "MetaFormat.h"
|
|
|
|
|
|
|
|
|
|
|
|
class FormatManager {
|
2009-07-31 01:28:00 +04:00
|
|
|
public:
|
|
|
|
FormatManager();
|
|
|
|
~FormatManager();
|
2004-01-23 10:43:33 +03:00
|
|
|
|
2009-07-31 01:28:00 +04:00
|
|
|
void LoadState();
|
|
|
|
void SaveState();
|
2004-01-23 10:43:33 +03:00
|
|
|
|
2009-07-31 01:28:00 +04:00
|
|
|
void GetFormats(BMessage& message);
|
|
|
|
void MakeFormatFor(BMessage& message);
|
2004-01-23 10:43:33 +03:00
|
|
|
|
2009-07-31 01:28:00 +04:00
|
|
|
private:
|
|
|
|
typedef BPrivate::media::meta_format meta_format;
|
2004-01-23 10:43:33 +03:00
|
|
|
|
2009-07-31 01:28:00 +04:00
|
|
|
BObjectList<meta_format> fList;
|
|
|
|
BLocker fLock;
|
|
|
|
bigtime_t fLastUpdate;
|
|
|
|
int32 fNextCodecID;
|
2003-12-14 22:23:16 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _FORMAT_MANAGER_H
|