source: qutecom-coip/libs/coipmanager_base/include/coipmanager_base/profile/EnumSex.h @ 124:5dee3cf5464c

Last change on this file since 124:5dee3cf5464c was 123:e06473b93b96, checked in by laurent, 3 years ago

openwengo => qutecom

File size: 1.5 KB
Line 
1/*
2 * QuteCom, a voice over Internet phone
3 * Copyright (C) WengoWengo
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18 */
19
20#ifndef OWSEX_H
21#define OWSEX_H
22
23#include <coipmanager_base/coipmanagerbasedll.h>
24
25#include <util/NonCopyable.h>
26
27#include <string>
28
29/**
30 * Sex: male or female.
31 *
32 * @author Philippe Bernery
33 */
34class COIPMANAGER_BASE_API EnumSex : NonCopyable {
35public:
36
37        enum Sex {
38                SexUnknown,
39                SexMale,
40                SexFemale
41        };
42
43        /**
44         * Gets a string represencation of the sex.
45         *
46         * @param sex the sex to transform
47         * @result the string representing the sex
48         */
49        static std::string toString(Sex sex);
50
51        /**
52         * Gets the sex from a string representation.
53         *
54         * @param sex the string to transform.
55         * @return the sex represented by the string
56         */
57        static Sex toSex(const std::string & sex);
58};
59
60#endif  //OWSEX_H
Note: See TracBrowser for help on using the repository browser.