Main Page   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

SNAC-LOC.h

00001 /*
00002  * SNAC - Location services
00003  *
00004  * Copyright (C) 2001 Barnaby Gray <barnaby@beedesign.co.uk>
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
00019  *
00020  */
00021 
00022 #ifndef SNAC_LOC_H
00023 #define SNAC_LOC_H
00024 
00025 #include <libicq2000/SNAC-base.h>
00026 
00027 namespace ICQ2000 {
00028 
00029   // Locate (Family 0x0002)
00030   const unsigned short SNAC_LOC_Error = 0x0001;
00031   const unsigned short SNAC_LOC_RightsReq = 0x0002;
00032   const unsigned short SNAC_LOC_Rights = 0x0003;
00033   const unsigned short SNAC_LOC_SetUserInfo = 0x0004;
00034 
00035   // ----------------- Location (Family 0x0002) SNACs -------------
00036 
00037   class LOCFamilySNAC : virtual public SNAC {
00038    public:
00039     unsigned short Family() const { return SNAC_FAM_LOC; }
00040   };
00041 
00042   class SetUserInfoSNAC : public LOCFamilySNAC, public OutSNAC {
00043    protected:
00044     void OutputBody(Buffer& b) const;
00045 
00046    public:
00047     SetUserInfoSNAC() { }
00048     unsigned short Subtype() const { return SNAC_LOC_SetUserInfo; }
00049   };
00050 
00051 }
00052 
00053 #endif

Generated on Tue Jan 15 12:24:35 2002 for libicq2000 by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001