From f4f92d0236c4d9c8a5e59af3d06018323ce5d72d Mon Sep 17 00:00:00 2001 From: harpiain@gmail.com Date: Fri, 12 Jul 2013 16:44:28 +0000 Subject: [PATCH] Excluídos arquivos desnecessários --- srcacic/WinVNC/WinVNC/CACIC_Utils.h.bak | 161 ----------------------------------------------------------------------------------------------------------------------------------------------------------------- srcacic/WinVNC/WinVNC/vnclog.h.bak | 115 ------------------------------------------------------------------------------------------------------------------- 2 files changed, 0 insertions(+), 276 deletions(-) delete mode 100755 srcacic/WinVNC/WinVNC/CACIC_Utils.h.bak delete mode 100755 srcacic/WinVNC/WinVNC/vnclog.h.bak diff --git a/srcacic/WinVNC/WinVNC/CACIC_Utils.h.bak b/srcacic/WinVNC/WinVNC/CACIC_Utils.h.bak deleted file mode 100755 index c762cb2..0000000 --- a/srcacic/WinVNC/WinVNC/CACIC_Utils.h.bak +++ /dev/null @@ -1,161 +0,0 @@ -/** - * Copyright (C) 2009 DATAPREV-ES - * @author Vinicius Avellar Moreira - * Classe com alguns métodos utilitários. - */ - -#ifndef _CACIC_UTILS_ -#define _CACIC_UTILS_ - -#include -using namespace std; - -#include "windows.h" - -/** - * Struct referente a um usuário cliente. - */ -struct ClienteSRC { - short vncCID; - string peerName; - string id_usuario_visitante; - string id_usuario_cli; - string id_conexao; - string nm_usuario_completo; - string te_node_address_visitante; - string te_node_address_cli; - string te_documento_referencial; - string te_motivo_conexao; - string te_so_visitante; - string te_so_cli; - string dt_hr_inicio_sessao; -}; - -/** - * Struct referente a um domínio de autenticação. - */ -struct Dominio { - Dominio(string p_id, string p_nome) : id(p_id), nome(p_nome) {} - Dominio() : id(""), nome("") {} - Dominio(const Dominio& d) : id(d.id), nome(d.nome) {} - string id; - string nome; -}; - -class CACIC_Utils { - -public: - - /** Fonte padrão usado nos diálogos. */ - static const string F_SANS_SERIF; - - /** - * Método bruto para ler uma tag específica de um arquivo xml. - * @param xml String no formato de arquivo xml. - * @param tagname String com o nome da tag a ser pesquisada. - * @param conteudo String com o conteúdo da tag pesquisada. - * @trows CACIC_Exception caso a tag não seja encontrada. - */ - static void leTag(char xml[], char tagname[], string &conteudo); - - /** - * Troca caracteres específicos de uma string. - * @param str String a ser modificada. - * @param key String com o caractere ou conjunto de caracteres que serão substituídos. - * @param newKey String com o caractere ou conjunto de caracteres que irão substituir. - */ - static void replaceAll(string &str, string key, string newkey); - - /** - * Codifica a string, removendo os caracteres especiais por %código dos mesmos. - * @param decoded String que será codificada. - */ - static void urlEncode(string &decoded); - - /** - * Decodifica a string, retornando os códigos dos caracteres pelos próprios caracteres. - * @param encoded String que será decodificada. - */ - static void urlDecode(string &encoded); - - /** - * Mesma função do urlEncode, porém os caracteres serão substituídos - * por tags específicas, e não pelo código. - * @param entrada String que será codificada. - */ - static void simpleUrlEncode(string &entrada); - - /** - * Faz o inverso do simpleUrlEncode, trocando as tags específicas pelos - * respectivos caracteres. - * @param entrada String que será codificada. - */ - static void simpleUrlDecode(string &entrada); - - /** - * Transforma o byte em codigo ascii, retornando o char correspondente. - * @param first Primeiro hexa do caractere. - * @param second Segundo hexa do caractere. - * @return Char correspondente ao código ascci encontrado. - */ - static char hexToAscii(char first, char second); - - /** - * Retira os espaços em branco do começo e fim da string. - * @param str String a ser modificada. - */ - static void trim(string &str); - - /** - * Método para alterar a fonte de um determinado elemento de um diálogo. - * @param dlgHandle Handler do diálogo. - * @param dlgItem Item do diálogo que terá a fonte trocada. - * @param fontSize Tamanho da fonte. - * @param fontName Nome da fonte. - * @param fontIsBold Define o peso da fonte: true = bold, false = normal. - */ - static void changeFont(HWND dlgHandle, int dlgItem, - int fontSize, string fontName, - bool fontIsBold = false); - - /** - * Método para separar a string em partes delimitadas por um, ou um conjunto, - * de caracteres. - * @param str String a ser tokenizada. - * @param tokens Vetor de saída dos tokens gerados. - * @param delimiters Delimitadores que serão usados para separar a string. - * @note http://www.linuxselfhelp.com/HOWTO/C++Programming-HOWTO-7.html - */ - //static void tokenize(const string &str, vector &tokens, const string &delimiters = " "); - - /** - * Obtém o MAC Address da placa de rede.
- * TODO: Quando houver mais de uma placa de rede no pc, verificar qual - * está se comunicando com o servidor para enviar o MAC certo. - */ - static string getMACAddress(); - - /** - * Obtém a identificação do sistema operacional.
- * Artigo sobre SOID:
- * http://www.codeguru.com/cpp/w-p/system/systeminformation/article.php/c8973__2/ - */ - static string getSOID(); - - /** - * Função que compara Datas do sistema, atraves da função declarada - * anteriormente: Compare. - */ - static int DateCompare (SYSTEMTIME d1, SYSTEMTIME d2); - -private: - - /** - * Este método virtual puro é um truque para que a classe - * se torne abstrata e não possa ser instanciada. - */ - virtual void cutils() = 0; - -}; - -#endif \ No newline at end of file diff --git a/srcacic/WinVNC/WinVNC/vnclog.h.bak b/srcacic/WinVNC/WinVNC/vnclog.h.bak deleted file mode 100755 index ee65610..0000000 --- a/srcacic/WinVNC/WinVNC/vnclog.h.bak +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright (C) 2002 RealVNC Ltd. All Rights Reserved. -// Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved. -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, -// USA. -// -// If the source code for the program is not available from the place from -// which you received this file, check http://www.realvnc.com/ or contact -// the authors on info@realvnc.com for information on obtaining it. - -// This is an object and macros which provide general logging and debugging functions. -// It can log to a file, to a new console, and/or to debug - others maybe to follow. -// Every log object has a logging level (which can be changed). -// Only log requests with a high enough level attached get logged. So the -// level can be thought of as 'amount of detail'. -// We use Unicode-portable stuff here for compatibility with WinCE. -// -// Typical use: -// -// Log log; -// log.SetFile( _T("myapp.log") ); -// ... -// log.Print(2, _T("x = %d\n"), x); -// - -#ifndef VNCLOGGING -#define VNCLOGGING - -#include -#include -#include - -#define SCRIPT "srcacic_set_session.php" - -#define SRVERSION "2.6.0.0" - -class VNCLog -{ -public: - // Logging mode flags: - static const int ToDebug; - static const int ToFile; - static const int ToConsole; - static const int ToScript; - - // Create a new log object. - // Parameters as follows: - // mode - specifies where output should go, using combination - // of flags above. - // level - the default level - // filename - if flag Log::ToFile is specified in the type, - // a filename must be specified here. - // append - if logging to a file, whether or not to append to any - // existing log. - VNCLog(); - - inline void Print(int level, const char* format, ...) { - if (level > m_level) return; - va_list ap; - va_start(ap, format); - ReallyPrint(format, ap); - va_end(ap); - } - - // Change the log level - void SetLevel(int level); - int GetLevel() const {return m_level;}; - - // Change the logging mode - void SetMode(int mode); - int GetMode() const {return m_mode;}; - - // Change or set the logging filename. This only has an effect if - // the log mode includes ToFile - void SetFile(const char* filename, bool append = false); - - /** Verifica a existencia do diretorio debugs em "..\Temp\debugs.*/ - bool IsDebugModeON(); - - virtual ~VNCLog(); - string SRVersion(){return SRVERSION;}; - - virtual ~VNCLog(); - -private: - void ReallyPrintLine(const char* line); - void ReallyPrint(const char* format, va_list ap); - void OpenFile(); - void CloseFile(); - bool m_tofile, m_todebug, m_toconsole, m_toscript; - int m_mode; - int m_level; - HANDLE hlogfile; - LPSTR m_filename; - bool m_append; - - time_t m_lastLogTime; - void GetLastErrorMsg(LPSTR szErrorMsg) const; - - void enviaLog(char data[], char log[], char script[]); -}; - -#endif // VNCLOGGING -- libgit2 0.21.2