summaryrefslogtreecommitdiffstats
path: root/src/Daemon/RPM.h
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-08-26 12:33:26 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-08-26 12:33:26 +0200
commit7bf3bf2eb83ce317283ccf8ab3e7a784238a8aeb (patch)
treedc52cea5ea98e5c9281a228f30982a723eef2f0e /src/Daemon/RPM.h
parente68f779b9e8719978b164968fdfdc7c54a0c15b3 (diff)
downloadabrt-7bf3bf2eb83ce317283ccf8ab3e7a784238a8aeb.tar.gz
abrt-7bf3bf2eb83ce317283ccf8ab3e7a784238a8aeb.tar.xz
abrt-7bf3bf2eb83ce317283ccf8ab3e7a784238a8aeb.zip
class CRPM: make a few functions nono-members
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src/Daemon/RPM.h')
-rw-r--r--src/Daemon/RPM.h70
1 files changed, 34 insertions, 36 deletions
diff --git a/src/Daemon/RPM.h b/src/Daemon/RPM.h
index 4fe1eab..1be0eb1 100644
--- a/src/Daemon/RPM.h
+++ b/src/Daemon/RPM.h
@@ -1,5 +1,5 @@
/*
- RPMInfo.h - header file for rpm database
+ RPM.h - header file for rpm database
- it implements query for local rpm database
Copyright (C) 2009 Zdenek Prikryl (zprikryl@redhat.com)
@@ -20,8 +20,8 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef RPMINFO_H_
-#define RPMINFO_H_
+#ifndef RPM_H_
+#define RPM_H_
#include "MiddleWareTypes.h"
@@ -36,9 +36,6 @@
class CRPM
{
private:
-
- typedef set_strings_t set_fingerprints_t;
-
/**
* A context for librpm library.
*/
@@ -46,7 +43,7 @@ class CRPM
/**
* A set, which contains finger prints.
*/
- set_fingerprints_t m_setFingerprints;
+ set_strings_t m_setFingerprints;
public:
/**
@@ -67,34 +64,35 @@ class CRPM
* @param pPackage A package name.
*/
bool CheckFingerprint(const std::string& pPackage);
- /**
- * A method, which checks if an application is modified by thir party.
- * @param pPackage A package name. The package contains the application.
- * @param pPath A path to the application.
- */
- bool CheckHash(const std::string& pPackage, const std::string& pPath);
- /**
- * A method, which gets a package description.
- * @param pPackage A package name.
- * @return A package description.
- */
- std::string GetDescription(const std::string& pPackage);
- /**
- * A method, which gets a package name. This package contains particular
- * file. If the file doesn't belong to any package, empty string is
- * returned.
- * @param pFileName A file name.
- * @return A package name.
- */
- std::string GetPackage(const std::string& pFileName);
- /**
- * A method to find a main package for given file. This package contains particular
- * file. If the file doesn't belong to any package, empty string is
- * returned.
- * @param pFileName A file name.
- * @return A package name.
- */
- std::string GetComponent(const std::string& pFileName);
};
-#endif /* RPMINFO_H_ */
+/**
+ * Checks if an application is modified by third party.
+ * @param pPackage A package name. The package contains the application.
+ * @param pPath A path to the application.
+ */
+bool CheckHash(const std::string& pPackage, const std::string& pPath);
+/**
+ * Gets a package description.
+ * @param pPackage A package name.
+ * @return A package description.
+ */
+std::string GetDescription(const std::string& pPackage);
+/**
+ * Gets a package name. This package contains particular
+ * file. If the file doesn't belong to any package, empty string is
+ * returned.
+ * @param pFileName A file name.
+ * @return A package name.
+ */
+std::string GetPackage(const std::string& pFileName);
+/**
+ * Finds a main package for given file. This package contains particular
+ * file. If the file doesn't belong to any package, empty string is
+ * returned.
+ * @param pFileName A file name.
+ * @return A package name.
+ */
+std::string GetComponent(const std::string& pFileName);
+
+#endif