X-Git-Url: http://git.euphorik.ch/?a=blobdiff_plain;f=modules%2Ferl%2Feuphorik_minichat_conversation.erl;h=013c7afe364ebe90fc74227608458755a42b8b6b;hb=bde82d4691e6bb96f841307b8e2771cec5996e5d;hp=2530327541b0f937f66bd2fc1ac146ecf799fb22;hpb=886e51257b3d610ee0e4f7576d720495914ae9ec;p=euphorik.git diff --git a/modules/erl/euphorik_minichat_conversation.erl b/modules/erl/euphorik_minichat_conversation.erl index 2530327..013c7af 100755 --- a/modules/erl/euphorik_minichat_conversation.erl +++ b/modules/erl/euphorik_minichat_conversation.erl @@ -1,4 +1,21 @@ -% coding: utf-8 +% coding: utf-8 +% Copyright 2008 Grégory Burri +% +% This file is part of Euphorik. +% +% Euphorik is free software: you can redistribute it and/or modify +% it under the terms of the GNU General Public License as published by +% the Free Software Foundation, either version 3 of the License, or +% (at your option) any later version. +% +% Euphorik is distributed in the hope that it will be useful, +% but WITHOUT ANY WARRANTY; without even the implied warranty of +% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +% GNU General Public License for more details. +% +% You should have received a copy of the GNU General Public License +% along with Euphorik. If not, see . +% % Ce module permet la gestion des conversations du minichat d'euphorik. % Un message (enfant) peut répondre à des messages (ses parents). % Un message (parent) peut avoir plusieurs réponses (enfants) @@ -7,15 +24,14 @@ % @type Message() = {integer(), [integer()]} % @type Conversation_detailee() = {[integer()], [integer()], [integer()], bool()} % @type Conversation = {[Message()] , bool()} bool() : si true alors il y a encore des messages dans les pages suivantes. + -module(euphorik_minichat_conversation). -export([ conversations/4 ]). - -include("euphorik_bd.hrl"). -include_lib("stdlib/include/qlc.hrl"). - -import(lists, [reverse/1, any/2, map/2, sublist/3, filter/2]). -import(euphorik_bd, [resultat_transaction/1]). -import(qlc, [e/1, q/1, keysort/3]).