• Main Page
  • Classes
  • Files
  • File List

Swiften/Elements/Priority.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 <Swiften/Elements/Payload.h>
00010 
00011 namespace Swift {
00012   class Priority : public Payload {
00013     public:
00014       Priority(int priority = 0) : priority_(priority) {
00015       }
00016 
00017       void setPriority(int priority) {
00018         priority_ = priority;
00019       }
00020 
00021       int getPriority() const {
00022         return priority_;
00023       }
00024 
00025     private:
00026       int priority_;
00027   };
00028 }

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