incubator-bluesky-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dane0...@apache.org
Subject svn commit: r774247 [16/24] - in /incubator/bluesky: tags/Bluesky_version1.0/ trunk/ trunk/sourcecode/ trunk/sourcecode/dtu_src_v1.0/ trunk/sourcecode/student_src_v1.0/ trunk/sourcecode/student_src_v1.0/pic/ trunk/sourcecode/teacher_src_1.0/ trunk/sour...
Date Wed, 13 May 2009 07:44:32 GMT
Added: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/languagechoose.cpp
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/teacher_src_1.0/languagechoose.cpp?rev=774247&view=auto
==============================================================================
--- incubator/bluesky/trunk/sourcecode/teacher_src_1.0/languagechoose.cpp (added)
+++ incubator/bluesky/trunk/sourcecode/teacher_src_1.0/languagechoose.cpp Wed May 13 07:44:26 2009
@@ -0,0 +1,807 @@
+//Licensed to the Apache Software Foundation (ASF) under one
+//or more contributor license agreements.  See the NOTICE file
+//distributed with this work for additional information
+//regarding copyright ownership.  The ASF licenses this file
+//to you under the Apache License, Version 2.0 (the
+//"License"); you may not use this file except in compliance
+//with the License.  You may obtain a copy of the License at
+//
+//  http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing,
+//software distributed under the License is distributed on an
+//"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+//KIND, either express or implied.  See the License for the
+//specific language governing permissions and limitations
+//under the License. 
+
+
+
+///sourcename.list
+#include "languagechoose.h"
+
+
+
+//window_title
+#ifdef LANGUAGE_EN  
+ char *ptitle = "Teacher"; //teacher
+#endif
+#ifdef LANGUAGE_CH
+ char *ptitle = "\346\225\231\345\270\210\346\216\210\350\257\276\347\253\257";
+#endif
+
+ 
+//
+#ifdef LANGUAGE_EN  
+ char *psys = "System";
+#endif
+#ifdef LANGUAGE_CH
+ char *psys = "\347\263\273\347\273\237";
+#endif
+ //
+ 
+#ifdef LANGUAGE_EN  
+ char *pcreat = "Creat Class";  //creatclass  addde by ChenChen 2007.11.07
+#endif
+#ifdef LANGUAGE_CH
+ char *pcreat = "\345\210\233\345\273\272\350\257\276\345\240\202";
+#endif
+ 
+ //
+ 
+#ifdef LANGUAGE_EN  
+ char *pstop = "Stop Class";   //stopclass
+#endif
+#ifdef LANGUAGE_CH
+ char *pstop = "\345\201\234\346\255\242\350\257\276\345\240\202";
+#endif
+ 
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pset = "Option";   //Parameter Setting
+#endif
+#ifdef LANGUAGE_CH
+ char *pset = "\345\217\202\346\225\260\350\256\276\347\275\256";
+#endif 
+ 
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *plogin = "Longin";   //longin
+#endif
+#ifdef LANGUAGE_CH
+ char *plogin = "\347\231\273\345\275\225\346\234\215\345\212\241\345\231\250";
+#endif 
+
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pquit = "Quit";   //exit system
+#endif
+#ifdef LANGUAGE_CH
+ char *pquit = "\351\200\200\345\207\272\347\263\273\347\273\237";
+#endif 
+
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pmodechge = "Choose Mode";   //Choose Mode
+#endif
+#ifdef LANGUAGE_CH
+ char *pmodechge = "\346\250\241\345\274\217\350\275\254\346\215\242";
+#endif 
+ 
+#ifdef LANGUAGE_EN  
+ char *pmodetech = "Teach";   //Teaching Mode
+#endif
+#ifdef LANGUAGE_CH
+ char *pmodetech = "\346\216\210\350\257\276\346\250\241\345\274\217";
+#endif
+ 
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pmodecomu = "Communicate";   //Teaching Model
+#endif
+#ifdef LANGUAGE_CH
+ char *pmodecomu = "\344\272\244\344\272\222\346\250\241\345\274\217";
+#endif
+
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pview = "View";   //Teaching Model
+#endif
+#ifdef LANGUAGE_CH
+ char *pview = "\346\237\245\347\234\213";
+#endif
+ 
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pstuimg = "Student Image";   //Student Image
+#endif
+#ifdef LANGUAGE_CH
+ char *pstuimg = "\345\255\246\347\224\237\345\233\276\345\203\217";
+#endif
+
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *ptechimg = "Teacher Image";   //Teacher Image
+#endif
+#ifdef LANGUAGE_CH
+ char *ptechimg = "\346\225\231\345\270\210\345\233\276\345\203\217";
+#endif
+
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pstatrib = "Option";   //option
+#endif
+#ifdef LANGUAGE_CH
+ char *pstatrib = "\345\261\236\346\200\247\350\256\276\347\275\256";
+#endif
+ 
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *p = "Setting";   
+#endif
+#ifdef LANGUAGE_CH
+ char *p = "\350\256\276\347\275\256\345\210\235\345\247\213\345\217\202\346\225\260";
+#endif
+
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pjoin = "Longin";   
+#endif
+#ifdef LANGUAGE_CH
+ char *pjoin = "\347\231\273\345\275\225";
+#endif
+
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pgtk = "Teacher Longin";   
+#endif
+#ifdef LANGUAGE_CH
+ char *pgtk = "\346\225\231\345\270\210\347\231\273\345\275\225\346\234\215\345\212\241\345\231\250";
+#endif
+
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pexit = "Exit";   //exit
+#endif
+#ifdef LANGUAGE_CH
+ char *pexit = "\351\200\200\345\207\272";
+#endif
+
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pgtk1 = "Exit System";   //exit
+#endif
+#ifdef LANGUAGE_CH
+ char *pgtk1 = "\351\200\200\345\207\272\347\263\273\347\273\237";
+#endif
+
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pcrt = "Creat";   //creat class
+#endif
+#ifdef LANGUAGE_CH
+ char *pcrt = "\345\210\233\345\273\272\350\257\276\345\240\202";
+#endif
+
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pgtk2 = "Creat Class";   //creat class
+#endif
+#ifdef LANGUAGE_CH
+ char *pgtk2 = "\345\210\233\345\273\272\344\270\200\351\227\250\350\257\276";
+#endif
+
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pcancle = "Cancel";   //exit
+#endif
+#ifdef LANGUAGE_CH
+ char *pcancle = "\345\217\226\346\266\210\350\257\276\345\240\202";
+#endif
+
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pgtk3 = "Cancel Current Class";   //creat class
+#endif
+#ifdef LANGUAGE_CH
+ char *pgtk3 = "\345\217\226\346\266\210\345\275\223\345\211\215\350\257\276\345\240\202";
+#endif
+
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pteach = "Teach";   //teaching
+#endif
+#ifdef LANGUAGE_CH
+ char *pteach = "\346\216\210\350\257\276\346\250\241\345\274\217";
+#endif
+ 
+
+// 
+#ifdef LANGUAGE_EN  
+ char *pgtk4 = "Change to Teaching Mode";   
+#endif
+#ifdef LANGUAGE_CH
+ char *pgtk4 = "\350\275\254\345\205\245\346\216\210\350\257\276\346\250\241\345\274\217" ;
+#endif
+
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pcomu = "Commu";   //teaching
+#endif
+#ifdef LANGUAGE_CH
+ char *pcomu = "\344\272\244\344\272\222\346\250\241\345\274\217";
+#endif
+
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pgtk5 = "Change to Interactive Mode";  
+#endif
+#ifdef LANGUAGE_CH
+ char *pgtk5 = "\350\275\254\345\205\245\344\272\244\344\272\222\346\250\241\345\274\217";
+#endif
+
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pmodeswich = "ForbChat";   
+#endif
+#ifdef LANGUAGE_CH
+ char *pmodeswich = "\347\246\201\346\255\242\350\201\212\345\244\251";
+#endif
+ 
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pchatchge = "Mode Switching";   
+#endif
+#ifdef LANGUAGE_CH
+ char *pchatchge = "\346\250\241\345\274\217\345\210\207\346\215\242";  //"ģʽÇл»"; 
+#endif
+
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pstuname = "StudentName";   //student name
+#endif
+#ifdef LANGUAGE_CH
+ char *pstuname = "\345\255\246\347\224\237\345\220\215";
+#endif
+
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pcomustat = "Status";   //teaching
+#endif
+#ifdef LANGUAGE_CH
+ char *pcomustat = "\344\272\244\344\272\222\347\212\266\346\200\201";
+#endif
+ 
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pstulist = "<b>Status List</b>";   //teaching
+#endif
+#ifdef LANGUAGE_CH
+ char *pstulist = "<b>\345\255\246\347\224\237\347\212\266\346\200\201\345\210\227\350\241\250</b>";
+#endif
+
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *padd = "Choose";   
+#endif
+#ifdef LANGUAGE_CH
+ char *padd = "\346\214\207\345\256\232\347\204\246\347\202\271";
+#endif
+ 
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pgtk11 = "Cancel";   
+#endif
+#ifdef LANGUAGE_CH
+ char *pgtk11 = "\345\217\226\346\266\210\347\204\246\347\202\271";
+#endif
+ 
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pcommu = "<b>Text Exchanges</b>";   //teaching
+#endif
+#ifdef LANGUAGE_CH
+ char *pcommu = "<b>\346\226\207\346\234\254\344\272\244\346\265\201</b>";
+#endif
+
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pchat = "Chat";   //teaching
+#endif
+#ifdef LANGUAGE_CH
+ char *pchat = "\345\217\221\350\241\250";
+#endif
+
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pchoose = "Choose";   //teaching
+#endif
+#ifdef LANGUAGE_CH
+ char *pchoose = "\351\200\211\351\241\271";
+#endif
+
+ 
+//
+#ifdef LANGUAGE_EN  
+ char *pchositm = "ChooseItem";   //teaching
+#endif
+#ifdef LANGUAGE_CH
+ char *pchositm = "\350\247\206\351\237\263\351\242\221\351\200\211\346\213\251";
+#endif
+ 
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pwkmode = "Work Mode";   //teaching
+#endif
+#ifdef LANGUAGE_CH
+ char *pwkmode = "\345\267\245\344\275\234\346\250\241\345\274\217";
+#endif
+    
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pclear = "Clear";   //teaching
+#endif
+#ifdef LANGUAGE_CH
+ char *pclear = "\346\270\205\347\251\272\350\201\212\345\244\251";
+#endif
+    
+
+// 
+#ifdef LANGUAGE_EN  
+ char *pclrchat = "ClearChat";   //teaching
+#endif
+#ifdef LANGUAGE_CH
+ char *pclrchat = "\346\270\205\347\251\272\350\201\212\345\244\251\347\252\227\345\217\243";
+#endif
+    
+
+// 
+#ifdef LANGUAGE_EN  
+ char *prec = "Record";   //teaching
+#endif
+#ifdef LANGUAGE_CH
+ char *prec = "\345\275\225\345\210\266\350\257\276\344\273\266";
+#endif
+    
+
+// 
+#ifdef LANGUAGE_EN  
+ char *pgtitle = "Option";   
+#endif
+#ifdef LANGUAGE_CH
+ char *pgtitle = "\345\217\202\346\225\260\350\256\276\347\275\256";
+#endif
+    
+
+// 
+#ifdef LANGUAGE_EN  
+ char *plabe1 = "ServerIP      ";   //teaching
+#endif
+#ifdef LANGUAGE_CH
+ char *plabe1 = "\350\257\276\345\240\202\346\234\215\345\212\241\344\270\255\345\277\203IP     ";
+#endif
+
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *plabe2 = "Server Port  ";   //teaching
+#endif
+#ifdef LANGUAGE_CH
+ char *plabe2 = "\350\257\276\345\240\202\346\234\215\345\212\241\344\270\255\345\277\203\347\253\257\345\217\243 ";
+#endif
+
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *plabe0 = "<b>Server Setting</b>";   //teaching
+#endif
+#ifdef LANGUAGE_CH
+ char *plabe0 = "<b>\350\257\276\345\240\202\346\234\215\345\212\241\344\270\255\345\277\203\345\217\202\346\225\260</b>";
+#endif
+
+ 
+ 
+ 
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *plabe3 = "<b>Local Setting</b>";   
+#endif
+#ifdef LANGUAGE_CH
+ char *plabe3 = "<b>\346\234\254\345\234\260\345\217\202\346\225\260</b>";
+#endif
+
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *plabe10 = "Adv";   
+#endif
+#ifdef LANGUAGE_CH
+ char *plabe10 = "\351\253\230\347\272\247";
+#endif
+
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *plabe6 = "Cancel";   //teaching
+#endif
+#ifdef LANGUAGE_CH
+ char *plabe6 = "\345\217\226\346\266\210";
+#endif
+
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *plabe7 = "OK";   //teaching
+#endif
+#ifdef LANGUAGE_CH
+ char *plabe7 = "\347\241\256\345\256\232";
+#endif
+
+ 
+// Login Window
+#ifdef LANGUAGE_EN  
+ char *ptitle1 = "Login Window";   //teaching
+#endif
+#ifdef LANGUAGE_CH
+ char *ptitle1 = "\347\231\273\345\275\225\347\252\227\345\217\243";
+#endif
+ 
+ 
+// username
+#ifdef LANGUAGE_EN  
+ char *plabe05 = "UserName";   
+#endif
+#ifdef LANGUAGE_CH
+ char *plabe05 = "\347\224\250\346\210\267\345\220\215\357\274\232";
+#endif
+
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *plabe06 = "Password";   //teaching
+#endif
+#ifdef LANGUAGE_CH
+ char *plabe06 = "  \345\257\206\347\240\201\357\274\232";
+#endif
+
+ 
+// 	User Login
+#ifdef LANGUAGE_EN  
+ char *plabe04 = "<b>User Login</b>";   
+#endif
+#ifdef LANGUAGE_CH
+ char *plabe04 = "<b>\347\224\250\346\210\267\347\231\273\345\275\225</b>";
+#endif
+
+ 
+// creat class
+#ifdef LANGUAGE_EN  
+ char *psttitl = "Creat Class";   
+#endif
+#ifdef LANGUAGE_CH
+ char *psttitl = "\345\210\233\345\273\272\350\257\276\345\240\202";
+#endif
+
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *plabe12 = "ClassName";   //teaching
+#endif
+#ifdef LANGUAGE_CH
+ char *plabe12 = "\345\210\233\345\273\272\350\257\276\345\240\202\345\220\215";
+#endif
+ 
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *plabe13 = "Cancel";   //teaching
+#endif
+#ifdef LANGUAGE_CH
+ char *plabe13 = "\345\217\226\346\266\210";
+#endif
+ 
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *plabe14 = "OK";   //teaching
+#endif
+#ifdef LANGUAGE_CH
+ char *plabe14 = "\347\241\256\345\256\232";
+#endif
+
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *ptitle2 = "Equipment Selection";   //teaching
+#endif
+#ifdef LANGUAGE_CH
+ char *ptitle2 = "\350\247\206\351\242\221\350\256\276\345\244\207\351\200\211\346\213\251";
+#endif
+
+ 
+ 
+
+ 
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pviewbt = "Preview";   //teaching
+#endif
+#ifdef LANGUAGE_CH
+ char *pviewbt = "\351\242\204\350\247\210";
+#endif
+
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *ptitle3 = "Work Mode Select";   
+#endif
+#ifdef LANGUAGE_CH
+ char *ptitle3 = "\345\267\245\344\275\234\346\250\241\345\274\217\351\200\211\346\213\251";
+#endif
+ 
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pradiobtnt = "Remote Real-time Teaching";   
+#endif
+#ifdef LANGUAGE_CH
+ char *pradiobtnt = "\350\277\234\347\250\213\345\256\236\346\227\266\346\216\210\350\257\276";
+#endif
+ 
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pradiobtnr = "Local Record";   
+#endif
+#ifdef LANGUAGE_CH
+ char *pradiobtnr = "\345\215\225\346\234\272\350\257\276\344\273\266\345\275\225\345\210\266";
+#endif
+ 
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pwkcancl = "Cancel";   
+#endif
+#ifdef LANGUAGE_CH
+ char *pwkcancl = "\345\217\226\346\266\210";
+#endif
+   
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pwkok = "OK";   
+#endif
+#ifdef LANGUAGE_CH
+ char *pwkok = "\347\241\256\345\256\232";
+#endif
+
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *plabe22 = "Exit Recording?";   //teaching
+#endif
+#ifdef LANGUAGE_CH
+ char *plabe22 = "\346\230\257\345\220\246\351\200\200\345\207\272\345\275\225\345\210\266?";
+#endif
+   
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pextcancl = "NO";   
+#endif
+#ifdef LANGUAGE_CH
+ char *pextcancl = "\345\220\246";   //"·ñ";
+#endif
+   
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pextys = "YES";   
+#endif
+#ifdef LANGUAGE_CH
+ char *pextys = "\346\230\257";  //"ÊÇ";
+#endif
+         
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *plabe32 =  "Do you want to cancel the class?" ; //"\346\230\257\345\220\246\345\217\226\346\266\210\350\257\276\345\240\202AA3";   //teaching
+#endif
+#ifdef LANGUAGE_CH
+ char *plabe32 = "\346\230\257\345\220\246\345\217\226\346\266\210\350\257\276\345\240\202";
+#endif
+         
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pextclscancl = "NO";   
+#endif
+#ifdef LANGUAGE_CH
+ char *pextclscancl = "\345\220\246";   //"·ñ";
+#endif
+         
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pextclsys = "YES";   
+#endif
+#ifdef LANGUAGE_CH
+ char *pextclsys = "\346\230\257";  //"ÊÇ";
+#endif
+         
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *plabe42 = "Do you want to quit from the system?";   
+#endif
+#ifdef LANGUAGE_CH
+ char *plabe42 = "\346\230\257\345\220\246\351\200\200\345\207\272\347\263\273\347\273\237";
+#endif
+          
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pextsyscancl = "NO";   
+#endif
+#ifdef LANGUAGE_CH
+ char *pextsyscancl = "\345\220\246";  //"·ñ";
+#endif
+          
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pextsysys = "YES";   
+#endif
+#ifdef LANGUAGE_CH
+ char *pextsysys = "\346\230\257";   //"ÊÇ";
+#endif
+          
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *ptitle4 = "Recording Courseware Settings Dialog ";   //teaching
+#endif
+#ifdef LANGUAGE_CH
+ char *ptitle4 = "\345\275\225\345\210\266\350\257\276\344\273\266\345\273\266\350\277\237\350\256\276\347\275\256\345\257\271\350\257\235\346\241\206";
+#endif
+          
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *plabex = "After    ";   
+#endif
+#ifdef LANGUAGE_CH
+ char *plabex = "\350\257\276\344\273\266\345\260\206\345\234\250    ";
+#endif
+          
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *plabe013 = "  secondes,it will start to record courseware";   
+#endif
+#ifdef LANGUAGE_CH
+ char *plabe013 = "  \347\247\222\345\220\216\345\274\200\345\247\213\345\275\225\345\210\266";
+#endif   
+ 
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *plabe017 = "Delay settings of recording courseware";  
+#endif
+#ifdef LANGUAGE_CH
+ char *plabe017 = "\345\275\225\345\210\266\350\257\276\344\273\266\345\273\266\350\277\237\350\256\276\347\275\256";
+#endif        
+          
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *palwcht = "AlowChat";   
+#endif  
+#ifdef LANGUAGE_CH
+ char *palwcht = "\345\205\201\350\256\270\350\201\212\345\244\251";   //"ÔÊÐíÁÄÌì";    //"ÔÊÐíÁÄÌì";
+#endif
+           
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pextrcd = "ExitRecrd";   
+#endif
+#ifdef LANGUAGE_CH
+ char *pextrcd = "\351\200\200\345\207\272\345\275\225\345\210\266";    //"Í˳ö¼ÖÆ";
+#endif
+ 
+
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *plistpre = "Student List";   
+#endif
+#ifdef LANGUAGE_CH
+ char *plistpre = "\345\255\246\347\224\237\347\212\266\346\200\201\345\210\227\350\241\250";
+#endif
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pnumb = "n)";   
+#endif
+#ifdef LANGUAGE_CH
+ char *pnumb = "\344\272\272)";
+#endif
+
+  
+// 
+#ifdef LANGUAGE_EN  
+ char *pYES = "YES";   
+#endif
+#ifdef LANGUAGE_CH
+ char *pYES = "\346\230\257";
+#endif
+ 
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pNO = "NO";   
+#endif
+#ifdef LANGUAGE_CH
+ char *pNO = "\345\220\246";
+#endif 
+ 
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *pteacher_chat = "Teacher: ";   
+#endif
+#ifdef LANGUAGE_CH
+ char *pteacher_chat = "\350\200\201\345\270\210: ";
+#endif 
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *ptext01 = "\nThe focus student apply for cancel focus,and the ID is: ";   
+#endif
+#ifdef LANGUAGE_CH
+ char *ptext01 = "\n\345\255\246\347\224\237\350\257\267\346\261\202\346\222\244\351\224\200\347\204\246\347\202\271\357\274\214ID\345\217\267\344\270\272\357\274\232";
+#endif  
+ 
+// 
+#ifdef LANGUAGE_EN  
+ char *ptext = "\nOne student apply for focus,and the ID is";   
+#endif
+#ifdef LANGUAGE_CH
+ char *ptext = "\n\345\255\246\347\224\237\347\224\263\350\257\267\347\204\246\347\202\271\357\274\214ID\345\217\267\344\270\272\357\274\232";
+#endif

