Reply
Thread Tools Search this Thread
XenGi's Avatar
Posts: 119 | Thanked: 67 times | Joined on Aug 2010 @ Brandenburg, Germany
#1
Hi,

I'm developing a tool to upload the highscores from Angrybirds to the website angrybirds-score.com.
I need to find out if angrybirds is installed and if yes which version of it.

So I need to call something like:
Code:
dpkg -l | grep "angrybirds " | head -1
I found the system() function but that stops the rendering of my Qt GUI so this is no option for me. Another tip was QProcess but I have no idea how to use it.
Does anybody know how to do this in a "correct" way?

Another question is, how can I ensure that angrybirds is installed when somebody wants to install my app? I'm thinking of dependencies here. I have no experience with this.
I'm usings the Qt SDK 1.1 and the included Qt Creator.

I have the same problem for Symbian, Windows and MeeGo 1.2 Harmattan but first I want to make my app availale for Maemo5.

I hope somebody can help.
__________________
www
:: XenGi.de :: MeetMeeGo :: N9wiki ::
apps
:: QuickEdit ::
awesome stuff
:: iDon't :::
 
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,137 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#2
Does the version matter?

If not
Code:
#include <QFile>
#include <QDebug>

int main()
{
    if (!QFile::exists("/var/lib/dpkg/info/angrybirds.list")
        qFatal("Angry birds not installed.")

    return 0;
}

Last edited by MohammadAG; 07-18-2011 at 05:59 PM.
 

The Following User Says Thank You to MohammadAG For This Useful Post:
Posts: 196 | Thanked: 281 times | Joined on Apr 2011 @ RO
#3
just a thought....better... do a program for downloading scores......best helpers from for this community and spends time for us (no charge) that is more interesting for me ....not ovi store money makers
 
XenGi's Avatar
Posts: 119 | Thanked: 67 times | Joined on Aug 2010 @ Brandenburg, Germany
#4
Originally Posted by SHARP66 View Post
just a thought....better... do a program for downloading scores......best helpers from for this community and spends time for us (no charge) that is more interesting for me ....not ovi store money makers
Thats a good idea. So you can use the site as a backup. Why have I never thought about that?

I will talk to the guy who maintains the site and maybe I can add this feature. Thanks.

@MohammadAG
I will check the files off the game directly so this is not the problem but it would be nice to display the installed version. It isn't a "must have" so if there is no small simple way I will not implement it.
__________________
www
:: XenGi.de :: MeetMeeGo :: N9wiki ::
apps
:: QuickEdit ::
awesome stuff
:: iDon't :::
 
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

 
Forum Jump


All times are GMT -4. The time now is 07:18 PM.