00001 /* 00002 * Copyright (c) 2009, Czech Technical University in Prague 00003 * All rights reserved. 00004 * 00005 * Authors/Contact: 00006 * 00007 * Petr Vlacil 00008 * (vlacipet@fel.cvut.cz) 00009 * R&D Centre (RDC) for Mobile Applications 00010 * Dept of Telecommunications Engineering 00011 * Faculty of Electrical Engineering 00012 * Czech Technical University in Prague 00013 * Technicka 2, 166 27 Prague 6, Czech Republic 00014 * 00015 * Redistribution and use in source and binary forms, with or 00016 * without modification, are permitted provided that the following 00017 * conditions are met: 00018 * 00019 * 1. Redistributions of source code must retain the above copyright 00020 * notice, this list of conditions and the following disclaimer. 00021 * 2. Redistributions in binary form must reproduce the above copyright 00022 * notice, this list of conditions and the following disclaimer in 00023 * the documentation and/or other materials provided with the 00024 * distribution. 00025 * 3. Neither the name of the Czech Technical University in Prague nor 00026 * the names of its contributors may be used to endorse or promote 00027 * products derived from this software without specific prior 00028 * written permission. 00029 * 00030 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 00031 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 00032 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 00033 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 00034 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 00035 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED 00036 * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 00037 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 00038 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 00039 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00040 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00041 * 00042 */ 00043 00044 00045 #ifndef MLP_SUBSCRIBER_H 00046 #define MLP_SUBSCRIBER_H 00047 00048 00049 /** 00050 * \file 00051 * \brief MlpSubscriber header file 00052 * 00053 * This file contains MlpSubscriber class declaration. 00054 * 00055 * \author Petr Vláčil 00056 */ 00057 00058 00059 //-------------------------------------------------------------------------- 00060 // Standard libraries 00061 //-------------------------------------------------------------------------- 00062 #include <string> 00063 00064 //-------------------------------------------------------------------------- 00065 // MLP-Lib-Cpp library files 00066 //-------------------------------------------------------------------------- 00067 #include <libmlp-cpp/MlpCodewordList.hpp> 00068 #include <libmlp-cpp/MlpGsmNetParams.hpp> 00069 00070 00071 class MlpSubscriber{ 00072 private: 00073 int _subscriberType; 00074 00075 std::string _msid; 00076 int _msidType; 00077 int _msidEnc; 00078 00079 std::string _startMsid; 00080 int _startMsidType; 00081 int _startMsidEnc; 00082 00083 std::string _stopMsid; 00084 int _stopMsidType; 00085 int _stopMsidEnc; 00086 00087 std::string _session; 00088 int _sessionType; 00089 std::string _transId; 00090 00091 // add gsm_net_param_list 00092 00093 std::string _codeword; 00094 MlpCodewordList* _codewordList; 00095 00096 MlpGsmNetParams* _gsmNetParams; 00097 00098 int _currentTag; 00099 00100 public: 00101 MlpSubscriber ( int subscriberType ); 00102 ~MlpSubscriber (); 00103 00104 int getSubscriberType(); 00105 00106 void setMsid ( std::string msid ); 00107 std::string getMsid (); 00108 00109 void setMsidType ( int msidType ); 00110 int getMsidType (); 00111 00112 void setMsidEnc ( int MsidEnc ); 00113 int getMsidEnc (); 00114 00115 void setStartMsid ( std::string startMsid ); 00116 std::string getStartMsid (); 00117 00118 void setStartMsidType ( int startMsidType ); 00119 int getStartMsidType (); 00120 00121 void setStartMsidEnc ( int startMsidEnc ); 00122 int getStartMsidEnc (); 00123 00124 void setStopMsid ( std::string stopMsid ); 00125 std::string getStopMsid (); 00126 00127 void setStopMsidType ( int stopMsidType ); 00128 int getStopMsidType (); 00129 00130 void setStopMsidEnc ( int stopMsidEnc ); 00131 int getStopMsidEnc (); 00132 00133 void setSession ( std::string session ); 00134 std::string getSession (); 00135 00136 void setSessionType ( int sessionType ); 00137 int getSessionType (); 00138 00139 00140 void setTransId ( std::string transId ); 00141 std::string getTransId (); 00142 00143 void setCodeword ( std::string codeword ); 00144 std::string getCodeword (); 00145 00146 void addCodeword (std::string codeword ); 00147 MlpCodewordList * getCodewordList(); 00148 00149 void setGsmNetParams ( MlpGsmNetParams * gsmNetParams ); 00150 MlpGsmNetParams* setGsmNetParams (); 00151 00152 void setCurrentTag (int currentTag ); 00153 int getCurrentTag (); 00154 00155 std::string toString() const; 00156 00157 }; 00158 00159 00160 #endif