Added: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/languagechoose.h
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/teacher_src_1.0/languagechoose.h?rev=774247&view=auto
==============================================================================
--- incubator/bluesky/trunk/sourcecode/teacher_src_1.0/languagechoose.h (added)
+++ incubator/bluesky/trunk/sourcecode/teacher_src_1.0/languagechoose.h Wed May 13 07:44:26 2009
@@ -0,0 +1,298 @@
+//Licensed to the Apache Software Foundation (ASF) under one
+//or more contributor license agreements.  See the NOTICE file
+//distributed with this work for additional information
+//regarding copyright ownership.  The ASF licenses this file
+//to you under the Apache License, Version 2.0 (the
+//"License"); you may not use this file except in compliance
+//with the License.  You may obtain a copy of the License at
+//
+//  http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing,
+//software distributed under the License is distributed on an
+//"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+//KIND, either express or implied.  See the License for the
+//specific language governing permissions and limitations
+//under the License. 
+
+
+
+///sourcename.list
+#ifndef _SOURCE_NAME_H_
+#define _SOURCE_NAME_H_
+ 
+#define LANGUAGE_EN  //choose language
+
+// window titile
+ extern char *ptitle ; //teacher
+/////////////////////
+ 
+// system
+ 
+ extern char *psys ;
+
+/////////////////////
+ 
+// creat class 
+ extern char *pcreat ;  //creatclass  addde by ChenChen 2007.11.07
+/////////////////////// 
+ 
+ 
+// stop class
+ extern char *pstop ;   //stopclass
+/////////////////////////
+ 
+ 
+//Parameter Setting  
+ extern char *pset  ;   //Parameter Setting
+//////////////////
+ 
+ 
+// login
+ extern char *plogin  ;   //login
+/////////////////////
+ 
+
+// exit system 
+ extern char *pquit ;   //exit system
+/////////////////////////////////
+ 
+ 
+// choose mode 
+ extern char *pmodechge ;   //Choose Mode
+////////////////////////
+ 
+ 
+// teaching mode 
+ extern char *pmodetech ;   //Teaching Mode
+///////////////////
+ 
+
+//  communication mode
+ extern char *pmodecomu ;   
+/////////////////////////////////////
+ 
+ 
+// view 
+ extern char *pview ;   //Teaching Model
+/////////////////////
+ 
+ 
+// student's image 
+ extern char *pstuimg ;   //Student Image
+///////////////////////////////////
+ 
+ 
+// teacher's image 
+ extern char *ptechimg ;   //Teacher Image
+/////////////////////////////
+ 
+ 
+ 
+// Parameters
+ extern char *pstatrib ;   //option
+////////////////////////////////
+ 
+ 
+// option 
+ extern char *p ;   //option
+//////////////////////////////////////
+ 
+ 
+// login 
+ extern char *pjoin ;   //option
+/////////////////////////////////////////
+ 
+ 
+// 
+ extern char *pgtk ;   //option
+//////////////////////////////////////////
+ 
+
+// exit class 
+ extern char *pexit ;   //exit
+/////////////////////////////////////////
+ 
+ 
+// 
+ extern char *pgtk1 ;   //exit
+/////////////////////////////////////////////
+ 
+ 
+ 
+// creat class
+ extern char *pcrt ;   //creat class
+///////////////////////////////////////////////////
+ 
+ 
+// 
+ extern char *pgtk2 ;   //creat class
+////////////////////////////////////////////////////
+ 
+// Cancle 
+ extern char *pcancle ;   //exit
+/////////////////////////////////////////////////////
+ 
+ 
+// 
+ extern char *pgtk3 ;   //creat class
+////////////////////////////////////////////////////
+ 
+ 
+// teaching mode 
+ extern char *pteach ;   //teaching
+////////////////////////////////////////////////////////
+ 
+ 
+//  
+ extern char *pgtk4 ;   //creat class
+///////////////////////////////////////////////////
+ 
+ 
+// communication 
+ extern char *pcomu ;   //teaching
+//////////////////////////////////////////////////
+ 
+ 
+// 
+ extern char *pgtk5 ;   //teaching
+//////////////////////////////////////////////
+ 
+ 
+//  Prohibition Chat & Allowan Chat
+ extern char *pmodeswich ;   //teaching
+///////////////////////////////////////////////////
+ 
+ 
+// 
+ extern char *pchatchge ;
+
+ extern char *pstuname ;
+
+ extern char *pcomustat ;
+ 
+ extern char *pstulist ;
+
+ extern char *padd ;
+
+ extern char *pgtk11 ;
+
+ extern char *pcommu ;
+
+ extern char *pchat ;
+
+ extern char *pchoose ;
+
+ extern char *pchositm ;
+
+ extern char *pwkmode ;
+
+ extern char *pclear ;
+
+ extern char *pclrchat ;
+
+ extern char *prec ;
+
+ extern char *pgtitle ;
+ 
+ extern char *plabe1 ;  
+
+ extern char *plabe2 ;
+
+ extern char *plabe0 ;   
+
+ extern char *plabe4 ;  
+
+ extern char *plabe5 ;  
+
+ extern char *plabe05;
+ 
+ extern char *plabe3 ;  
+
+ extern char *plabe10 ;  
+
+ extern char *plabe6 ;  
+
+ extern char *plabe7;  
+
+ extern char *ptitle1 ;
+ 
+ extern char *plabe06 ;
+ 
+ extern char *plabe04 ;
+ 
+ extern char *psttitl ;
+ 
+ extern char *plabe12 ;   
+
+ extern char *plabe13 ;   
+
+ extern char *plabe14 ;  
+
+ extern char *ptitle2 ;   
+
+ extern char *plabe09 ; 
+ 
+ extern char *plabe00 ;   
+
+ extern char *pcombox ;  
+
+ extern char *pviewbt ;   
+
+ extern char *plabe17 ;   
+
+ extern char *ptitle3 ;   
+
+ extern char *pradiobtnt ;   
+
+ extern char *pradiobtnr ;   
+
+ extern char *pwkcancl ;   
+ 
+ extern char *pwkok ;   
+
+ extern char *plabe22 ;
+ 
+ extern char *pextcancl ;   
+
+ extern char *pextys ;   
+
+ extern char *plabe32 ;
+ 
+ extern char *pextclscancl ;   
+
+ extern char *pextclsys ;   
+
+ extern char *plabe42 ;   
+
+ extern char *pextsyscancl ;  
+
+ extern char *pextsysys ;   
+
+ extern char *ptitle4 ;
+ 
+ extern char *plabex ;
+ 
+ extern char *plabe013 ;
+ 
+ extern char *plabe017 ;   
+
+ extern char *palwcht ;   
+
+ extern char *pextrcd ;   
+
+ extern char *plistpre ;
+ 
+ extern char *pnumb ;
+ 
+ extern char *pYES ;
+ 
+ extern char *pNO ;
+ 
+ extern char *ptext ;
+ 
+ extern char *ptext01 ;
+ 
+ extern char *pteacher_chat ;
+ 
+#endif

