Gmail Notify

Plasma 4 Widgets

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
Score 50.0%
Description:

My first plasmoid :-)...
A simple gmail notify for check the gmail!

- I leave this project in favor of Email Notify -
Last changelog:

11 years ago

v 0.3
** change setSize with resize (Compatibility KDE 4.1 svn)

v 0.2
** Add Gmail Icon
** Clean code
** Add sound on receive email

Aneldo

11 years ago

Hi, thank you for your plasmoid.

I had the same probleme of compilation.
thanks to ubuntu-fr.org community (user moi1392) problem is solved.

I have applied that patch (save following code into the file gmailnotifier.patch and use command patch -p1 < gmailnotifier.patch):
Quote:diff -u gmailnotify/CMakeLists.txt gmailnotify-fixed/CMakeLists.txt
--- gmailnotify/CMakeLists.txt 2008-02-10 22:27:34.000000000 +0100
+++ gmailnotify-fixed/CMakeLists.txt 2008-11-07 13:04:01.000000000 +0100
@@ -19,7 +19,7 @@
kde4_add_plugin(plasma_applet_gmailnotify ${gmailnotify_SRCS})

target_link_libraries(plasma_applet_gmailnotify
- ${PLASMA_LIBS} ${KDE4_KDEUI_LIBS} ${KDE4_PHONON_LIBS})
+ ${PLASMA_LIBS} ${KDE4_KDEUI_LIBS} ${KDE4_PHONON_LIBS} ${QT_QTNETWORK_LIBRARY})

install(TARGETS plasma_applet_gmailnotify
DESTINATION ${PLUGIN_INSTALL_DIR})
diff -u gmailnotify/plasma-gmailnotify.cpp gmailnotify-fixed/plasma-gmailnotify.cpp
--- gmailnotify/plasma-gmailnotify.cpp 2008-02-12 01:00:10.000000000 +0100
+++ gmailnotify-fixed/plasma-gmailnotify.cpp 2008-11-07 11:35:26.000000000 +0100
@@ -35,11 +35,10 @@

GmailNotify::GmailNotify(QObject *parent, const QVariantList &args)
: Plasma::Applet(parent, args),
- m_svg("", this),
+ m_svg(this),
m_icon("gmail")
{
setHasConfigurationInterface(true);
- setDrawStandardBackground(true);
resize(210, 210);
}

@@ -105,7 +104,7 @@
}

