summaryrefslogtreecommitdiffstats
path: root/akregator/src/shared.h
diff options
context:
space:
mode:
Diffstat (limited to 'akregator/src/shared.h')
-rw-r--r--akregator/src/shared.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/akregator/src/shared.h b/akregator/src/shared.h
new file mode 100644
index 00000000..e295c562
--- /dev/null
+++ b/akregator/src/shared.h
@@ -0,0 +1,27 @@
+/*
+ * tools_p.h
+ *
+ * Copyright (c) 2001, 2002, 2003 Frerich Raabe <raabe@kde.org>
+ *
+ * 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. For licensing and distribution details, check the
+ * accompanying file 'COPYING'.
+ */
+#ifndef AKREGATOR_SHARED_H
+#define AKREGATOR_SHARED_H
+
+namespace Akregator
+{
+ struct Shared
+ {
+ Shared() : count(1) { }
+ void ref() { count++; }
+ bool deref() { return !--count; }
+ unsigned int count;
+ };
+
+}
+
+#endif // AKREGATOR_SHARED_H
+