Added: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/ncteacher.cc
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/teacher_src_1.0/ncteacher.cc?rev=774247&view=auto
==============================================================================
--- incubator/bluesky/trunk/sourcecode/teacher_src_1.0/ncteacher.cc (added)
+++ incubator/bluesky/trunk/sourcecode/teacher_src_1.0/ncteacher.cc Wed May 13 07:44:26 2009
@@ -0,0 +1,146 @@
+//Licensed to the Apache Software Foundation (ASF) under one
+//or more contributor license agreements.  See the NOTICE file
+//distributed with this work for additional information
+//regarding copyright ownership.  The ASF licenses this file
+//to you under the Apache License, Version 2.0 (the
+//"License"); you may not use this file except in compliance
+//with the License.  You may obtain a copy of the License at
+//
+//  http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing,
+//software distributed under the License is distributed on an
+//"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+//KIND, either express or implied.  See the License for the
+//specific language governing permissions and limitations
+//under the License. 
+
+
+
+#include <gdk/gdk.h>
+#include <gdk/gdkimage.h> 
+#include <config.h>
+#include <gtk/gtk.h>
+#include <gdk/gdkkeysyms.h> 
+#include <glib/gi18n.h>
+#include "interface.hh"
+
+#include "support.hh"
+#include "callbacks.hh" 
+#include "client_communicate.h"
+#include "errorinfo.h"
+
+
+#define NCTEACHER_VERSION "2.0"
+#define MODIFY_INFO "modify clientsocket.cc and pixmap--2007.05.28"
+
+
+int g_work_mode = 0;	// 1 recorder mode.
+int delay_time;
+
+
+
+
+client_ts_communicate client_comm;
+
+
+char g_DevName[10][32];
+
+
+struct entry_setpara ncteacher_get_para;  
+struct entry_usepara ncteacher_get_user;   
+
+int set_saved_setpara()     //get saved parameter
+{
+	FILE *fp;
+    entry_setpara *save_setpara;
+	
+	if((fp=fopen("ncteacher_setpara.conf","rt"))==NULL)
+	{
+		printf("Error:can't open parameter file!\n");
+		strcpy(ncteacher_get_para.serverip,"202.117.10.88");
+		ncteacher_get_para.serverport=12345;
+		return 0;
+	}
+	
+	save_setpara=&ncteacher_get_para;
+	fread(save_setpara,sizeof(struct entry_setpara),1,fp);
+	ncteacher_get_para.serverport=12345;
+	
+	fclose(fp);
+	
+	return 1;
+}
+
+int set_saved_userpara()     //get saved parameter
+{
+	FILE *fp;
+	entry_usepara *save_usepara;
+	
+	if((fp=fopen("ncteacher_userpara.conf","rt"))==NULL)
+	{
+		printf("Error:can't open user parameter file!\n");
+		strcpy(ncteacher_get_user.username,"teacher");
+		strcpy(ncteacher_get_user.password,"teacher");
+
+		return 0;
+	}
+	
+	save_usepara=&ncteacher_get_user;
+	fread(save_usepara,sizeof(struct entry_usepara),1,fp);
+	fclose(fp);
+	
+	return 1;
+}
+
+
+
+
+int main(int argc, char **argv)
+{
+
+
+   if(argc==2)               
+  {
+    if( (strcmp(argv[1],"--version")==0))
+    {
+        printf("\n ncteacher (copyright@XJTU), version %s\n\n",NCTEACHER_VERSION);
+        return 0;
+    }
+    else if(strcmp(argv[1],"-v")==0)
+	{
+		printf("%s\n",NCTEACHER_VERSION);
+	}
+	else if(strcmp(argv[1],"-d")==0){
+		printf("%s\n",MODIFY_INFO);
+	}
+	else
+        printf("\n unknow parameter!\n\n");
+	
+	return 0;
+  }      
+    
+ 
+  set_saved_setpara();     
+  set_saved_userpara();	
+  GtkWidget *window1;
+
+#ifdef ENABLE_NLS
+  bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
+  bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+  textdomain (GETTEXT_PACKAGE);
+#endif
+
+  gtk_set_locale ();
+  gtk_init (&argc, &argv);
+
+  add_pixmap_directory (PACKAGE_DATA_DIR "/" PACKAGE "/pixmaps");
+  window1 = create_window1();
+  gtk_widget_show (window1);
+  gtk_timeout_add(1000,ncteacher_timer_callback,NULL);
+  
+  gtk_main ();
+
+
+  return 0;
+}

