source: qutecom-coip/libs/coipmanager_base/include/coipmanager_base/EnumAccountType.h @ 125:d648f4cb122f

Last change on this file since 125:d648f4cb122f was 125:d648f4cb122f, checked in by laurent, 3 years ago

wengo => qutecom

File size: 1.6 KB
Line 
1/*
2 * QuteCom, a voice over Internet phone
3 * Copyright (C) 2010 Mbdsys
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 OWENUMACCOUNTTYPE_H
21#define OWENUMACCOUNTTYPE_H
22
23#include <coipmanager_base/coipmanagerbasedll.h>
24
25#include <util/NonCopyable.h>
26
27#include <string>
28
29/**
30 * QuteCom supported AccountTypes.
31 *
32 * @author Philippe Bernery
33 */
34class COIPMANAGER_BASE_API EnumAccountType : NonCopyable {
35public:
36
37        enum AccountType {
38                AccountTypeUnknown,
39                AccountTypeAIM,
40                AccountTypeGTalk,
41                AccountTypeIAX,
42                AccountTypeICQ,
43                AccountTypeJabber,
44                AccountTypeMSN,
45                AccountTypeSIP,
46                AccountTypeQuteCom,
47                AccountTypeYahoo,
48        };
49
50        /**
51         * Converts a AccountType into a string.
52         *
53         * @return the string
54         */
55        static std::string toString(AccountType AccountType);
56
57        /**
58         * Converts a string into a AccountType.
59         *
60         * @return the AccountType
61         */
62        static AccountType toAccountType(const std::string & accountType);
63};
64
65#endif  //OWENUMACCOUNTTYPE_H
Note: See TracBrowser for help on using the repository browser.