maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Annnounce] Sociality | Facebook client in Qt (https://talk.maemo.org/showthread.php?t=72842)

MohammadAG 2011-05-21 23:18

Re: [Annnounce] Sociality | Facebook client in Qt
 
Quote:

Originally Posted by marxian (Post 1012264)
Ditto. :( You can always use Phonon, which I found to work OK. I have found that QMediaPlayer (via the QML video component) works on Symbian, but not with Maemo. I think the solution may be to set a cookie jar for the QNetworkAccessManager, but I haven't got round to trying it yet. I'm not sure how you would get the QMediaPlayer instance to use the cookie jar when making the HTTP request. I think it will be possible using QDeclarativeNetworkAccessManagerFactory, but that doesn't apply in your case.

BTW, if you are using the code I posted to get the YouTube url, you might want to take a look at the updated code, as I have since updated it to enable playback of videos that normally require age verification. :)

I'm trying to stay far from Phonon, not sure why though :p

I did some digging around:
QMediaPlayer::setMedia( const QMediaContent & media, QIODevice * stream = 0 )

One of QMediaContent's constructors is:
QMediaContent ( const QNetworkRequest & request )

http://doc.qt.nokia.com/latest/qnetw...html#setHeader

QNetworkRequest::CookieHeader 4 corresponds to the HTTP Cookie header and contains a QList<QNetworkCookie> representing the cookies to be sent back to the server

So I guess it can be done, now to see how I could get that cookie...

allwise 2011-05-21 23:21

Re: [Annnounce] Sociality | Facebook client in Qt
 
Really good job Mohammad! I really like what you are doing here. One thing I would love to see implemented is push-notifications. Meaning, when you get a message/notification the notifier in the N900 (like when you get a e-mail or MMS through fMMS) pops up and tells you that. Do you think that it is possible?

Thanks a lot dude!!

laith.m.y 2011-05-21 23:24

Re: [Annnounce] Sociality | Facebook client in Qt
 
Thank you MAG for this great client , you are the best :)

but can you add (see more) to the statuses? because most of the statuses depend on (see more) :]

and thnx again for this great work

laith.m.y 2011-05-21 23:30

Re: [Annnounce] Sociality | Facebook client in Qt
 
1 Attachment(s)
Quote:

Originally Posted by zeikii (Post 1011775)
another quick mock up done via phone so sorry for quality again.
http://img7.imageshack.us/img7/8371/newusa.png

it is very nice

I made a small modify to it ,

if you can make something like this it will be awesome :]

allwise 2011-05-21 23:33

Re: [Annnounce] Sociality | Facebook client in Qt
 
Quote:

Originally Posted by allwise (Post 1012298)
Really good job Mohammad! I really like what you are doing here. One thing I would love to see implemented is push-notifications. Meaning, when you get a message/notification the notifier in the N900 (like when you get a e-mail or MMS through fMMS) pops up and tells you that. Do you think that it is possible?

Thanks a lot dude!!

Code:

dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteDialog string:"QUESTION?" uint32:0 string:"OK"
I found a line of code to create a notification if that can help you with the push notifications.

MohammadAG 2011-05-22 00:15

Re: [Annnounce] Sociality | Facebook client in Qt
 
Push notifications won't be implemented anytime soon (I'll be honest, I have no idea how to implement them), but with auto-refresh, the UI will notify you about new items (with an auto refresh rate of 5 minutes, that's enough methinks :p)

http://i56.tinypic.com/m8fqfa.jpg

Vibration and LED are also supported (and configurable)

Edit: oh and I'm stuck on getting the cookie again :/

lucas777 2011-05-22 00:33

Re: [Annnounce] Sociality | Facebook client in Qt
 
MAG when you reakon an update will appear for us?

laith.m.y 2011-05-22 00:37

Re: [Annnounce] Sociality | Facebook client in Qt
 
1 Attachment(s)
I make this for the main screen :)

Note : (News Feed) is pressed

Clausi 2011-05-22 06:55

Re: [Annnounce] Sociality | Facebook client in Qt
 
Perhaps you can alternate the backgroundcolor (black + darkgrey) of each post, this would make it much more readable with the current style.

shanttu 2011-05-22 11:13

Re: [Annnounce] Sociality | Facebook client in Qt
 
Awesome work. After reinstalling several times it still asks email and passwd every single login. So how to create that .config file?


All times are GMT. The time now is 14:12.

vBulletin® Version 3.8.8