summaryrefslogtreecommitdiffstats
path: root/libtdepim/kaddrbook.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-06 15:57:02 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-06 15:57:02 -0600
commit2c2fbd828ca474671bb9e03681b30b115d8d6035 (patch)
tree526a9da418f8d3d7ccf515c37048d3dfc80f2843 /libtdepim/kaddrbook.h
parentf0610eece3676b6fe99f42cf4ef2b19a39a5c4e8 (diff)
downloadtdepim-2c2fbd828ca474671bb9e03681b30b115d8d6035.tar.gz
tdepim-2c2fbd828ca474671bb9e03681b30b115d8d6035.zip
Actually move the kde files that were renamed in the last commit
Diffstat (limited to 'libtdepim/kaddrbook.h')
-rw-r--r--libtdepim/kaddrbook.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/libtdepim/kaddrbook.h b/libtdepim/kaddrbook.h
new file mode 100644
index 00000000..f2bab100
--- /dev/null
+++ b/libtdepim/kaddrbook.h
@@ -0,0 +1,45 @@
+/* Simple Addressbook for KMail
+ * Author: Stefan Taferner <taferner@kde.org>
+ * This code is under GPL
+ */
+#ifndef KAddrBook_h
+#define KAddrBook_h
+
+#include <tqstringlist.h>
+
+#include <kdeversion.h>
+#include <kabc/addressee.h>
+#include <tdepimmacros.h>
+
+namespace KABC {
+ class AddressBook;
+}
+
+class TQWidget;
+
+class KDE_EXPORT KAddrBookExternal {
+public:
+ static void addEmail( const TQString &addr, TQWidget *parent );
+ static void addNewAddressee( TQWidget* );
+ static void openEmail( const TQString &addr, TQWidget *parent );
+ static void openAddressBook( TQWidget *parent );
+
+ static bool addVCard( const KABC::Addressee& addressee, TQWidget *parent );
+
+ static TQString expandDistributionList( const TQString& listName );
+
+ /**
+ * Pops up a dialog to ask the user to select a resource for saving something, and
+ * returns the selected resource or 0 on failure or if the user cancelled.
+ *
+ * The addressbook used to get the resource list from. If the addressbook was loaded
+ * async and loading is not yet finished, this method will run an eventloop until the
+ * addressbook is loaded.
+ */
+ static KABC::Resource* selectResourceForSaving( KABC::AddressBook *addressBook );
+
+private:
+ static bool addAddressee( const KABC::Addressee& addressee );
+};
+
+#endif /*KAddrBook_h*/