Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (22 sloc) 0.763 kB
#ifndef _STATIONADVERTFORM_H
#define _STATIONADVERTFORM_H
#include "ChatForm.h"
#include "SpaceStation.h"
#include "FormController.h"
class StationAdvertForm : public ChatForm {
public:
StationAdvertForm(FormController *controller, SpaceStation *station, const BBAdvert &ad) :
ChatForm(controller), m_adTaken(false), m_station(station), m_advert(ad) { }
virtual void OnOptionClicked(int option) = 0;
bool AdTaken() { return m_adTaken; }
void RemoveAdvertOnClose() { m_adTaken = true; }
SpaceStation *GetStation() const { return m_station; }
const BBAdvert *GetAdvert() const { return &m_advert; }
virtual void OnClose();
private:
bool m_adTaken;
sigc::connection m_formClosedConnection;
SpaceStation *m_station;
BBAdvert m_advert;
};
#endif
Jump to Line
Something went wrong with that request. Please try again.