00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #include <Bonobo_Storage.idl>
00024
00025 module Accessibility {
00026
00027 typedef sequence<string> StringSeq;
00028
00046 interface StreamableContent {
00047
00054 enum SeekType {
00055 SEEK_SET,
00056 SEEK_CURRENT,
00057 SEEK_END
00058 };
00059
00064 exception IOError {
00065 string reason;
00066 };
00070 exception NotSupported {
00071 string reason;
00072 };
00073
00079 exception NoPermission {
00080 string reason;
00081 };
00082
00091 interface Stream {
00101 long seek (in long offset, in SeekType whence)
00102 raises (NoPermission, IOError, NotSupported);
00107 long read (in long count, out iobuf buffer)
00108 raises (NoPermission, IOError);
00114 void close ();
00115 };
00116
00121 StringSeq getContentTypes ();
00146 Bonobo::Stream getContent (in string contentType);
00147
00162 Stream getStream (in string contentType);
00163
00170 void unImplemented ();
00171 void unImplemented2 ();
00172 void unImplemented3 ();
00174 };
00175 };