00001 #include <qpe/qpeapplication.h> 00002 #include "krfbserver.h" 00003 00004 KRFBServer::KRFBServer() 00005 { 00006 QString name; 00007 QString hostname; 00008 QString password; 00009 display=0; 00010 00011 scaleFactor=1; 00012 00013 hexTile=0; 00014 corre=0; 00015 rre=0; 00016 copyrect=1; 00017 00018 colors256=1; 00019 shared=0; 00020 readOnly=0; 00021 deIconify=0; 00022 00023 updateRate=0; 00024 } 00025 KRFBServer::~KRFBServer() 00026 { 00027 } 00028 00029 int KRFBServer::encodings() 00030 { 00031 // Initially one because we always support raw encoding 00032 int count = 1; 00033 00034 count += hexTile ? 1 : 0; 00035 count += corre ? 1 : 0; 00036 count += rre ? 1 : 0; 00037 count += copyrect ? 1 : 0; 00038 00039 return count; 00040 }
1.4.2