New mime sniffer support classes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@601 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
//----------------------------------------------------------------------
|
||||
// This software is part of the OpenBeOS distribution and is covered
|
||||
// by the OpenBeOS license.
|
||||
//---------------------------------------------------------------------
|
||||
/*!
|
||||
\file sniffer/RPattern.h
|
||||
Mime Sniffer RPattern declarations
|
||||
*/
|
||||
#ifndef _sk_sniffer_r_pattern_h_
|
||||
#define _sk_sniffer_r_pattern_h_
|
||||
|
||||
#include <sniffer/Range.h>
|
||||
|
||||
class BPositionIO;
|
||||
|
||||
namespace Sniffer {
|
||||
|
||||
class Err;
|
||||
class Pattern;
|
||||
|
||||
//! Abstract class definining an interface for sniffing BFile objects
|
||||
class RPattern {
|
||||
public:
|
||||
RPattern(Range range, Pattern *pattern);
|
||||
~RPattern();
|
||||
|
||||
status_t InitCheck() const;
|
||||
Err* GetErr() const;
|
||||
|
||||
bool Sniff(BPositionIO *data) const;
|
||||
private:
|
||||
Range fRange;
|
||||
Pattern *fPattern;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // _sk_sniffer_r_pattern_h_
|
||||
Reference in New Issue
Block a user