author | harlekin <harlekin> | 2002-06-11 16:21:52 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-06-11 16:21:52 (UTC) |
commit | d709dd35dc07d4a204380354f00a89ceb4d1f845 (patch) (unidiff) | |
tree | 13c3c77584516dd0a1492583c9537ed03846a3ee | |
parent | 38e25eff8c87c8f44ad6bc83b64bf3411c31c47f (diff) | |
download | opie-d709dd35dc07d4a204380354f00a89ceb4d1f845.zip opie-d709dd35dc07d4a204380354f00a89ceb4d1f845.tar.gz opie-d709dd35dc07d4a204380354f00a89ceb4d1f845.tar.bz2 |
activated the qcop channel
-rw-r--r-- | core/pim/addressbook/addressbook.cpp | 18 | ||||
-rw-r--r-- | core/pim/addressbook/addressbook.h | 4 |
2 files changed, 19 insertions, 3 deletions
diff --git a/core/pim/addressbook/addressbook.cpp b/core/pim/addressbook/addressbook.cpp index 86d1760..e11cf4c 100644 --- a/core/pim/addressbook/addressbook.cpp +++ b/core/pim/addressbook/addressbook.cpp | |||
@@ -137,6 +137,20 @@ AddressbookWindow::AddressbookWindow( QWidget *parent, const char *name, | |||
137 | a->addTo( edit ); | 137 | a->addTo( edit ); |
138 | a->addTo( listTools ); | 138 | a->addTo( listTools ); |
139 | 139 | ||
140 | |||
141 | // make it possible to go directly to businesscard via qcop call | ||
142 | #if defined(Q_WS_QWS) | ||
143 | #if !defined(QT_NO_COP) | ||
144 | QCopChannel *addressChannel = new QCopChannel("QPE/Addressbook" , this ); | ||
145 | connect (addressChannel, SIGNAL( received(const QCString &, const QByteArray &)), | ||
146 | this, SLOT ( appMessage(const QCString &, const QByteArray &) ) ); | ||
147 | #endif | ||
148 | #endif | ||
149 | |||
150 | |||
151 | |||
152 | |||
153 | |||
140 | #ifndef MAKE_FOR_SHARP_ROM | 154 | #ifndef MAKE_FOR_SHARP_ROM |
141 | a = new QAction( tr( "Find" ), Resource::loadPixmap( "mag" ), | 155 | a = new QAction( tr( "Find" ), Resource::loadPixmap( "mag" ), |
142 | QString::null, 0, this, 0 ); | 156 | QString::null, 0, this, 0 ); |
@@ -250,6 +264,8 @@ AddressbookWindow::AddressbookWindow( QWidget *parent, const char *name, | |||
250 | 264 | ||
251 | // qDebug("adressbook contrsuction: t=%d", t.elapsed() ); | 265 | // qDebug("adressbook contrsuction: t=%d", t.elapsed() ); |
252 | } | 266 | } |
267 | |||
268 | |||
253 | void AddressbookWindow::slotSetFont( int size ) { | 269 | void AddressbookWindow::slotSetFont( int size ) { |
254 | 270 | ||
255 | if (size > 2 || size < 0) | 271 | if (size > 2 || size < 0) |
@@ -293,7 +309,7 @@ void AddressbookWindow::importvCard() { | |||
293 | QString str = OFileDialog::getOpenFileName( 1,"/");//,"", "*", this ); | 309 | QString str = OFileDialog::getOpenFileName( 1,"/");//,"", "*", this ); |
294 | if(!str.isEmpty() ) | 310 | if(!str.isEmpty() ) |
295 | setDocument((const QString&) str ); | 311 | setDocument((const QString&) str ); |
296 | 312 | ||
297 | } | 313 | } |
298 | 314 | ||
299 | void AddressbookWindow::setDocument( const QString &filename ) | 315 | void AddressbookWindow::setDocument( const QString &filename ) |
diff --git a/core/pim/addressbook/addressbook.h b/core/pim/addressbook/addressbook.h index da43731..34ca85d 100644 --- a/core/pim/addressbook/addressbook.h +++ b/core/pim/addressbook/addressbook.h | |||
@@ -59,7 +59,7 @@ public slots: | |||
59 | void setDocument( const QString & ); | 59 | void setDocument( const QString & ); |
60 | 60 | ||
61 | private slots: | 61 | private slots: |
62 | void importvCard(); | 62 | void importvCard(); |
63 | void slotListNew(); | 63 | void slotListNew(); |
64 | void slotListView(); | 64 | void slotListView(); |
65 | void slotListDelete(); | 65 | void slotListDelete(); |
@@ -94,7 +94,7 @@ private: | |||
94 | AbTable *abList; | 94 | AbTable *abList; |
95 | QWidget *listContainer; | 95 | QWidget *listContainer; |
96 | 96 | ||
97 | QAction *actionNew, *actionEdit, *actionTrash, *actionFind, *actionBeam, | 97 | QAction *actionNew, *actionEdit, *actionTrash, *actionFind, *actionBeam, |
98 | *actionPersonal, *actionMail; | 98 | *actionPersonal, *actionMail; |
99 | 99 | ||
100 | bool bAbEditFirstTime; | 100 | bool bAbEditFirstTime; |