Added: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/ncteacher_setpara.conf
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/teacher_src_1.0/ncteacher_setpara.conf?rev=774247&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/ncteacher_setpara.conf
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/ncteacher_userpara.conf
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/teacher_src_1.0/ncteacher_userpara.conf?rev=774247&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/ncteacher_userpara.conf
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/pic/student.bmp
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/teacher_src_1.0/pic/student.bmp?rev=774247&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/pic/student.bmp
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/pic/teacher.bmp
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/teacher_src_1.0/pic/teacher.bmp?rev=774247&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/pic/teacher.bmp
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/singlecomm.cpp
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/teacher_src_1.0/singlecomm.cpp?rev=774247&view=auto
==============================================================================
--- incubator/bluesky/trunk/sourcecode/teacher_src_1.0/singlecomm.cpp (added)
+++ incubator/bluesky/trunk/sourcecode/teacher_src_1.0/singlecomm.cpp Wed May 13 07:44:26 2009
@@ -0,0 +1,239 @@
+//Licensed to the Apache Software Foundation (ASF) under one
+//or more contributor license agreements.  See the NOTICE file
+//distributed with this work for additional information
+//regarding copyright ownership.  The ASF licenses this file
+//to you under the Apache License, Version 2.0 (the
+//"License"); you may not use this file except in compliance
+//with the License.  You may obtain a copy of the License at
+//
+//  http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing,
+//software distributed under the License is distributed on an
+//"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+//KIND, either express or implied.  See the License for the
+//specific language governing permissions and limitations
+//under the License. 
+
+
+
+// CSingleComm.cpp: implementation of the CSingleComm class.
+
+
+//////////////////////////////////////////////////////////////////////
+
+
+
+#include "asyncsocketex.h"
+
+#include "singlecomm.h"
+
+
+
+#define SOCKETMUTEX_LOCK	{\
+							socketmutex.Lock();	\
+							}
+
+							
+
+
+
+#define SOCKETMUTEX_UNLOCK	{	\
+							socketmutex.Unlock();}
+
+
+
+//////////////////////////////////////////////////////////////////////
+
+// Construction/Destruction
+
+//////////////////////////////////////////////////////////////////////
+
+
+
+CSingleComm::CSingleComm()
+
+{
+
+
+
+	m_socket = 0;
+
+}
+
+
+
+CSingleComm::~CSingleComm()
+
+{
+
+
+
+	m_socket = 0;
+
+}
+
+
+
+bool CSingleComm::Init()
+
+{
+
+	if(!CTCPComm::Init())
+
+		return false;
+
+
+
+	if (!socketmutex.IsInitialized())
+
+	{
+
+		if (socketmutex.Init() < 0)
+
+			return false;
+
+	}
+
+
+
+	return true;
+
+}
+
+
+
+int CSingleComm::OnPollThreadError(int status)
+
+{
+
+
+
+	return -1;
+
+}
+
+
+
+int CSingleComm::Poll()
+
+{
+
+	int nRes;
+
+	SOCKETMUTEX_LOCK	
+
+
+
+	if(m_socket == 0){
+
+		SOCKETMUTEX_UNLOCK
+
+		return 0;
+
+	}
+
+
+
+	nRes = m_socket->Poll();
+
+	if(nRes < 0){
+
+		SOCKETMUTEX_UNLOCK
+
+		return nRes;
+
+	}
+
+
+
+	m_socket->SetStatus(nRes);
+
+
+
+	SOCKETMUTEX_UNLOCK
+
+	return nRes;
+
+}
+
+
+
+int CSingleComm::PolledSocket()
+
+{
+
+
+
+	SOCKETMUTEX_LOCK	
+
+
+
+	if(m_socket == 0){
+
+		SOCKETMUTEX_UNLOCK
+
+		return 0;
+
+	}
+
+
+
+	m_socket->OnEvent();
+
+
+
+	SOCKETMUTEX_UNLOCK
+
+	return 1;
+
+}
+
+
+
+
+
+void CSingleComm::Attach(CAsyncSocketEx* socket)
+
+{
+
+	SOCKETMUTEX_LOCK	
+
+
+
+	m_socket = socket;
+
+	SOCKETMUTEX_UNLOCK
+
+}
+
+
+
+CAsyncSocketEx* CSingleComm::Detach()
+
+{
+
+	SOCKETMUTEX_LOCK	
+
+	CAsyncSocketEx* p = m_socket;
+
+	m_socket = 0;
+
+	SOCKETMUTEX_UNLOCK
+
+	return p;
+
+}
+
+
+
+void CSingleComm::OnPollThreadStep()
+
+{
+
+	
+
+
+	usleep(200000);
+
+}

