Review Request: Activity ResourceInstance class for API review

Aaron J. Seigo aseigo at kde.org
Mon May 2 15:20:08 CEST 2011


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/101273/#review3052
-----------------------------------------------------------



experimental/libkactivities/ResourceInstance.h
<http://git.reviewboard.kde.org/r/101273/#comment2605>

    imho, to follow our usual API style recommendations, the ctor should just be:
    
    ResourceInstance(QObject *parent = 0);
    
    setters and getters for QWidget (or better, perhaps: WId), URL and mimetype would then be provided.



experimental/libkactivities/ResourceInstance.h
<http://git.reviewboard.kde.org/r/101273/#comment2606>

    sounds like a signal rather than a method. 
    
    also, is this about the URI changing or the content that the URI represents changes?
    



experimental/libkactivities/ResourceInstance.h
<http://git.reviewboard.kde.org/r/101273/#comment2608>

    setUri? or even setUrl since it is a KUrl? also, should this take a QUrl to allow non-KUrl urls?
    
    also, this should be "const KUrl" in the signature, as there is no KUri class :)



experimental/libkactivities/ResourceInstance.h
<http://git.reviewboard.kde.org/r/101273/#comment2609>

    agreed about it being a property with void setUrl(const KUrl&) and KUrl url() const for setting and getting.


- Aaron J.


On May 2, 2011, 1:07 p.m., Ivan Čukić wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/101273/
> -----------------------------------------------------------
> 
> (Updated May 2, 2011, 1:07 p.m.)
> 
> 
> Review request for Nepomuk and Plasma.
> 
> 
> Summary
> -------
> 
> Desc of the class is in the class apidocs
> 
> 
> Diffs
> -----
> 
>   experimental/libkactivities/ResourceInstance.h PRE-CREATION 
> 
> Diff: http://git.reviewboard.kde.org/r/101273/diff
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Ivan
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/plasma-devel/attachments/20110502/ffe2cf15/attachment.htm 


More information about the Plasma-devel mailing list