~ubuntu-branches/ubuntu/vivid/manaplus/vivid-proposed

« back to all changes in this revision

Viewing changes to src/net/auctionhandler.h

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2015-01-19 19:32:00 UTC
  • mfrom: (1.1.42)
  • Revision ID: package-import@ubuntu.com-20150119193200-ry89y6auftypk4gw
Tags: 1.5.1.17-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef NET_AUCTIONHANDLER_H
22
22
#define NET_AUCTIONHANDLER_H
23
23
 
 
24
#include "enums/net/auctionsearchtype.h"
 
25
 
24
26
#include <string>
25
27
 
26
28
#include "localconsts.h"
27
29
 
 
30
class Item;
 
31
 
28
32
namespace Net
29
33
{
30
34
 
33
37
    public:
34
38
        virtual ~AuctionHandler()
35
39
        { }
 
40
 
 
41
        virtual void cancelReg() const = 0;
 
42
 
 
43
        virtual void setItem(const Item *const item,
 
44
                             const int amount) const = 0;
 
45
 
 
46
        virtual void reg(const int currentPrice,
 
47
                         const int maxPrice,
 
48
                         const int hours) const = 0;
 
49
 
 
50
        virtual void cancel(const int auctionId) const = 0;
 
51
 
 
52
        virtual void close(const int auctionId) const = 0;
 
53
 
 
54
        virtual void bid(const int auctionId,
 
55
                         const int money) const = 0;
 
56
 
 
57
        virtual void search(const AuctionSearchType::Type type,
 
58
                            const int auctionId,
 
59
                            const std::string &text,
 
60
                            const int page) const = 0;
 
61
 
 
62
        virtual void buy() const = 0;
 
63
 
 
64
        virtual void sell() const = 0;
36
65
};
37
66
 
38
67
}  // namespace Net