Added: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/singlecomm.h
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/teacher_src_1.0/singlecomm.h?rev=774247&view=auto
==============================================================================
--- incubator/bluesky/trunk/sourcecode/teacher_src_1.0/singlecomm.h (added)
+++ incubator/bluesky/trunk/sourcecode/teacher_src_1.0/singlecomm.h Wed May 13 07:44:26 2009
@@ -0,0 +1,48 @@
+//Licensed to the Apache Software Foundation (ASF) under one
+//or more contributor license agreements.  See the NOTICE file
+//distributed with this work for additional information
+//regarding copyright ownership.  The ASF licenses this file
+//to you under the Apache License, Version 2.0 (the
+//"License"); you may not use this file except in compliance
+//with the License.  You may obtain a copy of the License at
+//
+//  http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing,
+//software distributed under the License is distributed on an
+//"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+//KIND, either express or implied.  See the License for the
+//specific language governing permissions and limitations
+//under the License. 
+
+
+// CSingleComm.h: interface for the CSingleComm class.

+//////////////////////////////////////////////////////////////////////
+
+#if !defined(SINGLECOMM_H)
+#define SINGLECOMM_H
+
+#include <jmutex.h>
+#include "tcpcomm.h"
+
+class CSingleComm : public CTCPComm  
+{
+public:
+	CAsyncSocketEx* Detach();
+	void Attach(CAsyncSocketEx* socket);
+	CSingleComm();
+	virtual ~CSingleComm();
+	virtual bool Init();
+
+protected:
+	virtual void OnPollThreadStep();
+	virtual int OnPollThreadError(int status);
+	virtual int PolledSocket();
+	virtual int Poll() ;
+
+private:
+	JMutex socketmutex;
+	CAsyncSocketEx* m_socket;
+};
+
+#endif // !defined(SINGLECOMM_H)

Added: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/sourcename.hh
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/teacher_src_1.0/sourcename.hh?rev=774247&view=auto
==============================================================================
--- incubator/bluesky/trunk/sourcecode/teacher_src_1.0/sourcename.hh (added)
+++ incubator/bluesky/trunk/sourcecode/teacher_src_1.0/sourcename.hh Wed May 13 07:44:26 2009
@@ -0,0 +1,283 @@
+//Licensed to the Apache Software Foundation (ASF) under one
+//or more contributor license agreements.  See the NOTICE file
+//distributed with this work for additional information
+//regarding copyright ownership.  The ASF licenses this file
+//to you under the Apache License, Version 2.0 (the
+//"License"); you may not use this file except in compliance
+//with the License.  You may obtain a copy of the License at
+//
+//  http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing,
+//software distributed under the License is distributed on an
+//"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+//KIND, either express or implied.  See the License for the
+//specific language governing permissions and limitations
+//under the License. 
+
+
+///sourcename.list
+#ifndef _SOURCE_NAME_H_
+#define _SOURCE_NAME_H_
+ 
+
+// window titile
+ extern char *ptitle ; //teacher
+/////////////////////
+ 
+// system
+ 
+ extern char *psys ;
+
+/////////////////////
+ 
+// creat class 
+ extern char *pcreat ;  
+/////////////////////// 
+ 
+ 
+// stop class
+ extern char *pstop ;   //stopclass
+/////////////////////////
+ 
+ 
+//Parameter Setting  
+ extern char *pset  ;   //Parameter Setting
+//////////////////
+ 
+ 
+// login
+ extern char *plogin  ;   //login
+/////////////////////
+ 
+
+// exit system 
+ extern char *pquit ;   //exit system
+/////////////////////////////////
+ 
+ 
+// choose mode 
+ extern char *pmodechge ;   //Choose Mode
+////////////////////////
+ 
+ 
+// teaching mode 
+ extern char *pmodetech ;   //Teaching Mode
+///////////////////
+ 
+
+//  communication mode
+ extern char *pmodecomu ;   
+/////////////////////////////////////
+ 
+ 
+// view 
+ extern char *pview ;   //Teaching Model
+/////////////////////
+ 
+ 
+// student's image 
+ char *pstuimg ;   //Student Image
+///////////////////////////////////
+ 
+ 
+// teacher's image 
+ extern char *ptechimg ;   //Teacher Image
+/////////////////////////////
+ 
+ 
+ 
+// Parameters
+ extern char *pstatrib ;   //option
+////////////////////////////////
+ 
+ 
+// option 
+ extern char *p ;   //option
+//////////////////////////////////////
+ 
+ 
+// login 
+ extern char *pjoin ;   //option
+/////////////////////////////////////////
+ 
+ 
+// 
+ extern char *pgtk ;   //option
+//////////////////////////////////////////
+ 
+
+// exit class 
+ extern char *pexit ;   //exit
+/////////////////////////////////////////
+ 
+ 
+// ?? 
+ extern char *pgtk1 = "Pp2";   //exit
+/////////////////////////////////////////////
+ 
+ 
+ 
+// creat class
+ extern char *pcrt = "Creat";   //creat class
+///////////////////////////////////////////////////
+ 
+ 
+// ?? 
+ extern char *pgtk2 = "Pp3";   //creat class
+////////////////////////////////////////////////////
+ 
+// Cancle 
+ extern char *pcancle = "Cancle";   //exit
+/////////////////////////////////////////////////////
+ 
+ 
+// ?? 
+ extern char *pgtk3 = "Pp4";   //creat class
+////////////////////////////////////////////////////
+ 
+ 
+// teaching mode 
+ extern char *pteach = "Teach";   //teaching
+////////////////////////////////////////////////////////
+ 
+ 
+// ?? 
+ extern char *pgtk4 = "Pp5";   //creat class
+///////////////////////////////////////////////////
+ 
+ 
+// communication 
+ extern char *pcomu = "Communicate";   //teaching
+//////////////////////////////////////////////////
+ 
+ 
+// ?? 
+ extern char *pgtk5 = "Pp6";   //teaching
+//////////////////////////////////////////////
+ 
+ 
+//  Prohibition Chat & Allowan Chat
+ extern char *pmodeswich = "Prohibition Chat";   //teaching
+///////////////////////////////////////////////////
+ 
+ 
+// ?? 
+ extern char *pchatchge ;
+
+ extern char *pstuname ;
+
+ extern char *pcomustat ;
+ 
+ extern char *pstulist ;
+
+ extern char *padd ;
+
+ extern char *pgtk11 ;
+
+ extern char *pcommu ;
+
+ extern char *pchat ;
+
+ extern char *pchoose ;
+
+ extern char *pchositm ;
+
+ extern char *pwkmode ;
+
+ extern char *pclear ;
+
+ extern char *pclrchat ;
+
+ extern char *prec ;
+
+ extern char *pgtitle ;
+ 
+ extern char *plabe1 ;  //teaching
+
+ extern char *plabe2 ;//teaching
+
+ extern char *plabe0 ;   //teaching
+
+ extern char *plabe4 ;  //teaching
+
+ extern char *plabe5 ;  //teaching
+
+ extern char *plabe3 ;  //teaching
+
+ extern char *plabe10 ;   //teaching
+
+ extern char *plabe6 ;  //teaching
+
+ extern char *plabe7;  //teaching
+
+ extern char *ptitle1 ;
+ 
+ extern char *plabe06 ;
+ 
+ extern char *plabe04 ;
+ 
+ extern char *psttitl ;
+ extern char *plabe12 ;   
+
+ extern char *plabe13 ;   
+
+ extern char *plabe14 ;  
+
+ extern char *ptitle2 ;   
+
+ extern char *plabe09 ; 
+ 
+ extern char *plabe00 ;   
+
+ extern char *pcombox ;  
+
+ extern char *pviewbt ;   
+
+ extern char *plabe17 ;   
+
+ extern char *ptitle3 ;   
+
+ extern char *pradiobtnt ;   
+
+ extern char *pradiobtnr ;   //teaching
+
+ extern char *pwkcancl ;   //teaching
+ 
+ extern char *pwkok ;   //teaching
+
+ extern char *plabe22 ;
+ 
+ extern char *pextcancl ;   //teaching
+
+ extern char *pextys ;   //teaching
+
+ extern char *plabe32 ;
+ 
+ extern char *pextclscancl ;   //teaching
+
+ extern char *pextclsys ;   //teaching
+
+ extern char *plabe42 ;   //teaching
+
+ extern char *pextsyscancl ;   //teaching
+
+ extern char *pextsysys ;   //teaching
+
+ extern char *ptitle4 ;
+ 
+ extern char *plabe012 ;
+ 
+ extern char *plabe013 ;
+ 
+ extern char *plabe017 ;   //teaching
+
+ extern char *palwcht ;   //teaching
+
+ extern char *pextrcd ;   //teaching
+
+ extern char *pextrcd ;   //teaching
+
+ 
+
+#endif

