<div class="gmail_quote">On Thu, Oct 22, 2009 at 12:15 AM, Ruan Strydom <span dir="ltr"><<a href="mailto:ruan@jcell.co.za">ruan@jcell.co.za</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Damn, I hope it all works. J<br>
I did try to break it, but I am not certain that it is 100% fool proof. Plus I<br>
don't think I am objective enough as this is my own code.<br>
<br>
Suggestions please...<br>
<br>
ps: You can set permissions on directories in svn, or would this be an admin<br>
nightmare?<br>
<br>
Ruan<br>
<br>
##SAMPLE###<br>
<br>
class Test {<br>
<br>
public:<br>
class Inline {<br>
<br>
private:<br>
Inline * self;<br>
public:<br>
<br>
virtual const Test::Inline* getSelf() const = 0;<br>
};<br>
<br>
typedef const int & Cir;<br>
enum Abc {A, B, C};<br>
<br>
Cir m_test1;<br>
int &_test2;<br>
int t[B];<br>
<br>
<br>
/** Reader for m_test1.<br>
* @see m_test1<br>
* @return m_test1<br>
*/<br>
inline Test::Cir test1() const {<br>
return m_test1;<br>
}<br>
<br>
/** Reader for _test2.<br>
* @see _test2<br>
* @return _test2<br>
*/<br>
inline const int& test2() const {<br>
return _test2;<br>
}<br>
<br>
/** Writer for _test2.<br>
* @see _test2<br>
* @param t Value for _test2.<br>
*/<br>
inline void setTest2( int& t ) {<br>
_test2 = t;<br>
}<br>
<br>
/** Reader for t.<br>
* @see t<br>
* @return t<br>
*/<br>
inline const int* getT() const {<br>
return t;<br>
}<br>
<br>
/** Writer for t.<br>
* @see t<br>
* @param _t Value for t.<br>
*/<br>
inline void setT( const int _t[1] ) { /*TODO*/<br>
for (int i; i<1; i++) t[i] = _t[i];<br>
}<br>
};<br>
<br>--<br>
KDevelop-devel mailing list<br>
<a href="mailto:KDevelop-devel@kdevelop.org">KDevelop-devel@kdevelop.org</a><br>
<a href="https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel" target="_blank">https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel</a><br>
<br></blockquote></div><br>Have you thought of defining the Q_PROPERTY in QObjects? That would be nice.<br><br>Looks nice, btw :)<br><br>Aleix<br>