New MIME Sniffer files

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@529 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Tyler Dauwalder
2002-07-29 06:57:11 +00:00
parent 0b55d6648f
commit 0be1fe8a1f
3 changed files with 101 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
//----------------------------------------------------------------------
// This software is part of the OpenBeOS distribution and is covered
// by the OpenBeOS license.
//---------------------------------------------------------------------
/*!
\file sniffer/Expr.h
Mime Sniffer Expression declarations
*/
#ifndef _sk_sniffer_expr_h_
#define _sk_sniffer_expr_h_
namespace Sniffer {
class BFile;
//! Abstract class definining an interface for sniffing BFile objects
class Expr {
public:
virtual ~Expr() {}
virtual bool Sniff(BFile *file) = 0;
};
}
#endif // _sk_sniffer_expr_h_
+31
View File
@@ -0,0 +1,31 @@
//----------------------------------------------------------------------
// This software is part of the OpenBeOS distribution and is covered
// by the OpenBeOS license.
//---------------------------------------------------------------------
/*!
\file sniffer/Range.h
MIME sniffer range declarations
*/
#ifndef _sk_sniffer_range_h_
#define _sk_sniffer_range_h_
#include <SupportDefs.h>
namespace Sniffer {
class Range {
public:
Range(int32 start, int32 end);
int32 Start() const;
int32 End() const;
void SetTo(int32 start, int32 end);
private:
int32 fStart;
int32 fEnd;
};
}
#endif // _sk_sniffer_range_h_