Added: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/stdafx.h
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/teacher_src_1.0/stdafx.h?rev=774247&view=auto
==============================================================================
--- incubator/bluesky/trunk/sourcecode/teacher_src_1.0/stdafx.h (added)
+++ incubator/bluesky/trunk/sourcecode/teacher_src_1.0/stdafx.h Wed May 13 07:44:26 2009
@@ -0,0 +1,87 @@
+//Licensed to the Apache Software Foundation (ASF) under one
+//or more contributor license agreements.  See the NOTICE file
+//distributed with this work for additional information
+//regarding copyright ownership.  The ASF licenses this file
+//to you under the Apache License, Version 2.0 (the
+//"License"); you may not use this file except in compliance
+//with the License.  You may obtain a copy of the License at
+//
+//  http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing,
+//software distributed under the License is distributed on an
+//"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+//KIND, either express or implied.  See the License for the
+//specific language governing permissions and limitations
+//under the License. 
+
+
+
+
+
+
+#if !defined(STDAFX_H_LINUX)
+
+#define STDAFX_H_LINUX
+
+	#include <sys/socket.h>
+
+	#include <netinet/in.h>
+
+	#include <arpa/inet.h>
+
+	#include <sys/ioctl.h>
+
+	#include <net/if.h>
+
+	#include <string.h>
+
+	#include <netdb.h>
+
+	#include <unistd.h>
+
+	#include <stdio.h>
+
+
+
+
+
+	#define RTPSOCKERR					-1
+
+
+
+
+
+
+
+
+	#define INVALID_SOCKET				0
+
+	#define SOCKET_ERROR  			    RTPSOCKERR
+
+
+
+	#define IOCTL						ioctl
+
+	#define CLOSESOCKET(x)				close(x);
+
+
+
+	typedef int							SOCKET;
+
+	typedef sockaddr					SOCKADDR;
+
+	typedef struct sockaddr_in		SOCKADDR_IN;
+
+
+	typedef unsigned int				UINT;
+
+	typedef const char*					LPCTSTR;
+
+	typedef char*						LPSTR;
+
+	typedef unsigned long				DWORD;
+
+	typedef struct hostent				HOSTENT, *LPHOSTENT;
+
+#endif // !defined(STDAFX_H_LINUX)

Added: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/support.cc
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/teacher_src_1.0/support.cc?rev=774247&view=auto
==============================================================================
--- incubator/bluesky/trunk/sourcecode/teacher_src_1.0/support.cc (added)
+++ incubator/bluesky/trunk/sourcecode/teacher_src_1.0/support.cc Wed May 13 07:44:26 2009
@@ -0,0 +1,157 @@
+//Licensed to the Apache Software Foundation (ASF) under one
+//or more contributor license agreements.  See the NOTICE file
+//distributed with this work for additional information
+//regarding copyright ownership.  The ASF licenses this file
+//to you under the Apache License, Version 2.0 (the
+//"License"); you may not use this file except in compliance
+//with the License.  You may obtain a copy of the License at
+//
+//  http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing,
+//software distributed under the License is distributed on an
+//"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+//KIND, either express or implied.  See the License for the
+//specific language governing permissions and limitations
+//under the License. 
+
+
+
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
+#include <string.h>
+#include <stdio.h>
+
+#include <gtk/gtk.h>
+
+#include "support.hh"
+
+GtkWidget*
+lookup_widget                          (GtkWidget       *widget,
+                                        const gchar     *widget_name)
+{
+  GtkWidget *parent, *found_widget;
+
+  for (;;)
+    {
+      if (GTK_IS_MENU (widget))
+        parent = gtk_menu_get_attach_widget (GTK_MENU (widget));
+      else
+        parent = widget->parent;
+      if (!parent)
+        parent = (GtkWidget*) g_object_get_data (G_OBJECT (widget), "GladeParentKey");
+      if (parent == NULL)
+        break;
+      widget = parent;
+    }
+
+  found_widget = (GtkWidget*) g_object_get_data (G_OBJECT (widget),
+                                                 widget_name);
+  if (!found_widget)
+    g_warning ("Widget not found: %s", widget_name);
+  return found_widget;
+}
+
+static GList *pixmaps_directories = NULL;
+
+/* Use this function to set the directory containing installed pixmaps. */
+void
+add_pixmap_directory                   (const gchar     *directory)
+{
+  pixmaps_directories = g_list_prepend (pixmaps_directories,
+                                        g_strdup (directory));
+}
+
+/* This is an internally used function to find pixmap files. */
+static gchar*
+find_pixmap_file                       (const gchar     *filename)
+{
+  GList *elem;
+
+  elem = pixmaps_directories;
+  while (elem)
+    {
+      gchar *pathname = g_strdup_printf ("%s%s%s", (gchar*)elem->data,
+                                         G_DIR_SEPARATOR_S, filename);
+      if (g_file_test (pathname, G_FILE_TEST_EXISTS))
+        return pathname;
+      g_free (pathname);
+      elem = elem->next;
+    }
+  return NULL;
+}
+
+/* This is an internally used function to create pixmaps. */
+GtkWidget*
+create_pixmap                          (GtkWidget       *widget,
+                                        const gchar     *filename)
+{
+  gchar *pathname = NULL;
+  GtkWidget *pixmap;
+
+  if (!filename || !filename[0])
+      return gtk_image_new ();
+
+  pathname = find_pixmap_file (filename);
+
+  if (!pathname)
+    {
+      g_warning (_("Couldn't find pixmap file: %s"), filename);
+      return gtk_image_new ();
+    }
+
+  pixmap = gtk_image_new_from_file (pathname);
+  g_free (pathname);
+  return pixmap;
+}
+
+/* This is an internally used function to create pixmaps. */
+GdkPixbuf*
+create_pixbuf                          (const gchar     *filename)
+{
+  gchar *pathname = NULL;
+  GdkPixbuf *pixbuf;
+  GError *error = NULL;
+
+  if (!filename || !filename[0])
+      return NULL;
+
+  pathname = find_pixmap_file (filename);
+
+  if (!pathname)
+    {
+      g_warning (_("Couldn't find pixmap file: %s"), filename);
+      return NULL;
+    }
+
+  pixbuf = gdk_pixbuf_new_from_file (pathname, &error);
+  if (!pixbuf)
+    {
+      fprintf (stderr, "Failed to load pixbuf file: %s: %s\n",
+               pathname, error->message);
+      g_error_free (error);
+    }
+  g_free (pathname);
+  return pixbuf;
+}
+
+/* This is used to set ATK action descriptions. */
+void
+glade_set_atk_action_description       (AtkAction       *action,
+                                        const gchar     *action_name,
+                                        const gchar     *description)
+{
+  gint n_actions, i;
+
+  n_actions = atk_action_get_n_actions (action);
+  for (i = 0; i < n_actions; i++)
+    {
+      if (!strcmp (atk_action_get_name (action, i), action_name))
+        atk_action_set_description (action, i, description);
+    }
+}