GmailNotify::~GmailNotify(){
- if (failedToLaunch()) {
+ if (hasFailedToLaunch()) {
//qDebug() << "failed";
} else {
socket.close();
@@ -147,7 +146,7 @@
config = new KConfig("gmailnotifyrc");
generalGroup = new KConfigGroup(config,"General");
currentEmails = -1;
- m_svg.setContentType(Plasma::Svg::SingleImage);
+ m_svg.setContainsMultipleImages(false);
timer = new QTimer(this);
connect(&socket, SIGNAL(encrypted()), this, SLOT(socketEncrypted()));
connect(&socket, SIGNAL(readyRead()), this, SLOT(getMessage()));
@@ -170,6 +169,7 @@
void GmailNotify::paintInterface(QPainter *p,
const QStyleOptionGraphicsItem *option, const QRect &contentsRect)
{
+ Q_UNUSED(option);
p->setRenderHint(QPainter::SmoothPixmapTransform);
p->setRenderHint(QPainter::Antialiasing);
m_svg.resize((int)contentsRect.width(), (int)contentsRect.height());

I have some feedbacks :
* crypting passwords (or using the kde wallet)
* permit to open the inbox by doubleclicking on the plasmoid (for example)

Report

pearluck

11 years ago

Add the support of more than one gmail account.

ex.:

gmail - Pier Luc: You have 3 new messages
gmail - Family: You have no new messages

Report

dglent

11 years ago

i have this reeror message
[dimitri@localhost build]$ cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.4.0 (using /usr/bin/qmake)
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libXft.so;/usr/lib/libXau.so;/usr/lib/libXdmcp.so;/usr/lib/libXpm.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libXft.so;/usr/lib/libXau.so;/usr/lib/libXdmcp.so;/usr/lib/libXpm.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/libX11.so
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Automoc4: /usr/bin/automoc4
-- Found Perl: /usr/bin/perl
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Failed
-- Performing Test HAVE_FPIE_SUPPORT
-- Performing Test HAVE_FPIE_SUPPORT - Success
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - Success
-- Performing Test __KDE_HAVE_GCC_VISIBILITY
-- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success
-- Found Phonon: /usr/lib/libphonon.so
-- Found Phonon Includes: /usr/include/KDE;/usr/include
-- Found KDE 4.1 include dir: /usr/include
-- Found KDE 4.1 library dir: /usr/lib
-- Found KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Found Plasma: /usr/lib/libplasma.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/dimitri/Download/75012-gmailnotify_v0.3/gmailnotify/build
[dimitri@localhost build]$ make
Generating plasma-gmailnotify.moc
Generating moc_ConfigDialog.cpp
Scanning dependencies of target plasma_applet_gmailnotify
[ 33%] Building CXX object CMakeFiles/plasma_applet_gmailnotify.dir/plasma_applet_gmailnotify_automoc.o
[ 66%] Building CXX object CMakeFiles/plasma_applet_gmailnotify.dir/plasma-gmailnotify.o
/home/dimitri/Download/75012-gmailnotify_v0.3/gmailnotify/plasma-gmailnotify.cpp: In constructor ‘GmailNotify::GmailNotify(QObject*, const QVariantList&)’:
/home/dimitri/Download/75012-gmailnotify_v0.3/gmailnotify/plasma-gmailnotify.cpp:39: erreur: no matching function for call to ‘Plasma::Svg::Svg(const char [1], GmailNotify* const)’
/usr/include/KDE/Plasma/../../plasma/svg.h:73: note: candidats sont: Plasma::Svg::Svg(QObject*)
/usr/include/KDE/Plasma/../../plasma/svg.h:51: note: Plasma::Svg::Svg(const Plasma::Svg&)
/home/dimitri/Download/75012-gmailnotify_v0.3/gmailnotify/plasma-gmailnotify.cpp:42: erreur: ‘setDrawStandardBackground’ was not declared in this scope
/home/dimitri/Download/75012-gmailnotify_v0.3/gmailnotify/plasma-gmailnotify.cpp: In destructor ‘virtual GmailNotify::~GmailNotify()’:
/home/dimitri/Download/75012-gmailnotify_v0.3/gmailnotify/plasma-gmailnotify.cpp:108: erreur: ‘failedToLaunch’ was not declared in this scope
/home/dimitri/Download/75012-gmailnotify_v0.3/gmailnotify/plasma-gmailnotify.cpp: In member function ‘virtual void GmailNotify::init()’:
/home/dimitri/Download/75012-gmailnotify_v0.3/gmailnotify/plasma-gmailnotify.cpp:150: erreur: ‘class Plasma::Svg’ has no member named ‘setContentType’
/home/dimitri/Download/75012-gmailnotify_v0.3/gmailnotify/plasma-gmailnotify.cpp:150: erreur: ‘SingleImage’ is not a member of ‘Plasma::Svg’
/home/dimitri/Download/75012-gmailnotify_v0.3/gmailnotify/plasma-gmailnotify.cpp: At global scope:
/home/dimitri/Download/75012-gmailnotify_v0.3/gmailnotify/plasma-gmailnotify.cpp:171: attention : unused parameter ‘option’
make[2]: *** [CMakeFiles/plasma_applet_gmailnotify.dir/plasma-gmailnotify.o] Erreur 1
make[1]: *** [CMakeFiles/plasma_applet_gmailnotify.dir/all] Erreur 2
make: *** [all] Erreur 2
[dimitri@localhost build]$

Report

ketomin

11 years ago

same problem on debian lenny.

Report

spevnicky

11 years ago

I have same problem on Mandriva 2009.

Report

briarpatch

11 years ago

GMailNotify insists that I have 325 new messages, even though I don't have any unread messages in my inbox. It didn't change after I deleted all spam and all messages in trash.

Report

Atoms

11 years ago

And how about google Apps email login ?

Report

gruszek

11 years ago

Is my password safe there?

Report

C

sifcenter

11 years ago

not yet, it's stored in plain text.
Maybe in next version. Have you some suggestion for the method can i use?
Thanks

Report

franzf

11 years ago

You could use KWallet :)

Report

C

sifcenter

11 years ago

I would like to use QT or Kdelibs/Kdebase... not other software..

Report

cloose

11 years ago

KWallet is part of kdeui in kdelibs. Search for wallet on http://api.kde.org

Report

C

sifcenter

11 years ago

I read for KWallet but..
If the service is disabled how it works?
And with Kwallet is it necessary of one master password? In this case the user must put anyway one password. At this point it's better to request directly the mail password?!
I look for how Thunderbird store password (without Master Password), and they are in a file "encrypted" in base64.

Report

prizident

11 years ago

you can make usege of kwallet optional with a chakbox in config dialog. BTW all kde apps use kwallet (for me it's kopete, konqueror, kmail, kdesvn) to store passwords and it is considered quite safe

Report

kind-of-blue

11 years ago

You need to put the master password only to "open" the wallet, tipically at the beginning of a session ... or after the wallet is closed because not used for a long time.

The expiration of a Wallet is set by the user

Report

C

sifcenter

11 years ago

many thanks! i searched for "KWallet" at api.kde.org and i had "no result".. the right word is "Wallet" :P..

Report

C

sifcenter

11 years ago

many thanks! i searched for "KWallet" at api.kde.org and i had "no result".. the right word is "Wallet" :P..

Report

smihael

11 years ago

you don't want gpg?

Report

C

sifcenter

11 years ago

I would like to create an plasmoid without external dependencies

Report

DanaKil

11 years ago

Nice but email checking every 5 seconds (if this is by default like in your screenshot) seems a little bit too much...

Report

C

sifcenter

11 years ago

I will increase the default interval... thanks!

Report

buschmann23

11 years ago

I have build packages for openSUSE 10.2 and newer, thy can be find here:
http://software.opensuse.org/search?baseproject=ALL&p=1&q=kde4-plasmoid-gmailnotify

Could you please add a version number to the tarball?

Report

dglent

11 years ago

can you upload the package because i cannot find it
thanks

Report

C

sifcenter

11 years ago

Added page and version number.
many thanks!

Report

11 years ago

v 0.3
** change setSize with resize (Compatibility KDE 4.1 svn)

v 0.2
** Add Gmail Icon
** Clean code
** Add sound on receive email

12345678910
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.3
updated Feb 10 2008
added Feb 09 2008
downloads 24h
0
mediaviews 24h 0
pageviews 24h 2