GCC Code Coverage Report
Directory: src/ Exec Total Coverage
File: src/net/auctionhandler.h Lines: 0 1 0.0 %
Date: 2017-11-29 Branches: 0 0 0.0 %

Line Branch Exec Source
1
/*
2
 *  The ManaPlus Client
3
 *  Copyright (C) 2011-2017  The ManaPlus Developers
4
 *
5
 *  This file is part of The ManaPlus Client.
6
 *
7
 *  This program is free software; you can redistribute it and/or modify
8
 *  it under the terms of the GNU General Public License as published by
9
 *  the Free Software Foundation; either version 2 of the License, or
10
 *  any later version.
11
 *
12
 *  This program is distributed in the hope that it will be useful,
13
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 *  GNU General Public License for more details.
16
 *
17
 *  You should have received a copy of the GNU General Public License
18
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
 */
20
21
#ifndef NET_AUCTIONHANDLER_H
22
#define NET_AUCTIONHANDLER_H
23
24
#include "enums/net/auctionsearchtype.h"
25
26
#include <string>
27
28
#include "localconsts.h"
29
30
class Item;
31
32
namespace Net
33
{
34
35
class AuctionHandler notfinal
36
{
37
    public:
38
        AuctionHandler()
39
        { }
40
41
        A_DELETE_COPY(AuctionHandler)
42
43
        virtual ~AuctionHandler()
44
        { }
45
46
        virtual void cancelReg() const = 0;
47
48
        virtual void setItem(const Item *const item,
49
                             const int amount) const = 0;
50
51
        virtual void reg(const int currentPrice,
52
                         const int maxPrice,
53
                         const int hours) const = 0;
54
55
        virtual void cancel(const int auctionId) const = 0;
56
57
        virtual void close(const int auctionId) const = 0;
58
59
        virtual void bid(const int auctionId,
60
                         const int money) const = 0;
61
62
        virtual void search(const AuctionSearchTypeT type,
63
                            const int auctionId,
64
                            const std::string &text,
65
                            const int page) const = 0;
66
67
        virtual void buy() const = 0;
68
69
        virtual void sell() const = 0;
70
};
71
72
}  // namespace Net
73
74
extern Net::AuctionHandler *auctionHandler;
75
76
#endif  // NET_AUCTIONHANDLER_H