Added: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/support.hh
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/teacher_src_1.0/support.hh?rev=774247&view=auto
==============================================================================
--- incubator/bluesky/trunk/sourcecode/teacher_src_1.0/support.hh (added)
+++ incubator/bluesky/trunk/sourcecode/teacher_src_1.0/support.hh Wed May 13 07:44:26 2009
@@ -0,0 +1,83 @@
+//Licensed to the Apache Software Foundation (ASF) under one
+//or more contributor license agreements.  See the NOTICE file
+//distributed with this work for additional information
+//regarding copyright ownership.  The ASF licenses this file
+//to you under the Apache License, Version 2.0 (the
+//"License"); you may not use this file except in compliance
+//with the License.  You may obtain a copy of the License at
+//
+//  http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing,
+//software distributed under the License is distributed on an
+//"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+//KIND, either express or implied.  See the License for the
+//specific language governing permissions and limitations
+//under the License. 
+
+
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
+#include <gtk/gtk.h>
+
+/*
+ * Standard gettext macros.
+ */
+#ifdef ENABLE_NLS
+#  include <libintl.h>
+#  undef _
+#  define _(String) dgettext (PACKAGE, String)
+#  define Q_(String) g_strip_context ((String), gettext (String))
+#  ifdef gettext_noop
+#    define N_(String) gettext_noop (String)
+#  else
+#    define N_(String) (String)
+#  endif
+#else
+#  define textdomain(String) (String)
+#  define gettext(String) (String)
+#  define dgettext(Domain,Message) (Message)
+#  define dcgettext(Domain,Message,Type) (Message)
+#  define bindtextdomain(Domain,Directory) (Domain)
+#  define _(String) (String)
+#  define Q_(String) g_strip_context ((String), (String))
+#  define N_(String) (String)
+#endif
+
+
+/*
+ * Public Functions.
+ */
+
+/*
+ * This function returns a widget in a component created by Glade.
+ * Call it with the toplevel widget in the component (i.e. a window/dialog),
+ * or alternatively any widget in the component, and the name of the widget
+ * you want returned.
+ */
+GtkWidget*  lookup_widget              (GtkWidget       *widget,
+                                        const gchar     *widget_name);
+
+
+/* Use this function to set the directory containing installed pixmaps. */
+void        add_pixmap_directory       (const gchar     *directory);
+
+
+/*
+ * Private Functions.
+ */
+
+/* This is used to create the pixmaps used in the interface. */
+GtkWidget*  create_pixmap              (GtkWidget       *widget,
+                                        const gchar     *filename);
+
+/* This is used to create the pixbufs used in the interface. */
+GdkPixbuf*  create_pixbuf              (const gchar     *filename);
+
+/* This is used to set ATK action descriptions. */
+void        glade_set_atk_action_description (AtkAction       *action,
+                                              const gchar     *action_name,
+                                              const gchar     *description);
+

Added: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/tcpcomm.cpp
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/teacher_src_1.0/tcpcomm.cpp?rev=774247&view=auto
==============================================================================
--- incubator/bluesky/trunk/sourcecode/teacher_src_1.0/tcpcomm.cpp (added)
+++ incubator/bluesky/trunk/sourcecode/teacher_src_1.0/tcpcomm.cpp Wed May 13 07:44:26 2009
@@ -0,0 +1,87 @@
+//Licensed to the Apache Software Foundation (ASF) under one
+//or more contributor license agreements.  See the NOTICE file
+//distributed with this work for additional information
+//regarding copyright ownership.  The ASF licenses this file
+//to you under the Apache License, Version 2.0 (the
+//"License"); you may not use this file except in compliance
+//with the License.  You may obtain a copy of the License at
+//
+//  http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing,
+//software distributed under the License is distributed on an
+//"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+//KIND, either express or implied.  See the License for the
+//specific language governing permissions and limitations
+//under the License. 
+
+
+// TCPComm.cpp: implementation of the CTCPComm class.
+//////////////////////////////////////////////////////////////////////
+
+#include "stdafx.h"
+#include "asyncsocketex.h"
+#include "tcpcomm.h"
+#include "tcppollthread.h"
+
+//////////////////////////////////////////////////////////////////////
+// Construction/Destruction
+//////////////////////////////////////////////////////////////////////
+
+CTCPComm::CTCPComm()
+{
+
+	m_pThread = 0;
+}
+
+CTCPComm::~CTCPComm()
+{
+
+}
+
+
+int CTCPComm::OnPollThreadError(int status)
+{
+	return -1;
+}
+
+bool CTCPComm::Init()
+{
+
+	if(m_pThread){
+		m_pThread->Stop();
+		return true;
+	}
+
+	m_pThread = new CTCPPollThread(this);
+
+	if(m_pThread)
+		return true;
+
+	return false;
+}
+
+int CTCPComm::Start()
+{
+	if(m_pThread == 0){
+		return -1;
+	}
+	return m_pThread->Start();
+}
+
+bool CTCPComm::IsPolling()
+{
+	if(m_pThread == 0){
+		return false;
+	}
+	return m_pThread->IsRunning();
+}
+
+
+void CTCPComm::Stop()
+{
+	if(m_pThread){
+		m_pThread->Stop();
+	}
+
+}

Added: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/tcpcomm.h
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/teacher_src_1.0/tcpcomm.h?rev=774247&view=auto
==============================================================================
--- incubator/bluesky/trunk/sourcecode/teacher_src_1.0/tcpcomm.h (added)
+++ incubator/bluesky/trunk/sourcecode/teacher_src_1.0/tcpcomm.h Wed May 13 07:44:26 2009
@@ -0,0 +1,49 @@
+//Licensed to the Apache Software Foundation (ASF) under one
+//or more contributor license agreements.  See the NOTICE file
+//distributed with this work for additional information
+//regarding copyright ownership.  The ASF licenses this file
+//to you under the Apache License, Version 2.0 (the
+//"License"); you may not use this file except in compliance
+//with the License.  You may obtain a copy of the License at
+//
+//  http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing,
+//software distributed under the License is distributed on an
+//"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+//KIND, either express or implied.  See the License for the
+//specific language governing permissions and limitations
+//under the License. 
+
+
+// TCPComm.h: interface for the CTCPComm class.


+//////////////////////////////////////////////////////////////////////
+
+#if !defined(TCPCOMM_H)
+#define TCPCOMM_H
+
+class CTCPPollThread;
+class CTCPComm  
+{
+	friend class CTCPPollThread;
+public:
+	void Stop();
+	bool IsPolling();
+	int Start();
+	virtual bool Init();
+	CTCPComm();
+	virtual ~CTCPComm();
+
+protected:
+	virtual void OnPollThreadStep() = 0;
+	virtual int OnPollThreadError(int status);
+	virtual int PolledSocket() = 0;
+	virtual int Poll() = 0;
+
+	
+
+private:
+	CTCPPollThread *m_pThread;
+};
+
+#endif // !defined(TCPCOMM_H)

Added: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/tcppollthread.cpp
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/teacher_src_1.0/tcppollthread.cpp?rev=774247&view=auto
==============================================================================
--- incubator/bluesky/trunk/sourcecode/teacher_src_1.0/tcppollthread.cpp (added)
+++ incubator/bluesky/trunk/sourcecode/teacher_src_1.0/tcppollthread.cpp Wed May 13 07:44:26 2009
@@ -0,0 +1,120 @@
+//Licensed to the Apache Software Foundation (ASF) under one
+//or more contributor license agreements.  See the NOTICE file
+//distributed with this work for additional information
+//regarding copyright ownership.  The ASF licenses this file
+//to you under the Apache License, Version 2.0 (the
+//"License"); you may not use this file except in compliance
+//with the License.  You may obtain a copy of the License at
+//
+//  http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing,
+//software distributed under the License is distributed on an
+//"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+//KIND, either express or implied.  See the License for the
+//specific language governing permissions and limitations
+//under the License. 
+
+
+
+
+#include "tcppollthread.h"
+#include "tcpcomm.h"
+
+CTCPPollThread::CTCPPollThread(CTCPComm* pcomm)
+{
+
+	m_pcomm = pcomm;
+	stop = false;
+}
+
+CTCPPollThread::~CTCPPollThread()
+{
+	Stop();
+}
+ 
+int CTCPPollThread::Start()
+{
+	if (JThread::IsRunning())
+		return -1;
+	
+	if (!stopmutex.IsInitialized())
+	{
+		if (stopmutex.Init() < 0)
+			return -1;
+	}
+	stop = false;
+	if (JThread::Start() < 0)
+		return -1;
+	return 0;
+}
+
+void CTCPPollThread::Stop()
+{	
+	if (!IsRunning())
+		return;
+	
+	stopmutex.Lock();
+	stop = true;
+	stopmutex.Unlock();
+	
+	
+	if (JThread::IsRunning())
+	{
+		JThread::Kill();
+	}
+	stop = false;
+}
+
+void *CTCPPollThread::Thread()
+{
+	JThread::ThreadStarted();
+	
+
+	int status;
+	bool stopthread;
+
+	stopmutex.Lock();
+	stopthread = stop;
+	stopmutex.Unlock();
+	while (!stopthread)
+	{
+
+		status = m_pcomm->Poll();
+
+		if(status < 0 ){
+
+			stopthread = 0;
+
+			m_pcomm->OnPollThreadError(status);
+
+		}
+
+		else{
+
+			status = m_pcomm->PolledSocket();
+
+			if(status < 0){
+
+				stopthread = true;
+
+				m_pcomm->OnPollThreadError(status);
+
+			}
+
+			else{
+
+				m_pcomm->OnPollThreadStep();
+
+				stopmutex.Lock();
+
+				stopthread = stop;
+
+				stopmutex.Unlock();
+
+			}
+
+		}
+	}
+	return 0;
+}

