Revision: 7439
          http://mahogany.svn.sourceforge.net/mahogany/?rev=7439&view=rev
Author:   vadz
Date:     2008-05-01 16:08:16 -0700 (Thu, 01 May 2008)

Log Message:
-----------
add Message::GetProfile()

Modified Paths:
--------------
    trunk/M/include/Message.h
    trunk/M/include/MessageCC.h
    trunk/M/include/mail/VMessage.h

Modified: trunk/M/include/Message.h
===================================================================
--- trunk/M/include/Message.h   2008-05-01 23:07:22 UTC (rev 7438)
+++ trunk/M/include/Message.h   2008-05-01 23:08:16 UTC (rev 7439)
@@ -346,6 +346,13 @@
    /// Return the numeric uid
    virtual UIdType GetUId(void) const = 0;
 
+   /**
+      Return the profile associated with this message.
+
+      Returned object may be NULL and doesn't need to be DecRef()'d.
+    */
+   virtual Profile *GetProfile() const = 0;
+
    //@}
 
    /** @name Methods accessing individual parts of a message.

Modified: trunk/M/include/MessageCC.h
===================================================================
--- trunk/M/include/MessageCC.h 2008-05-01 23:07:22 UTC (rev 7438)
+++ trunk/M/include/MessageCC.h 2008-05-01 23:08:16 UTC (rev 7439)
@@ -103,6 +103,8 @@
    */
    virtual MailFolder * GetFolder(void) const;
 
+   virtual Profile *GetProfile() const { return m_Profile; }
+
    /** Return the numeric status of message.
        @return flags of message
    */

Modified: trunk/M/include/mail/VMessage.h
===================================================================
--- trunk/M/include/mail/VMessage.h     2008-05-01 23:07:22 UTC (rev 7438)
+++ trunk/M/include/mail/VMessage.h     2008-05-01 23:08:16 UTC (rev 7439)
@@ -78,6 +78,7 @@
 
    virtual MailFolder *GetFolder() const { return m_mf; }
    virtual UIdType GetUId() const { return m_uid; }
+   virtual Profile *GetProfile() const { return m_message->GetProfile(); }
 
    //@}
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to