<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Lancelot 1.0 Feature Freeze</title>
	<atom:link href="http://ivan.fomentgroup.org/blog/2008/08/21/lancelot-10-feature-freeze/feed/" rel="self" type="application/rss+xml" />
	<link>http://ivan.fomentgroup.org/blog/2008/08/21/lancelot-10-feature-freeze/</link>
	<description>Free Software Developer and Enthusiast</description>
	<lastBuildDate>Fri, 03 Feb 2012 21:32:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Ivan Čukić</title>
		<link>http://ivan.fomentgroup.org/blog/2008/08/21/lancelot-10-feature-freeze/comment-page-1/#comment-6991</link>
		<dc:creator>Ivan Čukić</dc:creator>
		<pubDate>Tue, 26 Aug 2008 12:00:24 +0000</pubDate>
		<guid isPermaLink="false">http://ivan.fomentgroup.org/blog/?p=156#comment-6991</guid>
		<description>&lt;b&gt;@vincent&lt;/b&gt;
Ok, I posted it on the packaging request for Mandriva. (the package, as they said there, is available in some repository... I&#039;m not familiar with Mandriva&#039;s terms though ;) )</description>
		<content:encoded><![CDATA[<p><b>@vincent</b><br />
Ok, I posted it on the packaging request for Mandriva. (the package, as they said there, is available in some repository&#8230; I&#8217;m not familiar with Mandriva&#8217;s terms though <img src='http://ivan.fomentgroup.org/blog/wp-content/plugins/smilies-themer/kopete/wink.png' alt=';)' class='wp-smiley' /> )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vincent</title>
		<link>http://ivan.fomentgroup.org/blog/2008/08/21/lancelot-10-feature-freeze/comment-page-1/#comment-6990</link>
		<dc:creator>vincent</dc:creator>
		<pubDate>Tue, 26 Aug 2008 11:55:20 +0000</pubDate>
		<guid isPermaLink="false">http://ivan.fomentgroup.org/blog/?p=156#comment-6990</guid>
		<description>Lancelot will not be included in Mandriva 2008.1 but in Mandriva 2009. I don&#039;t know what deposit will be used but you can make a comment on the Mandriva&#039;s forum.

http://forum.mandriva.com/index.php?sid=8988e930b94a3b9993f4fb2d392a901f?&amp;op=En</description>
		<content:encoded><![CDATA[<p>Lancelot will not be included in Mandriva 2008.1 but in Mandriva 2009. I don&#8217;t know what deposit will be used but you can make a comment on the Mandriva&#8217;s forum.</p>
<p><a href="http://forum.mandriva.com/index.php?sid=8988e930b94a3b9993f4fb2d392a901f?&#038;op=En" rel="nofollow">http://forum.mandriva.com/index.php?sid=8988e930b94a3b9993f4fb2d392a901f?&#038;op=En</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivan Čukić</title>
		<link>http://ivan.fomentgroup.org/blog/2008/08/21/lancelot-10-feature-freeze/comment-page-1/#comment-6969</link>
		<dc:creator>Ivan Čukić</dc:creator>
		<pubDate>Mon, 25 Aug 2008 17:58:31 +0000</pubDate>
		<guid isPermaLink="false">http://ivan.fomentgroup.org/blog/?p=156#comment-6969</guid>
		<description>&lt;b&gt;@romain&lt;/b&gt;
Send it :) I will not add it to 1.0 though (I promised a feature freeze, right? :) ), possibly in 1.1...</description>
		<content:encoded><![CDATA[<p><b>@romain</b><br />
Send it <img src='http://ivan.fomentgroup.org/blog/wp-content/plugins/smilies-themer/kopete/smile.png' alt=':)' class='wp-smiley' /> I will not add it to 1.0 though (I promised a feature freeze, right? <img src='http://ivan.fomentgroup.org/blog/wp-content/plugins/smilies-themer/kopete/smile.png' alt=':)' class='wp-smiley' /> ), possibly in 1.1&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: romain</title>
		<link>http://ivan.fomentgroup.org/blog/2008/08/21/lancelot-10-feature-freeze/comment-page-1/#comment-6968</link>
		<dc:creator>romain</dc:creator>
		<pubDate>Mon, 25 Aug 2008 17:53:31 +0000</pubDate>
		<guid isPermaLink="false">http://ivan.fomentgroup.org/blog/?p=156#comment-6968</guid>
		<description>Hi,

I&#039;ve modified the Device.cpp file to allow to mount removable device without opening the file manager at the same time.
Does it interest you or I keep it for myself ?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;ve modified the Device.cpp file to allow to mount removable device without opening the file manager at the same time.<br />
Does it interest you or I keep it for myself ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivan Čukić</title>
		<link>http://ivan.fomentgroup.org/blog/2008/08/21/lancelot-10-feature-freeze/comment-page-1/#comment-6961</link>
		<dc:creator>Ivan Čukić</dc:creator>
		<pubDate>Mon, 25 Aug 2008 10:23:53 +0000</pubDate>
		<guid isPermaLink="false">http://ivan.fomentgroup.org/blog/?p=156#comment-6961</guid>
		<description>&lt;b&gt;@Vincent&lt;/b&gt;
Great news :)</description>
		<content:encoded><![CDATA[<p><b>@Vincent</b><br />
Great news <img src='http://ivan.fomentgroup.org/blog/wp-content/plugins/smilies-themer/kopete/smile.png' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vincent</title>
		<link>http://ivan.fomentgroup.org/blog/2008/08/21/lancelot-10-feature-freeze/comment-page-1/#comment-6960</link>
		<dc:creator>vincent</dc:creator>
		<pubDate>Mon, 25 Aug 2008 10:17:10 +0000</pubDate>
		<guid isPermaLink="false">http://ivan.fomentgroup.org/blog/?p=156#comment-6960</guid>
		<description>Lancelot will be included in Mandriva 2008.1 !</description>
		<content:encoded><![CDATA[<p>Lancelot will be included in Mandriva 2008.1 !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivan Čukić</title>
		<link>http://ivan.fomentgroup.org/blog/2008/08/21/lancelot-10-feature-freeze/comment-page-1/#comment-6944</link>
		<dc:creator>Ivan Čukić</dc:creator>
		<pubDate>Sun, 24 Aug 2008 20:35:03 +0000</pubDate>
		<guid isPermaLink="false">http://ivan.fomentgroup.org/blog/?p=156#comment-6944</guid>
		<description>&lt;b&gt;@romain&lt;/b&gt;
Cool :)</description>
		<content:encoded><![CDATA[<p><b>@romain</b><br />
Cool <img src='http://ivan.fomentgroup.org/blog/wp-content/plugins/smilies-themer/kopete/smile.png' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: romain</title>
		<link>http://ivan.fomentgroup.org/blog/2008/08/21/lancelot-10-feature-freeze/comment-page-1/#comment-6939</link>
		<dc:creator>romain</dc:creator>
		<pubDate>Sun, 24 Aug 2008 19:03:28 +0000</pubDate>
		<guid isPermaLink="false">http://ivan.fomentgroup.org/blog/?p=156#comment-6939</guid>
		<description>Hi, 
sorry for answering this late, I&#039;ve just tried and it works. Just removed kickoff and the device notifier applet :) .
If I find bugs, will  
try to fix them. 
Thanks for your hard work.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
sorry for answering this late, I&#8217;ve just tried and it works. Just removed kickoff and the device notifier applet <img src='http://ivan.fomentgroup.org/blog/wp-content/plugins/smilies-themer/kopete/smile.png' alt=':)' class='wp-smiley' /> .<br />
If I find bugs, will<br />
try to fix them.<br />
Thanks for your hard work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivan Čukić</title>
		<link>http://ivan.fomentgroup.org/blog/2008/08/21/lancelot-10-feature-freeze/comment-page-1/#comment-6912</link>
		<dc:creator>Ivan Čukić</dc:creator>
		<pubDate>Sat, 23 Aug 2008 15:35:11 +0000</pubDate>
		<guid isPermaLink="false">http://ivan.fomentgroup.org/blog/?p=156#comment-6912</guid>
		<description>&lt;b&gt;@romain&lt;/b&gt;
Or even today :) check the latest version from SVN.

If you (or anyone else for that matter) want to contribute to Lancelot, you are welcome :) (obviously, on the trunk version from now on)

In order to see the magnitude of this change, this is what was changed to add the context menu with unmount/eject option:

&lt;pre style=&quot;font-size: 8px;&quot;&gt;
models/Devices.h
L_Override virtual bool hasContextActions(int index) const;
L_Override virtual void setContextActions(int index, QMenu * menu);
L_Override virtual void contextActivate(int index, QAction * context);

models/Devices.cpp
bool Devices::hasContextActions(int index) const
{
    Q_UNUSED(index);
    return true;
}

void Devices::setContextActions(int index, QMenu * menu)
{
    if (index &gt; m_items.size() - 1) return;

    QString udi = m_items.at(index).data.toString();
    Solid::Device device(udi);

    if (device.is&lt;Solid::OpticalDisc&gt;()) {
        menu-&gt;addAction(KIcon(&quot;media-eject&quot;), i18n(&quot;Eject&quot;))
            -&gt;setData(QVariant(0));
    } else {
        menu-&gt;addAction(KIcon(&quot;media-eject&quot;), i18n(&quot;Unmount&quot;))
            -&gt;setData(QVariant(0));
    }
}

void Devices::contextActivate(int index, QAction * context)
{
    if (!context) {
        return;
    }

    QString udi = m_items.at(index).data.toString();
    Solid::Device device(udi);

    if (device.is&lt;Solid::OpticalDisc&gt;()) {
        Solid::OpticalDrive *drive = device.parent().as&lt;Solid::OpticalDrive&gt;();
        drive-&gt;eject();
    } else {
        Solid::StorageAccess *access = device.as&lt;Solid::StorageAccess&gt;();

        if (access-&gt;isAccessible()) {
            access-&gt;teardown();
        }
    }
}

&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p><b>@romain</b><br />
Or even today <img src='http://ivan.fomentgroup.org/blog/wp-content/plugins/smilies-themer/kopete/smile.png' alt=':)' class='wp-smiley' /> check the latest version from SVN.</p>
<p>If you (or anyone else for that matter) want to contribute to Lancelot, you are welcome <img src='http://ivan.fomentgroup.org/blog/wp-content/plugins/smilies-themer/kopete/smile.png' alt=':)' class='wp-smiley' /> (obviously, on the trunk version from now on)</p>
<p>In order to see the magnitude of this change, this is what was changed to add the context menu with unmount/eject option:</p>
<pre style="font-size: 8px;">
models/Devices.h
L_Override virtual bool hasContextActions(int index) const;
L_Override virtual void setContextActions(int index, QMenu * menu);
L_Override virtual void contextActivate(int index, QAction * context);

models/Devices.cpp
bool Devices::hasContextActions(int index) const
{
    Q_UNUSED(index);
    return true;
}

void Devices::setContextActions(int index, QMenu * menu)
{
    if (index > m_items.size() - 1) return;

    QString udi = m_items.at(index).data.toString();
    Solid::Device device(udi);

    if (device.is&lt;Solid::OpticalDisc&gt;()) {
        menu->addAction(KIcon("media-eject"), i18n("Eject"))
            ->setData(QVariant(0));
    } else {
        menu->addAction(KIcon("media-eject"), i18n("Unmount"))
            ->setData(QVariant(0));
    }
}

void Devices::contextActivate(int index, QAction * context)
{
    if (!context) {
        return;
    }

    QString udi = m_items.at(index).data.toString();
    Solid::Device device(udi);

    if (device.is&lt;Solid::OpticalDisc&gt;()) {
        Solid::OpticalDrive *drive = device.parent().as&lt;Solid::OpticalDrive&gt;();
        drive->eject();
    } else {
        Solid::StorageAccess *access = device.as&lt;Solid::StorageAccess&gt;();

        if (access->isAccessible()) {
            access->teardown();
        }
    }
}
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: romain</title>
		<link>http://ivan.fomentgroup.org/blog/2008/08/21/lancelot-10-feature-freeze/comment-page-1/#comment-6906</link>
		<dc:creator>romain</dc:creator>
		<pubDate>Sat, 23 Aug 2008 12:30:59 +0000</pubDate>
		<guid isPermaLink="false">http://ivan.fomentgroup.org/blog/?p=156#comment-6906</guid>
		<description>Tomorrow sounds perfect :) In fact I was asking because I may have done it myself... but not for tomorrow! thanks</description>
		<content:encoded><![CDATA[<p>Tomorrow sounds perfect <img src='http://ivan.fomentgroup.org/blog/wp-content/plugins/smilies-themer/kopete/smile.png' alt=':)' class='wp-smiley' /> In fact I was asking because I may have done it myself&#8230; but not for tomorrow! thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

