/usr/include/Wt/Payment/Address is in libwt-dev 3.3.4+dfsg-6ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | // This may look like C code, but it's really -*- C++ -*-
/*
* Copyright (C) 2012 Emweb bvba, Kessel-Lo, Belgium.
*/
#ifndef WT_PAYMENT_ADDRESS_H
#define WT_PAYMENT_ADDRESS_H
#include <string>
#include <Wt/WString>
namespace Wt {
namespace Payment {
/*! \class Address Wt/Payment/Address Wt/Payment/Address
* \brief Contains address information.
*
* \if cpp
* \code
* Wt::Payment::Customer customer;
*
* customer.setEmail("joe.birkenberg@emweb.be");
* customer.setFirstName("Joe");
* customer.setLastName("Birkenberg");
*
* Wt::Payment::Address address;
* address.setCity("Leuven");
* address.setCountryCode("BE");
* address.setPhoneNumber("123456789");
* address.setStreet1("Brusselsestraat 14");
*
* customer.setShippingAddress(address);
* \endcode
* \endif
*
* \sa Customer::setShippingAddress()
*
* \ingroup payment
*/
class WT_API Address
{
public:
/*! \brief Sets an address name.
*
* Sets a name for this address like "home" or "work".
* This can allow a user to maintain several addresses.
*/
void setName(const WString& name);
/*! \brief Returns the address name.
*
* \sa setName()
*/
const WString& name() const { return name_; }
/*! \brief Sets first street line.
*
* \sa setStreet2()
*/
void setStreet1(const WString& street1);
/*! \brief Returns the first street line.
*
* \sa setStreet1()
*/
const WString& street1() const { return street1_; }
/*! \brief Sets the second street line.
*
* \sa setStreet1()
*/
void setStreet2(const WString& street2);
/*! \brief Returns the second street line.
*
* \sa setStreet2()
*/
const WString& street2() const { return street2_; }
/*! \brief Sets the city.
*/
void setCity(const WString& city);
/*! \brief Returns the city.
*
* \sa setCity()
*/
const WString& city() const { return city_; }
/*! \brief Sets the state.
*/
void setState(const WString& state);
/*! \brief Returns the state.
*
* \sa setState()
*/
const WString& state() const { return state_; }
/*! \brief Sets the country code.
*/
void setCountryCode(const std::string& country);
/*! \brief Returns the country code.
*
* \sa setCountryCode()
*/
const std::string& countryCode() const { return countryCode_; }
/*! \brief Sets the zip code.
*/
void setZip(const WString& zip);
/*! \brief Returns the zip code.
*
* \sa setZip()
*/
const WString& zip() const { return zip_; }
/*! \brief Sets the phone number.
*/
void setPhoneNumber(const std::string& number);
/*! \brief Returns the phone number.
*
* \sa setPhoneNumber()
*/
const std::string& phoneNumber() const { return phoneNumber_; }
private:
std::string countryCode_, phoneNumber_;
WString name_, street1_, street2_, city_, state_, zip_;
};
}
}
#endif // WT_PAYMENT_ADDRESS_H_
|