
Gmail Notify
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
My first plasmoid :-)...
A simple gmail notify for check the gmail!
- I leave this project in favor of Email Notify -
12 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
12 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
12 years ago
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
12 years ago
ex.:
gmail - Pier Luc: You have 3 new messages
gmail - Family: You have no new messages
Report
dglent
12 years ago
[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
12 years ago
Report
spevnicky
12 years ago
Report
briarpatch
12 years ago
Report
Atoms
12 years ago
Report
gruszek
12 years ago
Report
sifcenter
12 years ago
Maybe in next version. Have you some suggestion for the method can i use?
Thanks
Report
franzf
12 years ago
Report
sifcenter
12 years ago
Report
cloose
12 years ago
Report
sifcenter
12 years ago
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
12 years ago
Report
kind-of-blue
12 years ago
The expiration of a Wallet is set by the user
Report
sifcenter
12 years ago
Report
sifcenter
12 years ago
Report
smihael
12 years ago
Report
sifcenter
12 years ago
Report
DanaKil
12 years ago
Report
sifcenter
12 years ago
Report
buschmann23
12 years ago
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
12 years ago
thanks
Report
sifcenter
12 years ago
many thanks!
Report