summaryrefslogtreecommitdiffstats
path: root/lib/kross/api
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-31 00:15:51 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-31 00:15:51 -0600
commitf7055674768fa7f0267da4a14b9061e60ebab3fc (patch)
tree9cf91b2040d16220234c24c945e950952c359832 /lib/kross/api
parentaf2ab9c9888013e42237f71166eeafe5e988da0f (diff)
downloadkoffice-f7055674768fa7f0267da4a14b9061e60ebab3fc.tar.gz
koffice-f7055674768fa7f0267da4a14b9061e60ebab3fc.zip
Rename KShared
Diffstat (limited to 'lib/kross/api')
-rw-r--r--lib/kross/api/callable.h2
-rw-r--r--lib/kross/api/class.h2
-rw-r--r--lib/kross/api/eventaction.h4
-rw-r--r--lib/kross/api/eventscript.cpp2
-rw-r--r--lib/kross/api/eventscript.h4
-rw-r--r--lib/kross/api/eventsignal.cpp2
-rw-r--r--lib/kross/api/eventsignal.h4
-rw-r--r--lib/kross/api/eventslot.h4
-rw-r--r--lib/kross/api/exception.h2
-rw-r--r--lib/kross/api/list.h2
-rw-r--r--lib/kross/api/module.h2
-rw-r--r--lib/kross/api/object.cpp8
-rw-r--r--lib/kross/api/object.h8
-rw-r--r--lib/kross/api/proxy.h20
-rw-r--r--lib/kross/api/qtobject.h2
-rw-r--r--lib/kross/api/value.h2
16 files changed, 35 insertions, 35 deletions
diff --git a/lib/kross/api/callable.h b/lib/kross/api/callable.h
index 0e3dd3a6..99e3dadf 100644
--- a/lib/kross/api/callable.h
+++ b/lib/kross/api/callable.h
@@ -43,7 +43,7 @@ namespace Kross { namespace Api {
/**
* Shared pointer to implement reference-counting.
*/
- typedef KSharedPtr<Callable> Ptr;
+ typedef TDESharedPtr<Callable> Ptr;
/**
* Constructor.
diff --git a/lib/kross/api/class.h b/lib/kross/api/class.h
index 6224a61a..5fd7e746 100644
--- a/lib/kross/api/class.h
+++ b/lib/kross/api/class.h
@@ -48,7 +48,7 @@ namespace Kross { namespace Api {
/**
* Shared pointer to implement reference-counting.
*/
- typedef KSharedPtr<T> Ptr;
+ typedef TDESharedPtr<T> Ptr;
/**
* Constructor.
diff --git a/lib/kross/api/eventaction.h b/lib/kross/api/eventaction.h
index 659240fa..e20656df 100644
--- a/lib/kross/api/eventaction.h
+++ b/lib/kross/api/eventaction.h
@@ -45,7 +45,7 @@ namespace Kross { namespace Api {
/**
* Shared pointer to implement reference-counting.
*/
- typedef KSharedPtr<EventAction> Ptr;
+ typedef TDESharedPtr<EventAction> Ptr;
/**
* Constructor.
@@ -61,7 +61,7 @@ namespace Kross { namespace Api {
virtual const TQString getClassName() const;
/// \see Kross::Api::Event::call()
- //virtual Object::Ptr call(const TQString& name, KSharedPtr<List> arguments);
+ //virtual Object::Ptr call(const TQString& name, TDESharedPtr<List> arguments);
private:
KAction* m_action;
diff --git a/lib/kross/api/eventscript.cpp b/lib/kross/api/eventscript.cpp
index f9fe9f9a..3b730536 100644
--- a/lib/kross/api/eventscript.cpp
+++ b/lib/kross/api/eventscript.cpp
@@ -38,7 +38,7 @@ const TQString EventScript::getClassName() const
return "Kross::Api::EventScript";
}
-Object::Ptr EventScript::call(const TQString& name, KSharedPtr<List> arguments)
+Object::Ptr EventScript::call(const TQString& name, TDESharedPtr<List> arguments)
{
krossdebug( TQString("EventScript::call() name=%1 arguments=%2").arg(name).arg(arguments->toString()) );
//TODO
diff --git a/lib/kross/api/eventscript.h b/lib/kross/api/eventscript.h
index 0f62ddfc..b255874d 100644
--- a/lib/kross/api/eventscript.h
+++ b/lib/kross/api/eventscript.h
@@ -38,7 +38,7 @@ namespace Kross { namespace Api {
/**
* Shared pointer to implement reference-counting.
*/
- typedef KSharedPtr<EventScript> Ptr;
+ typedef TDESharedPtr<EventScript> Ptr;
/**
* Constructor.
@@ -52,7 +52,7 @@ namespace Kross { namespace Api {
virtual const TQString getClassName() const;
- virtual Object::Ptr call(const TQString& name, KSharedPtr<List> arguments);
+ virtual Object::Ptr call(const TQString& name, TDESharedPtr<List> arguments);
private:
//ScriptContainer* m_scriptcontainer;
diff --git a/lib/kross/api/eventsignal.cpp b/lib/kross/api/eventsignal.cpp
index 2a711a0b..c462f6cd 100644
--- a/lib/kross/api/eventsignal.cpp
+++ b/lib/kross/api/eventsignal.cpp
@@ -43,7 +43,7 @@ const TQString EventSignal::getClassName() const
return "Kross::Api::EventSignal";
}
-Object::Ptr EventSignal::call(const TQString& /*name*/, KSharedPtr<List> arguments)
+Object::Ptr EventSignal::call(const TQString& /*name*/, TDESharedPtr<List> arguments)
{
#ifdef KROSS_API_EVENTSIGNAL_CALL_DEBUG
krossdebug( TQString("EventSignal::call() m_signal=%1 arguments=%2").arg(m_signal).arg(arguments->toString()) );
diff --git a/lib/kross/api/eventsignal.h b/lib/kross/api/eventsignal.h
index 6117014e..ec360b7d 100644
--- a/lib/kross/api/eventsignal.h
+++ b/lib/kross/api/eventsignal.h
@@ -45,7 +45,7 @@ namespace Kross { namespace Api {
/**
* Shared pointer to implement reference-counting.
*/
- typedef KSharedPtr<EventSignal> Ptr;
+ typedef TDESharedPtr<EventSignal> Ptr;
/**
* Constructor.
@@ -59,7 +59,7 @@ namespace Kross { namespace Api {
virtual const TQString getClassName() const;
- virtual Object::Ptr call(const TQString& name, KSharedPtr<List> arguments);
+ virtual Object::Ptr call(const TQString& name, TDESharedPtr<List> arguments);
/*
signals:
diff --git a/lib/kross/api/eventslot.h b/lib/kross/api/eventslot.h
index aaf1ebba..7bc66327 100644
--- a/lib/kross/api/eventslot.h
+++ b/lib/kross/api/eventslot.h
@@ -40,7 +40,7 @@ namespace Kross { namespace Api {
/**
* Shared pointer to implement reference-counting.
*/
- typedef KSharedPtr<EventSlot> Ptr;
+ typedef TDESharedPtr<EventSlot> Ptr;
/**
* Constructor.
@@ -63,7 +63,7 @@ namespace Kross { namespace Api {
virtual const TQString getClassName() const;
/// \see Kross::Api::Event::call()
- virtual Object::Ptr call(const TQString& name, KSharedPtr<List> arguments);
+ virtual Object::Ptr call(const TQString& name, TDESharedPtr<List> arguments);
/*
private:
diff --git a/lib/kross/api/exception.h b/lib/kross/api/exception.h
index b0699bfb..f58496d7 100644
--- a/lib/kross/api/exception.h
+++ b/lib/kross/api/exception.h
@@ -42,7 +42,7 @@ namespace Kross { namespace Api {
/**
* Shared pointer to implement reference-counting.
*/
- typedef KSharedPtr<Exception> Ptr;
+ typedef TDESharedPtr<Exception> Ptr;
/**
* Constructor.
diff --git a/lib/kross/api/list.h b/lib/kross/api/list.h
index 2620c688..77ea7ea1 100644
--- a/lib/kross/api/list.h
+++ b/lib/kross/api/list.h
@@ -41,7 +41,7 @@ namespace Kross { namespace Api {
/**
* Shared pointer to implement reference-counting.
*/
- typedef KSharedPtr<List> Ptr;
+ typedef TDESharedPtr<List> Ptr;
/*
operator TQStringList () {
diff --git a/lib/kross/api/module.h b/lib/kross/api/module.h
index f27bdf5c..25d35274 100644
--- a/lib/kross/api/module.h
+++ b/lib/kross/api/module.h
@@ -38,7 +38,7 @@ namespace Kross { namespace Api {
/**
* Shared pointer to implement reference-counting.
*/
- typedef KSharedPtr<Module> Ptr;
+ typedef TDESharedPtr<Module> Ptr;
/**
* Constructor.
diff --git a/lib/kross/api/object.cpp b/lib/kross/api/object.cpp
index 43fa8b4b..a9599f6d 100644
--- a/lib/kross/api/object.cpp
+++ b/lib/kross/api/object.cpp
@@ -27,19 +27,19 @@
using namespace Kross::Api;
Object::Object()
- : KShared()
+ : TDEShared()
{
#ifdef KROSS_API_OBJECT_CTOR_DEBUG
- krossdebug( TQString("Kross::Api::Object::Constructor() name='%1' refcount='%2'").arg(m_name).arg(_KShared_count()) );
+ krossdebug( TQString("Kross::Api::Object::Constructor() name='%1' refcount='%2'").arg(m_name).arg(_TDEShared_count()) );
#endif
}
Object::~Object()
{
#ifdef KROSS_API_OBJECT_DTOR_DEBUG
- krossdebug( TQString("Kross::Api::Object::Destructor() name='%1' refcount='%2'").arg(m_name).arg(_KShared_count()) );
+ krossdebug( TQString("Kross::Api::Object::Destructor() name='%1' refcount='%2'").arg(m_name).arg(_TDEShared_count()) );
#endif
- //removeAllChildren(); // not needed cause we use KShared to handle ref-couting and freeing.
+ //removeAllChildren(); // not needed cause we use TDEShared to handle ref-couting and freeing.
}
const TQString Object::toString()
diff --git a/lib/kross/api/object.h b/lib/kross/api/object.h
index f23a6179..8a9f32af 100644
--- a/lib/kross/api/object.h
+++ b/lib/kross/api/object.h
@@ -47,14 +47,14 @@ namespace Kross { namespace Api {
* This class implementates reference counting for shared
* objects. So, no need to take care of freeing objects.
*/
- class Object : public KShared
+ class Object : public TDEShared
{
public:
/**
* Shared pointer to implement reference-counting.
*/
- typedef KSharedPtr<Object> Ptr;
+ typedef TDESharedPtr<Object> Ptr;
/**
* Constructor.
@@ -99,7 +99,7 @@ namespace Kross { namespace Api {
* \return The call-result as \a Object::Ptr instance or
* NULL if the call has no result.
*/
- virtual Object::Ptr call(const TQString& name, KSharedPtr<List> arguments);
+ virtual Object::Ptr call(const TQString& name, TDESharedPtr<List> arguments);
/**
* Return a list of supported callable objects.
@@ -142,7 +142,7 @@ template<class T> inline T* Object::fromObject(Object::Ptr object)
{
T* t = (T*) object.data();
if(! t)
- throw KSharedPtr<Exception>( new Exception(TQString("Object \"%1\" invalid.").arg(object ? object->getClassName() : "")) );
+ throw TDESharedPtr<Exception>( new Exception(TQString("Object \"%1\" invalid.").arg(object ? object->getClassName() : "")) );
return t;
}
diff --git a/lib/kross/api/proxy.h b/lib/kross/api/proxy.h
index a7d37380..1e0f3850 100644
--- a/lib/kross/api/proxy.h
+++ b/lib/kross/api/proxy.h
@@ -111,13 +111,13 @@ namespace Kross { namespace Api {
const METHOD m_method;
/// First default argument.
- KSharedPtr<ARG1OBJ> m_defarg1;
+ TDESharedPtr<ARG1OBJ> m_defarg1;
/// Second default argument.
- KSharedPtr<ARG2OBJ> m_defarg2;
+ TDESharedPtr<ARG2OBJ> m_defarg2;
/// Theird default argument.
- KSharedPtr<ARG3OBJ> m_defarg3;
+ TDESharedPtr<ARG3OBJ> m_defarg3;
/// Forth default argument.
- KSharedPtr<ARG4OBJ> m_defarg4;
+ TDESharedPtr<ARG4OBJ> m_defarg4;
/**
* \internal used struct that does the execution of the wrapped
@@ -187,9 +187,9 @@ namespace Kross { namespace Api {
private:
INSTANCE* m_instance;
const METHOD m_method;
- KSharedPtr<ARG1OBJ> m_defarg1;
- KSharedPtr<ARG2OBJ> m_defarg2;
- KSharedPtr<ARG3OBJ> m_defarg3;
+ TDESharedPtr<ARG1OBJ> m_defarg1;
+ TDESharedPtr<ARG2OBJ> m_defarg2;
+ TDESharedPtr<ARG3OBJ> m_defarg3;
template<class PROXYFUNC, typename RETURNTYPE>
struct ProxyFunctionCaller {
@@ -229,8 +229,8 @@ namespace Kross { namespace Api {
private:
INSTANCE* m_instance;
const METHOD m_method;
- KSharedPtr<ARG1OBJ> m_defarg1;
- KSharedPtr<ARG2OBJ> m_defarg2;
+ TDESharedPtr<ARG1OBJ> m_defarg1;
+ TDESharedPtr<ARG2OBJ> m_defarg2;
template<class PROXYFUNC, typename RETURNTYPE>
struct ProxyFunctionCaller {
@@ -270,7 +270,7 @@ namespace Kross { namespace Api {
private:
INSTANCE* m_instance;
const METHOD m_method;
- KSharedPtr<ARG1OBJ> m_defarg1;
+ TDESharedPtr<ARG1OBJ> m_defarg1;
template<class PROXYFUNC, typename RETURNTYPE>
struct ProxyFunctionCaller {
diff --git a/lib/kross/api/qtobject.h b/lib/kross/api/qtobject.h
index 119a579e..22829f02 100644
--- a/lib/kross/api/qtobject.h
+++ b/lib/kross/api/qtobject.h
@@ -49,7 +49,7 @@ namespace Kross { namespace Api {
/**
* Shared pointer to implement reference-counting.
*/
- typedef KSharedPtr<QtObject> Ptr;
+ typedef TDESharedPtr<QtObject> Ptr;
/**
* Constructor.
diff --git a/lib/kross/api/value.h b/lib/kross/api/value.h
index db3854be..94a9aa0d 100644
--- a/lib/kross/api/value.h
+++ b/lib/kross/api/value.h
@@ -72,7 +72,7 @@ namespace Kross { namespace Api {
/**
* Set the value.
* The value is call-by-value cause it may
- * contain some KShared and therefore
+ * contain some TDEShared and therefore
* we need to keep a local copy to keep
* it from disappearing.
*