Added libmapi++ wrapper function for CreateProfileStore
authorAlan Alvarez <alan.alvarez@us.army.mil>
Fri, 9 Oct 2009 09:02:12 +0000 (09:02 +0000)
committerAlan Alvarez <alan.alvarez@us.army.mil>
Fri, 9 Oct 2009 09:02:12 +0000 (09:02 +0000)
libmapi++/profile.h

index 2ca5f58fb3ee4427d220766d67cc352d485e7aa1..3cb470f4a9943ae5f83789626e6a555a710a65e6 100644 (file)
@@ -38,6 +38,29 @@ class profile
 {
        public:
 
+               /* Create an new profile database
+                *
+                * \param profiledb the absolute path to the profile database intended to be created
+                * \param ldif_path the absolute path to the LDIF information to use for initial setup
+                *
+                */
+               bool static create_profile_store(const char* profiledb, const char* ldif_path)
+               {
+                       return (CreateProfileStore(profiledb, ldif_path) == MAPI_E_SUCCESS);
+               }
+               /**
+                * Create an new profile database
+                *
+                * \param profiledb the absolute path to the profile database intended to be created
+                * \param ldif_path the absolute path to the LDIF information to use for initial setup
+                *
+                */
+               bool static create_profile_store(const std::string& profiledb, const std::string& ldif_path)
+               {
+                       return create_profile_store(profiledb.c_str(), ldif_path.c_str());
+               }
+
                /**
                 * Make the specified profile the default profile
                 *