blob: 7f33f445254a45218ad7362606d91e505ae71a1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
//$Id$
#ifndef STOCK_BASE_IDL
#define STOCK_BASE_IDL
#include <Components.idl>
#pragma ciao lem "../Stock_Base/Stock_BaseE.idl"
module Stock
{
exception Invalid_Stock {};
typedef sequence<octet> ImageBlob;
/**
* @struct StockInfo
*/
struct StockInfo {
string name;
long high;
long low;
long last;
};
/**
* @interface: StockQuoter
*
* @brief: component facet
*/
interface StockQuoter {
/// Returns the current stock info
StockInfo get_stock_info (in string stock_name)
raises (Invalid_Stock);
};
/**
* @event StockName
*
* @brief component event
*/
eventtype StockName {
// Name of the stock.
public string name;
};
};
#endif /* STOCK_BASE_IDL */
|