• Main Page
  • Classes
  • Files
  • File List

Swiften/Elements/ResourceBind.h

00001 /*
00002  * Copyright (c) 2010 Remko Tronçon
00003  * Licensed under the GNU General Public License v3.
00004  * See Documentation/Licenses/GPLv3.txt for more information.
00005  */
00006 
00007 #pragma once
00008 
00009 #include <string>
00010 #include <Swiften/Elements/Payload.h>
00011 #include <Swiften/JID/JID.h>
00012 
00013 namespace Swift {
00014   class ResourceBind : public Payload {
00015     public:
00016       ResourceBind() {}
00017 
00018       void setJID(const JID& jid) {
00019         jid_ = jid;
00020       }
00021 
00022       const JID& getJID() const { 
00023         return jid_; 
00024       }
00025 
00026       void setResource(const std::string& resource) {
00027         resource_ = resource;
00028       }
00029 
00030       const std::string& getResource() const {
00031         return resource_; 
00032       }
00033 
00034     private:
00035       JID jid_;
00036       std::string resource_;
00037   };
00038 }

Generated on Fri Oct 12 2012 21:00:19 for Swiften by  doxygen 1.7.1