diff options
Diffstat (limited to 'src/core/provider/MCNetService.h')
-rw-r--r-- | src/core/provider/MCNetService.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/core/provider/MCNetService.h b/src/core/provider/MCNetService.h new file mode 100644 index 00000000..c2560ec3 --- /dev/null +++ b/src/core/provider/MCNetService.h @@ -0,0 +1,48 @@ +// +// MCNetService.h +// mailcore2 +// +// Created by Robert Widmann on 4/28/13. +// Copyright (c) 2013 MailCore. All rights reserved. +// + +#ifndef __MAILCORE__MCNetService__ +#define __MAILCORE__MCNetService__ + +#include <MailCore/MCBaseTypes.h> +#include <MailCore/MCMessageConstants.h> + +#ifdef __cplusplus + +namespace mailcore { + class NetService : public Object { + + public: + NetService(HashMap * info); + ~NetService(); + + void setHostname(String * hostname); + String * hostname(); + + void setPort(unsigned int port); + unsigned int port(); + + void setConnectionType(ConnectionType connectionType); + ConnectionType connectionType(); + + HashMap * info(); + + String * normalizedHostnameWithEmail(String * email); + + private: + String * mHostname; + unsigned int mPort; + ConnectionType mConnectionType; + + void init(); + }; +} + +#endif + +#endif /* defined(__MAILCORE__MCNetService__) */ |