Hydra 0.20
|
00001 00002 /* 00003 * Copyright (c) 2005 Aleksander B. Demko 00004 * This source code is distributed under the MIT license. 00005 * See the accompanying file LICENSE.MIT.txt for details. 00006 */ 00007 00008 #ifndef __INCLUDED_HYDRA_HASH_H__ 00009 #define __INCLUDED_HYDRA_HASH_H__ 00010 00011 #include <QString> 00012 00013 namespace hydra 00014 { 00015 /** 00016 * Calculates the has of the given file. 00017 * 00018 * @return The hash of the file (in ascii form) or an empty string on error. 00019 * @author Aleksander Demko 00020 */ 00021 QString calcFileHash(const QString &filename); 00022 } 00023 00024 #endif 00025