Added: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/tcppollthread.h
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/teacher_src_1.0/tcppollthread.h?rev=774247&view=auto
==============================================================================
--- incubator/bluesky/trunk/sourcecode/teacher_src_1.0/tcppollthread.h (added)
+++ incubator/bluesky/trunk/sourcecode/teacher_src_1.0/tcppollthread.h Wed May 13 07:44:26 2009
@@ -0,0 +1,48 @@
+//Licensed to the Apache Software Foundation (ASF) under one
+//or more contributor license agreements.  See the NOTICE file
+//distributed with this work for additional information
+//regarding copyright ownership.  The ASF licenses this file
+//to you under the Apache License, Version 2.0 (the
+//"License"); you may not use this file except in compliance
+//with the License.  You may obtain a copy of the License at
+//
+//  http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing,
+//software distributed under the License is distributed on an
+//"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+//KIND, either express or implied.  See the License for the
+//specific language governing permissions and limitations
+//under the License. 
+
+
+
+#ifndef CTCPPOLLTHREAD_H
+
+#define CTCPPOLLTHREAD_H
+
+
+
+
+#include "jthread.h"
+#include "jmutex.h"
+
+class CTCPComm;
+class CTCPPollThread : private JThread
+{
+	friend class CTCPComm;
+public:
+	CTCPPollThread(CTCPComm* pcomm);
+	~CTCPPollThread();
+	int Start();
+	void Stop();
+private:
+	void *Thread();
+	
+	bool stop;
+	JMutex stopmutex;
+	CTCPComm *m_pcomm;
+};
+
+
+#endif // CTCPPOLLTHREAD_H

Added: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/temp.sh
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/teacher_src_1.0/temp.sh?rev=774247&view=auto
==============================================================================
--- incubator/bluesky/trunk/sourcecode/teacher_src_1.0/temp.sh (added)
+++ incubator/bluesky/trunk/sourcecode/teacher_src_1.0/temp.sh Wed May 13 07:44:26 2009
@@ -0,0 +1,5 @@
+#!/bin/bash
+NC=`./ncteacher -v`
+
+echo $NC
+echo $NC

Added: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/trcclient.hh
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/teacher_src_1.0/trcclient.hh?rev=774247&view=auto
==============================================================================
--- incubator/bluesky/trunk/sourcecode/teacher_src_1.0/trcclient.hh (added)
+++ incubator/bluesky/trunk/sourcecode/teacher_src_1.0/trcclient.hh Wed May 13 07:44:26 2009
@@ -0,0 +1,309 @@
+//Licensed to the Apache Software Foundation (ASF) under one
+//or more contributor license agreements.  See the NOTICE file
+//distributed with this work for additional information
+//regarding copyright ownership.  The ASF licenses this file
+//to you under the Apache License, Version 2.0 (the
+//"License"); you may not use this file except in compliance
+//with the License.  You may obtain a copy of the License at
+//
+//  http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing,
+//software distributed under the License is distributed on an
+//"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+//KIND, either express or implied.  See the License for the
+//specific language governing permissions and limitations
+//under the License. 
+
+
+#ifndef _TRCCLIENT_H
+#define _TRCCLIENT_H
+
+#define limitbit 200
+
+#include<stdio.h>
+#include<string.h>
+
+typedef unsigned long DWORD;
+struct CRCLMSG
+{
+    DWORD rclType;
+    DWORD msglen;
+    char msg[10000];
+};
+
+
+struct CClientInfo 
+{
+	DWORD ClientID;
+	char ClientName[limitbit];
+	DWORD IsFocus;	
+};
+
+
+//ID : 5000
+struct CRCLTeacherLogin 
+{
+	char TeacherName[limitbit];
+	char TeacherPass[16];
+	char TeacherIP[16]; 
+	
+};
+
+
+struct CGroupInfo 
+{
+	DWORD GroupID; 
+	char GroupName[128]; 
+	char TeacherName[limitbit]; 
+};
+
+
+struct CRCLUserClassInfo 
+{
+	char ClassName[128];
+};
+
+
+
+//ID : 5001
+struct CRCLTeacherLoginR 
+{
+	DWORD ResponseType;
+	DWORD TeacherID;
+	DWORD ClassInfoReturn; 
+	DWORD ClassInfoCount;
+	CRCLUserClassInfo ClassInfo[16];
+};
+
+///////////////////////////////////////
+
+//ID : 5030
+struct CRCLTeacherLogout 
+{
+	DWORD TeacherID;
+};
+///////////////////////////////////////////////
+
+//ID : 10000
+struct CRCLCreateGroup 
+{
+	DWORD TeacherID; 
+	char GroupName[128]; 
+	DWORD CAPort; 
+	DWORD CVPort; 
+};
+
+//ID : 10001
+struct CRCLCreateGroupR 
+{
+	DWORD ResponseType;
+	DWORD GroupID; 
+	char MCUIP[16]; 
+	DWORD TAPort; 
+	DWORD TVPort; 
+	DWORD TSPort; 
+};
+
+
+
+struct TRCDestoryGroup
+{
+   int TeacherID;   
+   int GroupID;     
+};
+
+
+struct TRCDestoryGroupR
+{
+	int ResponseType; 
+};
+
+
+
+struct TSState
+{  
+   int  ClientID;    
+   char ClientN[limitbit]; //client name
+   int  AVMode;     
+};
+
+
+
+
+//ID : 10022
+struct CRCLClientJoinInGroupRAll 
+{
+	CClientInfo ClientInfo;
+};
+
+
+
+
+//ID : 10032
+struct CRCLClientLeaveGroupRAll 
+{
+	CClientInfo ClientInfo; 
+};
+
+
+
+//ID : 10042
+struct CRCLMCULeaveGroupRAll 
+{
+	DWORD GroupID; 
+};
+
+//////////////////////////////////////////////////////////////////////////
+//////////////////////////////////////////////////////////////
+
+
+//ID : 1000
+struct CRCLTeacherTextBroadcast 
+{
+	DWORD ClientID;
+	DWORD GroupID;
+	DWORD InfoLength; 
+	char Info[1024];
+};
+
+
+//ID : 1001
+struct CRCLTeacherTextBroadcastR
+{
+	char TeacherName[limitbit]; 
+	DWORD InfoLength; 
+	char Info[1024]; 
+};
+
+
+//ID : 1012
+struct CRCLClientApplyFocusRToTM 
+{
+	DWORD FocusClientID;
+};
+
+
+//ID : 1022
+struct CRCLClientDestroyFocusRToTM
+{
+	DWORD FocusClientID;
+};
+
+
+//ID : 1031
+struct CRCLClientTextBroadcastR
+{
+	char ClientName[limitbit];
+	DWORD InfoLength;
+	char Info[1024];
+};
+
+
+
+//ID : 1050
+struct CRCLTeacherAllowClientFocus
+{
+	DWORD TeacherID;
+	DWORD ClientID;
+	DWORD GroupID;
+};
+
+
+//ID : 1051
+struct CRCLTeacherAllowClientFocusR
+{
+	DWORD ResponseType;
+	DWORD ClientID;
+};
+
+
+//ID : 1060
+struct CRCLTeacherCancelClientFocus
+{
+	DWORD TeacherID;
+	DWORD ClientID;
+	DWORD GroupID;
+};
+
+
+//ID : 1061
+struct CRCLTeacherCancelClientFocusR
+{
+	DWORD ResponseType;
+	DWORD ClientID;
+};
+
+
+
+//ID : 1070
+struct CRCLTeacherGetClientList 
+{
+	DWORD TeacherID;
+	DWORD RoomID;
+};
+
+
+
+//ID : 1071
+struct CRCLTeacherGetClientListR 
+{
+	DWORD ResponseType;
+	DWORD ClientNum;
+	CClientInfo ClientList[1024];
+};
+
+
+//ID:1080
+struct CRCLTeacherSwitchMode
+{
+	DWORD GroupID;
+	DWORD ModeType;  
+};
+struct CRCLTeacherSwitchModeR
+{  
+	DWORD ModeType;
+};
+
+
+//ID:1090
+struct CRCLTeacherIfAllowChat
+{
+	DWORD GroupID;
+	DWORD Check; 
+};
+//ID:1091
+struct CRCLTeacherIfAllowChatR
+{
+   DWORD ResponseType;	
+};
+
+///////////////////////////////////
+ 
+
+struct TPara
+{
+            char LocalIP[50];         
+            char MCUIP[50];             
+            char StudentN[30];        
+            char PassWord[30];        
+            char TeacherN[30];        
+            char CourseN[50];         
+            DWORD TeacherID;      
+            int GroupID;            
+            
+         
+            int TAPort;
+            int TVPort;
+            int TscrPort;
+            int SAPort;
+            int SVPort;
+          
+            char *CenterIP;	   
+            int CenterPort;      
+           
+                        
+};
+
+
+#endif



Mime
View raw message