inc/convergedmessage.h
changeset 25 84d9eb65b26f
parent 23 238255e8b033
child 37 518b245aa84c
child 47 5b14749788d7
equal deleted inserted replaced
23:238255e8b033 25:84d9eb65b26f
    45      */
    45      */
    46     enum MessageType // keep the value's equal to server enums (ccsdefs.h)
    46     enum MessageType // keep the value's equal to server enums (ccsdefs.h)
    47         {        
    47         {        
    48         Sms = 0x00,
    48         Sms = 0x00,
    49         Mms = 0x01,
    49         Mms = 0x01,
    50         MmsNotification = 0x02,
    50         MmsNotification = 0x02,        
    51         Audio = 0x03,
    51         BioMsg = 0x03,
    52         BioMsg = 0x04,
    52         BT = 0x04,
    53         BT = 0x05,
       
    54         RingingTone = 0x06,
       
    55         Provisioning = 0x07,
       
    56 		VCard = 0x08,
       
    57         VCal = 0x09,
       
    58         None = 0x50,
    53         None = 0x50,
    59         IM = 0x51 
    54         IM = 0x51 
    60         };
    55         };
       
    56     
       
    57     /**
       
    58      * Enum defining possible Message sub-types
       
    59      * Ex. vCard, vCal etc..
       
    60      */
       
    61     enum MessageSubType
       
    62     {
       
    63         RingingTone = 0x00,
       
    64         Provisioning = 0x01,
       
    65         VCard = 0x02,
       
    66         VCal = 0x03,
       
    67         Audio = 0x04
       
    68     };
    61 
    69 
    62     /**
    70     /**
    63 
    71 
    64      * Enum defining priority
    72      * Enum defining priority
    65      * @attention This enum can have values from 0 to 255 only.
    73      * @attention This enum can have values from 0 to 255 only.
   122         Suspended = 0x06,
   130         Suspended = 0x06,
   123         Failed = 0x07,
   131         Failed = 0x07,
   124         SentState = 0x08,
   132         SentState = 0x08,
   125         NotApplicable = 0x09
   133         NotApplicable = 0x09
   126         };
   134         };
       
   135     
       
   136     /**
       
   137      * Enum defining MMS Notification's Msg State
       
   138      * @attention This enum can have values from 0 to 255 only
       
   139      * Add any new states only at the bottom of this enum
       
   140      */
       
   141     enum MmsNotificationState
       
   142         {
       
   143         NotifNull              = 0x00, // unknown status
       
   144         NotifReadyForFetching  = 0x01, // first state when received in inbox
       
   145         NotifRetrieving        = 0x02, // when MM is fetching ongoin
       
   146         NotifForwarding        = 0x03, // forwarding without retrival
       
   147         NotifForwarded         = 0x04, // state after successful forwarding
       
   148         NotifWaiting           = 0x05, // when settings changed manual->automatic
       
   149         NotifExpired           = 0x06, // expired time has exceed
       
   150         NotifFailed            = 0x07, // when fetching has failed (forwarding?)
       
   151         NotifDeleted           = 0x08  // when msg deleted from server
       
   152         };
   127 
   153 
   128 public:
   154 public:
   129 
   155 
   130     /**
   156     /**
   131      * Constructor
   157      * Constructor
   170     /**
   196     /**
   171      * Set the message type
   197      * Set the message type
   172      * @param type message type
   198      * @param type message type
   173      */
   199      */
   174     void setMessageType(MessageType type);
   200     void setMessageType(MessageType type);
       
   201     
       
   202     /**
       
   203      * Get the message sub-type
       
   204      * @return message sub-type
       
   205      */
       
   206     MessageSubType messageSubType() const;
       
   207 
       
   208     /**
       
   209      * Set the message sub-type
       
   210      * @param type message sub-type
       
   211      */
       
   212     void setMessageSubType(MessageSubType type);
   175 
   213 
   176     /**
   214     /**
   177      * Get the message priority
   215      * Get the message priority
   178      * @return the message priority
   216      * @return the message priority
   179      */
   217      */